Help me edit the EA.Thank you very much, I will be very grateful to you
Hòa Nguyễn:
we might help you if you go and read the rules for posting in the forum, including using the code button when inserting code.
Hòa Nguyễn #:
I'm very sorry for not knowing the forum rules, I will read it and come back. Thank you so much
I'm very sorry for not knowing the forum rules, I will read it and come back. Thank you so much
Try this, change this line
if(AllProfit()>Profit || AllProfit()<-Loss) to
double total_profit = AllProfit(); if((total_profit>=20 && CountTrades() == 1) || (total_profit>1 && CountTrades() > 1) || total_profit<-Loss)
Help me edit the EA. If Number of Trades = 1, profit = 20, If Number of Trades > 1, profit = 1.