Help code Exit Strategy on NonLagMA EA

 

Hi forum,

Can anyone here help me to modify an EA. This EA basically a trendfollowing system;

its decision to buy or sell depends on the colour changes of the slope. To buy or to

sell, this EA must wait until the 2nd Bar confirmation (to prevent false signal).

While it is okay for my risk appetite to enter position at 2nd Bar confirmation,

I would like to modify my Exit strategy/closing the position to 1st Bar confirmation as

suppose to 2nd Bar confirmation.

Would you guys help me to modify it and show me which line code needs to be modify

as I am still learning to understand the programming of MT4. Thanks!

Files: