In need Of Help For Some Adjustments

 

Hello Traders,

The attached mq4 file is downloaded from here, and I have made some small modifications.

But to be honest, my MQL knowledge is so minimal, I'm not sure how to archieve what I want.

I'm hoping that somebody is willing to help me out with this. 

 

# How to enable the Traling Stop? The code for this function is in the source, but THE ts DOES NOT MOVE ALONG.

# When a trade is in profit, a Trailing Stop Step should take it over from here.

# A new trade have to be made, when the previous candle closed 

as different color then the trend just before. If a trade were open, 

this one should be closed immediately. The new made trade should run 

as long as the closed Heiken Asi Candles doesn´t change color. 

If a candle has the opposite color after it closes, it should close  

that trade and create a new one for the new trend.

What happens when the code below gets exucuted?

extern int    BreakEvenAt             = 5;          
extern int    BreakEvenSlide          = 2;  

 

 

Thank you per advance, any input is much apreciated. 

Files:
Reason: