I am trying to add/subtract pips to a trailing stop code depending on buy/sell. Is this correct?
if(isNewBar) TrailingStopSet(OP_BUY, Support(4 * PeriodSeconds(), false, 00, 00, true, 1)) - 5 * myPoint
if(isNewBar) TrailingStopSet(OP_BUY, Support(4 * PeriodSeconds(), false, 00, 00, true, 1)) + 10 * myPoint
Is this correct or move it into the parenthesis?
Thanks.
I do not understand what you are trying to do.
There is not enough code.
I am trying to add/subtract pips to a trailing stop code depending on buy/sell. Is this correct?
if(isNewBar) TrailingStopSet(OP_BUY, Support(4 * PeriodSeconds(), false, 00, 00, true, 1)) - 5 * myPoint
if(isNewBar) TrailingStopSet(OP_BUY, Support(4 * PeriodSeconds(), false, 00, 00, true, 1)) + 10 * myPoint
Is this correct or move it into the parenthesis?
Thanks.
Of course.
Thank you. Is this correct?
if(isNewBar) TrailingStopSet(OP_BUY, Support(4 * PeriodSeconds(), false, 00, 00, true, 1)) - (5 * myPoint)
if(isNewBar) TrailingStopSet(OP_BUY, Support(4 * PeriodSeconds(), false, 00, 00, true, 1)) + (10 * myPoint)
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
You agree to website policy and terms of use
I am trying to add/subtract pips to a trailing stop code depending on buy/sell. Is this correct?
if(isNewBar) TrailingStopSet(OP_BUY, Support(4 * PeriodSeconds(), false, 00, 00, true, 1)) - 5 * myPoint
if(isNewBar) TrailingStopSet(OP_BUY, Support(4 * PeriodSeconds(), false, 00, 00, true, 1)) + 10 * myPoint
Is this correct or move it into the parenthesis?
Thanks.