Download MetaTrader 5

How to write code based on the following conditions

To add comments, please log in or register
myfin90
25
myfin90  
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.
qjol
3243
qjol  
whroeder1
14778
whroeder1  
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.
To add comments, please log in or register