Experts: TradeProtector-1.1 - Automatic Stop Loss and proprotional Trailing Stop (updated version) - page 3

You are missing trading opportunities:
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
Registration
Log in
You agree to website policy and terms of use
If you do not have an account, please register
I have a feature request. Please could you add a feature that enables the EA to control all currency pairs. Currently this EA works with the attached currency pair (e.g. EUR/USD only), but could you add such an selectable option that turns the pair specific control off in such a way that it manages all the different executed currency pairs. No need to attach mutiple EA's into the different currency pairs. I just put this EA into one chart and all the different currency pairs will be managed in the same manner (I don't want set different SL settings to different currency pairs).
It's very important and useful feature that one EA will manage all the different currency pairs.
how can i change the parameters of the running trade?
I am not sure if I understand your question. If you attach this EA to the chart with the same currency pair as the running trade (open position), EA will - at each bar arrival - check prices and compare them to the EA parameters, and if needed, it will adjust S/L of the open position.
So if you have opened position, and then you will attach "TradeProtector" to the chart, it will start processing your position (as long as it has the same currency symbol, as the chart to which EA is attached).
Does it answer your question?
Btw. - After using it for a while I decided to change it a bit: It will apply initial S/L and don't use Trailing Stop until position will reach certain profit. Then it will start to use proportional S/L:
S/L = OpenPrice +/- (CurrentPrice - OpenPrice) * dPropSLRatio
Someone also requested an option, to reverse position at certain point, instead of using S/L - I am going to implement this.
Marcool, I have been doing some work with your EA on the M5 chart. I still find it difficult to understand which parameters should have which values to make it work the way I need. I only use the M5, not the M1 and M5 as in your previous example.
If we just look at a buy (long) position:
I set nInitialSL=15 then the SL is 15 pips below the entry price?
I set the ntrailing stop = 5 which means as the price hits opening price +5 pips the SL will move 5 to maintain 15 pips behind the price yes?
nPropSL threshold = 10 so at opening price + 10pips the SL maintains the position it has reached. dPropSLratio is set at 0.50 so the SL will now be at 50% of the pip profit so if it is at entry price + 20 pips, the SL will be at entry + 10 pips yes?
So if nUseEscape is set to 1 then this will be active. If nEscape TP is at 35 the opening price + spread + 35 pips profit, the trade will close yes?
So I dont understand what nEscapeLevel does nor nsleep. Hopefully you can help.
Thanks again
Hi marcool,
your version trade_protector-1.2.mq4
Can you give an example for the this EA step by step. So that everyone one can understand how it works.
And also if( dInitialSL != 0)
dSl = dnAsk - dInitialSL;
I think it is the first SL for any pair. why did you deduct it from dnAsk.
It should be dSl = OrderOpenPrice() - dInitialSL;
can you explain this.
Can I use this indicator on mobile MT4. If not please suggest some indicator with which I can apply trailing stop on mobile MT4.