RTX Development: Parameter Management

Duration:14:55
Variable speed version: Watch

This video on RTX Development discusses how to create and manage the parameters of RTX indicators. Parameters are the controls such as checkboxes, listboxes, or color controls, that are provided to the user within the preference window to adjust the settings of the indicator. Functions covered in detail in this video include: setup, parmsLoad, and parmsUpdt. The video also explained how to maintain the parameter enumeration and structure.

Download xyzDemo2.cpp source file (zipped)

Parameter Table

Description Data Type Character(s) Function Example Value(s)
  (userData) (kParmTokens)    
Checkbox BOOL B setBoolParameter true / false
Color COLOR U setColorParameter COLOR_BLUE
Period short S setPeriodParameter 1;2;3;5;10
Float float F setFloatParameter 1.25
Double double D setDoubleParameter 125.54725
Integer int I setIntegerParameter 5
List short S setListParameter Center;Left;Right
ListBox short S setListBoxParameter Center;Left;Right
PriceType short S setPriceTypeParameter RTX_PRICE_HIGH
ListEdit char[216] C216 setListEditParameter "myBuySignal"
Pen CPEN P setPenParameter COLOR_RED,1,P_SOLID
String char[16] C016 setStringParameter "Australia"
Label char[32] C032 setLabelParameter "myLabel"
Button char[64] C064 setButtonParameter