Forum

iMAonArray needs Refresh

Hi guys, I just have a simple question. I am trying to use a custom indicator in an EA. What the custom indicator basically does is it adds 2 MAs from two variables that use iMA(), and sends that to a buffer. I then use iMAonArray() on that buffer to get another indicator as a crossover. This is

EA that moves Stop to BE + 1 after price moves a certain amount of pips into profit

Hi guys, I've been trying to code an EA that moves the Stop to BE + 1 after price moves a certain amount of pips/ticks into profit, but I have been unable to get it to work. I searched through the forum and found similar examples of trailing stops and moving stops, but was unable to get them to work