939381 Structure (s)Hello
Stating I am not a coder if you'll use the attached EA... firstly of course.... Try at a demo... aniway no destroy with it since it
should function as a guardian.
It functions like an EA so put as normal it at a new chart M5-M1 is ok EURUSD is ok (if you exchange yet another currency it does not make difference as it
checks MagicNumbers of open orders) you can assess (EA SyFirst) at which orders is speaking to
The connected is set for the defense against the possible reduction and I need ptection close the bargain when the past two orders are triggered
.... Started... running... suppose you've Buy_capitalizing and Sell_protection_Ultimate
by way of example if you start the trade using a 0.45 lot size... about 2.5percent of your account (10000$) leverage 1:10 (perhaps you use 1:100)
you can get around this situation:
1)Buy_capitalizing open price 1.05619 10 lots size
two )Sell_protection_ open price 1.05470 30 lots size
Unfortunately after having triggered the market protection. . The price changes its road and yields to go up. . The deal is growing too dangerous...
Waiting to empathize the buy and depart sell_protection_ultimate alone is a game of opportunity 50/50 and I want to stop the deal before this occurs
Where set the StopLoss? .... In a price between 1.05619 and 1.05470
A bit of mathematics:
1.05619 - 1.05470 = 0.00149
30 lots - 10 lots = 20 lots
at price 1.05470 reduction would be = 10 lots*0.00149*100000 = -1490$
at price 1.05619 reduction would be = 20 lots*0.00149*100000 = -2980$
From the EA:
As said if there are two orders.... Then these will probably be closed if the reduction of the orders is larger then the Loss based on COEFF*-2980
Additionally there is a fixed SL = 20% also ( I set to be safe a little more)... 20 percent of account( 10000 profit from elderly security ) = -2000 or approximately
With COEFF set to 0.8
0.8*-2980=-2384
0.6*-2980=-1700.... You have to ch by the choice that works the best for protecting your Equity
Throught the placing of COEFF% at the set choice of this the EA you may select at which reduction you need close orders
From the past: the EA waits and begins to work when the two orders I had been speaking above.... Are triggered by SYFirst
Any of you have distinct account Equity... lots size and type of account and leverage. . .and so on
I hope I haven't confused the Math
Does make sense for you personally? Or some other critics or doubt.... Let me know
Best regards
g.
https://www.cliqforex.com/attachment...1139331026.mq4