Trailing stop and enter when price closes above level
4 replies
MMatch
7 years ago #116386
I have 2 questions:
1. How can I set the trailing stop to move when the price is X pips in profit. for example:
SL is 20 pips from entry
When Price moves 20 pips in profit
Move SL to BE
then when trade is 40 pips in profit, move trailingSL to +20
When trade is 60 pips in profit, move TrailingSL to +40pips
etc.
At the moment my EA moves every 1 pip?
2. If I use Ask > Variable, it will open a trade when the ask price is over the variable level. (tested in MT4 and works)
However, if I change it to Close(PERIOD_M15)[1] > Variable, it should:
Open a trade if the 15 minute candle closes above the variable price level? (tested in MT4 and it does not open any trades)
Both were tested in Daily TF on MT4
Thanks in advance
tomas262
7 years ago #141771
Hello,
1) use simple trailing stop set to 20 (screenshot attached)
2) why don’t you trade it on 15 min chart instead of daily?
If I try Close(PERIOD_M15)[1] > Close(PERIOD_M15)[2] it works for me on a daily chart
MMatch
7 years ago #141795
Hello Tomas
1) It is still not working, the SL moves every 1 pip, not every 20 pips
2) This didn’t work but I have reprogrammed it to run on 15min TF
3) What is the formula to “run once a day” at say 00:05 broker time or PC time?
thanks in advance!
MMatch
7 years ago #141816
I think I have figured out how to run once a day
I have set it to run at 0 hours and 1 minute – please let me know if there is a better way.
Still looking for 1) – Trailing stop – is there a way to do it?
tomas262
7 years ago #141841
Viewing 4 replies - 1 through 4 (of 4 total)