指定
You can start the job from the MT4i personal trade copier scheme.
I have one metatrader [we can call it keeper]. Keep has the role of Master in a Master-Slave scheme: every trade on master has is own MAGIC NUMBER.
So the next step will involve only two metatraders: keeper and the other one called, from now on, final. But can be also more than one final it is a (1-N relationship).
keeper [master] and final [slave] communicate with the usual scheme of master and slave in a trade copier between two mt4.
Final, according to the setup the user will provide via .txt file, will be able to:
filter trades according to Magic Numbers (which trades will be allowed by using magic numbers).
capability to delay the execution of a trade with three different mode:
OFFSET negative: it means it will open the trade once the orginal one is in negative di X pips.
OFFSET positive: it means it will open the trade once the orginal one is in positive of Y pips.
Time delaying: it means to wait Z seconds before the trade will be opened after the verification of the simple condition that the original trade won’t be in profit more than Q pips.
In case of OFFSET negative add the following options
if the trade before turning into negative reached an highest profit more than C pips the trade is ignored. This means in case of strong retracement the EA will avoid to go against the trend.
capability to ignore exit signals (for all trades or for specific magic numbers)
***filter for the news (for all trades or for specific magic numbers):the EA will:
not open the trade from all or specific magic number
monitor the trades related to the PAIR involved in the news coming event, it means to apply a strict stop loss of V pips.
Management of the positions
For all trades or for specific magic numbers, the set up for the management the position will be:
Applying break even after G pips (also capabilty to add T pips to the break even, like for example BE+3, it means in case of retracement I will get 3 pips not zero).
Jump Stop Loss of U pips: it means the SL will follow steps of U pips following the price.
capability to increase the JSL when the profit increases (e.g. initial JSL is 40 till the price doesn’t reach +120, at that point the SL will be set at +80 pips from BE, then the JSL will increase its value to +initial value * (1+R%): it means that if I set R=50% the new value of JSL will be 60 pips and so on. The alghoritm can be thought like this: when price reaches 3xU recalculate value of the SL with the above written formula. Repeat this everytime we reach again 3xU (look since U changes value the last calculus must be done on the latest value of the variable, in the example the next recalculus wil happen at 40x3+60x3 = 300 pips and U will become 60*(1+R%) = 90 pips and so on. Let use paramenter also to determine the number of times the JSL must be used as basis for recalculation. In the above example it is 3, this variabile will be K from now on, its values can be integer numbers.
for every trade or specific magic numbers: apply a maximum SL of F pips (0 means not set);
for every trade or specific magic numbers: apply a max loss allowed of D pips, once hit, close the position and reopen it after S seconds or after + - Y pips of positive/negative movement of the market price;
for every trade or specific magic numbers: apply a max TP;
capability to use stealth mode to hide values for BE, JSL, TP, SL.
It would be ideal to use a .txt for all the set up since the variables are numerous.
*** not peremptory.