How to write MQL code based on the following simple conditions

 

Hi,

I am new to MQL and can someone able to write MQL code based on the following conditions.

I would like to draw continuous line based on the following conditions:

1. If current bar close higher than previous bar close, draw the lower price level line (The lower price level is the lower price between previous bar close OR current bar close + 1 point ).     

2. If current bar close lower than previous bar close, draw the higher price level line (The higher price level is the higher price between previous bar close OR current bar close - 1 point ).

3. Otherwise, draw the current close price level line.

Thank you in advance.

 
Hi

I suggest you check out the Freelance Section. What your're asking for doesn't sound too complicated so shouldn't cost much.

Cheers
Filter
Reason: