Strategy Tester Error
-
-
@jstap Hi jstap, may I know how can I set the reference price to my entry price?
-
I realize my modify stop loss is not working and I have try different arrangement still can't activate
-
Ok update here, for each trade - open price in loop will get you this number
-
|Am I correct?
-
Yes, but in for each trade you can select the trade you are working with, you can also use standard blue blocks under pink to use the loop value
-
@jstap I have tried run this EA but it just direct trail the stop loss, For example buy at 2446.70 with sl (2444.50) and tp (2451.70), then it modify stop loss to 2446.27 then 2446.68 (every 4 pips trailing step with 4 pips trailing stop) but what i expected it should be 2446.85 (sl 1.5 pips above the open price when gained 4 pips profit) then after this only start the trailing. How should I build the block so that it will modify the stop loss when hit my first profit then after this only start trailing stop loss? Could you show me the correct way? Thanks
Testing version https://fxdreema.com/shared/H4uKrIDwe
-
I do not know because I only ever use pips, but in the blue blocks you have a start, for eg pips away from open price
-
@Tehern Why don't you try to use the blue 'trailing stop' block instead in a separate block tree?
-
I have used trailing stop block but I donât know why only trailing stop function is working but the modify not working ( modify is to ensure the stop loss is adjust to higher than stop loss price).
If I use the blue condition block within the pink block (pips from the open price) and another pink block (modify stop loss), will the condition block work?
-
https://fxdreema.com/shared/45DodPjWb
current version
-
@Tehern Friend, I think your ea would work better if you declare the constants and variables so you can optimize it on the chart in the mt5 terminal
-
@Tehern Yes, you should use two separate 'for each trade' block trees, one for each function. You current use of a blue 'trailing stop' block connected below a 'for each trade' is not good because you are connecting a loop to another loop. You'd better use pink block only on both blot trees.
