Trailing with Variables doesn't work
-
My trailing doesn't follow the StopLoss or doesn't start, i really don't know.
Buy example:
When i Buy manually my EA looks for the lowest price in a candle period and saves that value in a variable (double) call "StopLoss_Buy" and uses that variable as StopLoss. But when i set my TrailinStop the level never moves from the first value. What am i doing wrong????

-
@lopezdiaz2510 Is the EA set to act on manually added trades? By setting a fixed level the trail has no way of referencing the distance.
-
You mean that there is no way of set a trailing Stop with a variable? i dont understand why. Because is just another price level but saved in a variable.
I just nedd the trailing to work with the lowest price as a stop loss. -
@lopezdiaz2510 You can use a variable but I doubt a level, have never tried but this block keeps the stop at a chosen distance from price.
-
Can't make it work....
Someone that can give me an example? -
@lopezdiaz2510 Change the value of the variable to from level to pips.