PDA

View Full Version : User inputs dialog to custom indicator



adheer
06-19-2015, 02:47 PM
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,

Rawan-HS
06-21-2015, 07:39 AM
Dear adheer

Try this code




dim Period1
Public Sub main()
Period1 = CInt(Inputbox("Message Text", "Title"))
End Sub