Forum

Help with break even stop loss code for each tick

Hi I'm in the early leaning stages of coding, can anyone help me modify the break even code. The EA opens trades on a new bar open, but I would like the break even stop loss to move when the tick reaches the correct point not when the new bar opens. Any help would be great. Thanks if (BreakEvenAt> 0

Help with coding correct calculation

If anyone is able to help me with this calculator. I want the indicator to work only when a candle changes direction at the minimum number of pips. The code I have at the moment works >= the min pips set in both directions. How would I fix to say only when the new close is a bullish close from last