Работа завершена
Техническое задание
I need 2 small modifications for an existing indicator / EA.
1:
I would like an input to my EA, lets call it "RequiredLoss", which disables the EA to trade, until the EA "would have lost" for x amount of trades with all the settings. For example, if the input is =1, the EA should calculate the potential profit / loss the EA would have made on the last trade, but without actually have made it (See attached images for explanation). Then, if the initiated trade is a loss, then the EA is allowed to make the next trade. Further, if RequiredLoss=2, the EA has to loos twice in order to make the next trade.
The attached image shows all the original trades. If RequiredLoss=1, then all the trades highlighted with a red cirkel should have been the only trades to have been initiated, as they are "the first" to come after a losing trade. If RequiredLoss=2, the only trade to be initiated should have been the trade highlighted with a blue cirkel. PLEASE ASK IF IT DOES NOT MAKE SENCE
2:
I would like a variable in my EA to tell me, both in percentage and in real terms, how far the EA is from the highest equity is have ever been if it has a loss / losing streak for the EA. For example: The EA has been trading and at some point is has a couple of loss. The account on the EA went from a balance of 10000$ to 9000$. At this point, the percentage loss is 10% and the real loss is 1000. I need the variabels such that i can use them to manipulate the lot size later on. How to mainupulate the lot size will be my case to consider later.