How to write code based on the following 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.
 
 
myfin90: A) can someone B) I would like to
  1. Make up your mind
  2. You have only three choices: Search for it, learn to code it, or pay someone. We're not going to code it FOR you. We are willing to HELP you when you post your attempt (using SRC) and the nature of your problem.
Reason: