Trailing Stop at multiple lvls
-
Hello All,
I would like to build the following into my project.
On either Buy or Sell Open:
After Break-Even with 1 pip offset,
When price moves another 1 pip in the direction of the trade (means 2 pips on profit), trail the Stop with 1 pip step,I used this: https://fxdreema.com/shared/rsSuXOPfb
but dosn't seem to work...
any ideas?
-
EA's like this are massive scalping strategies. You'll need to test this with tick data to ensure that it is working properly. 1M OHLC data will show this as a massively profitable EA but in fact it may not be.
The link you posted doesn't open any trades... So, the trailing stop doesn't work. Where is the rest of your logic?
-
Tnx for your reply. Good Information here, Let's say we have a trade running.
I wanna have both Break-Even And Trail Stop.
if we are on 2 pips profit BEO activates at 1 pip profit and then if we wanna trail stop with 1 pip, what should I do? -
@sajjad3245 Those are very short distances. Are you sure your broker will accept them? If the spread is just 1 pip, that can be a problem.
-
You're going to want to loop through all open trades, check if price is X pips away from open, if so, once-per-trade, modify stops, set to open price of the trade. That's your BE. For the trailing stop, it's a simple block and you have the offset start when price is x pips away from open. Although, I will tell you, this type of EA is VERY unlikely to be profitable. Think about spread, commissions, etc..