Trabalho concluído
![](https://c.mql5.com/i/avatar/avatar_na2.png)
Termos de Referência
Dear All
I should have some which can help me to modify my EA. At the Moment, the EA Close with Averaging the order (in pips or in Profit). The Change for this is, that EA Close with averaging only short or only buy. both should be Close seperate instead of Close all if predefine "TP" is hit. in this case, EA should have a seperate Magicnumber for Longs and for Shorts too.
The Main Modification is, that EA have a second "strategy". i call this "possible Trend Change".
I work only with MA which have my own Input (Overall are this MA like in MT4). My EA checks first which direction is. For this he compare two MA's. a fast and a slow (classical style). After then he measure the distance between this Ma's to define how big the Trend is. If it fits with my Setting he open an order along the slow MA. I can set as well on which Distance from MA (this Levels can also set on MT4 if you open MA and go to "Levels") ÊA should open Trades and as well how far away this trades obverse the MA is... so,..this is the actual Progress described in a short way:)...
The Modification for this will be, if EA have open trade eg. 5 Short Trades the "possible Trend Change" checks every Bar how much the Value from the "Fast MA" is. If the value less then the pre closed Bar, all is fine and EA trades Forward. If the Value from "Fast MA" is same like previous Bar again all is fine and EA trade Forward. But sometime the Value from the "Fast MA" will be higher then the previous Bar (doesnt matter if the Main trend-direction Show short again) and now the time will come for the new "possible Trend Change Order". if this happen, EA should react and open immediately a opposite Order to compensate the other Trades. This order should have the same Magicnumber like the Shorts. Because in this case, this order doesn't have influence for the Long trades (because this trades have an other Maigcnumber). If this Trend-Change Order is open, EA should check every closed Bar and check, if this value at the beginning from this Trend-Change Order is same or higher (in case of a Long Order). now the EA check each closed bar back, if ist same or higher all it's fine. if not and value beginns to fall, EA should Close immediately this trade. the Goal for this trade is, to compensate the "wrong" trades and that he Close all trades together if Breakeven (or a small Profit) is reached.
For this trade i should have a calculation. EA should can check where the BE Point is with the help of TP from this Trend-Change Order and the Lotsize.
i mean, you as programmer you should have the skills how to calculate it if i set for example Trend-Change-Order have 10pips (100points) TP (autocalculation is how big should be the lotsize to find BE Point + 1$ for eg)
A good and nice tool will be as well, if you can modify the EA that i can trade in one Chart at least 2 different Timeframes. eg M5 together with M15.
Sorry for my english and sorry if its complicated to read,...
for more Details only if you are interested in this job
And ea should open only a max order. I should can set eg open only max 5 orders