How can command not to trade in range market

 
If ATR rise and ADX rise it is trending but in ranking how can know range by code and how can prevent trade in this range market.

 
Use Bollinger Band function combined also with chart pattern. If it is a range chart model then let s say past 30 formed bars has some standard range form.
 
Aung Swar: If ATR rise and ADX rise it is trending but in ranking how can know range by code and how can prevent trade in this range market.
  1. If your definition of trending is increasing ATR and increasing ADX (perhaps above a level) then code it that way. If not trending then it must be ranging.
  2. Test for trending and don't trade if not.
  3. Show us your attempt (using the CODE button) and state the nature of your problem.
              No free help
              urgent help.

    Or pay someone. Top of every page is the link Freelance.
              Hiring to write script - General - MQL5 programming forum

 
Marius Ovidiu Sunzuiana:
Use Bollinger Band function combined also with chart pattern. If it is a range chart model then let s say past 30 formed bars has some standard range form.
I also interest in chart pattern .Can I know some example that already has in this forum or some references.Thanks bro.
Reason: