Forum

I need help about this function lock profit, it go forward when it move back should lock and close it , I do not know where and which line is wrong

input double profit = 35 ; //profit level where EA is activated input double profit_drop = 30 ; //amount to drop before closing positions input double profit2 = 45 ; //profit level where EA is activated input double profit_drop2 = 40 ; //amount to drop before