I´m new to programming indicators in NT. Studied the tutorials but still have an open question.
double longtrigger = Open[0]+(ATR(ATRPeriods)[1]*Trigger);
double shorttrigger = Open[0]-(ATR(ATRPeriods)[1]*Trigger);
This works fine and I can display the results on the chart. But how is it possible to define variables with if statements ?
If(High[0] >= longtrigger[0] and Low[0] <= shorttrigger[0], -1, 0)
Thank you...
Comment