here, in
fact, is the green saw above the blue balance line. What can he talk about? where to look first for optimization? previously
met only with a saw down. it is more understandable for me. can with such who met?
Share
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
fxsaber
mkron:
figured it out. this is the result
putting a tick in the tester in the box ” profit in pips for
accelerations
calculations“. as soon as the check mark was removed-everything came back to normal-the adviser merges, tails all down!)))
Forum on trading, automatic trading
systems and testing of trading strategies
Tester
MetaTrader 5 strategies: errors, bugs, suggestions for improvement
fxsaber, 2020.01.11
21:41
To get the grail in pips mode, close unprofitable positions with one market for the entire volume
positions, and profitable ones-in a crowd of 0.01 lots.
Example.
#include
#define Ask SymbolInfoDouble(_Symbol, SYMBOL_ASK)
const bool Init = EventSetTimer(100);
void OnTimer()
{
while (OrdersTotal())
if (OrderSelect(0, SELECT_BY_POS))
OrderClose(OrderTicket(), (OrderProfit() > 0) ? 0.01 : OrderLots(), OrderClosePrice(), 0);
OrderSend(_Symbol, OP_BUY, 1, Ask, 0, 0, 0);
}
The result
mkron
figured it out. This is the result of putting a tick in the tester box “profit in pips to speed up calculations“. as soon as the check mark was removed-everything
came back to normal-the adviser merges, tails all down!)))
mvs
Those were not orders, but positions, orders can not be in plus or minus. The fact that this happens with the closure, it is most likely worth a long trawl
dimeon
well, the trailing stop works. only strange that there are orders that were in the black but closed in the red.
lexuslll
something like this should work
orelgrizli
Interesting counselor. A lot of lost profits.
mkron
Thanks
avos
This is the ” saw ” – equity. and it shows in this case the lost profit. you need to dig in the direction of timely closing of positions.