Results 1 to 2 of 2
  1. #1
    Junior Member
    Join Date
    Jun 2015
    Posts
    7

    Question User inputs dialog to custom indicator

    Hello,

    I am creating a custom indicator in VTL that requires two inputs from the user - Period1 and Period2 (both integers).

    How do you declare these user inputs in the indicator (vtl) code, so the user can set their values (or change default values) when user attaches the indicator to the chart ?

    Thanks,

  2. #2
    Administrator Rawan-HS's Avatar
    Join Date
    Apr 2015
    Posts
    410

    Default

    Dear adheer

    Try this code

    Code:
    dim Period1
    Public Sub main()
    Period1 = CInt(Inputbox("Message Text", "Title"))
    End Sub
    Last edited by Rawan-HS; 10-04-2015 at 07:48 AM.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Object Name of Custom Indicator plot
    By Edakad in forum VertexFX API/VTL Forum
    Replies: 3
    Last Post: 06-22-2014, 08:37 AM
  2. Building Custom Indicator in VTL
    By nhasan in forum VertexFX API/VTL Forum
    Replies: 3
    Last Post: 03-08-2014, 07:38 AM
  3. Updating values of a Custom Indicator
    By novice in forum VertexFX API/VTL Forum
    Replies: 7
    Last Post: 02-24-2014, 11:32 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •