"
Most simple Sideways Detector

Most simple Sideways Detector

by Dr.Hamdi Boukamcha

In all my time creating methods for the Monetary Markets I noticed lots of people complain about having difficulties detecting sideways markets programmatically.

So I assumed to share the strategy I am utilizing and being very glad with it. It’s definitely not good, particularly after an enormous transfer. However in the long run it would not should be good to work.

I hope it helps you.

Hooked up Picture (click on to enlarge)
Most simple Sideways Detector
Inserted Code
//+------------------------------------------------------------------+
//|                                             SidewaysDetector.mq4 |
//|                                                          mwfx108 |
//|                                                [email protected] |
//+------------------------------------------------------------------+
//| Want a customized Indicator or EA for MT4, MT5, cAlgo, NinjaTrader?  |
//| Contact me at [email protected] to ask for particulars and costs.   |
//+------------------------------------------------------------------+
#property copyright "mwfx108"
#property hyperlink      "[email protected]"
#property model   "1.00"
#property strict
#property indicator_chart_window
//+------------------------------------------------------------------+
//| Customized indicator initialization perform                         |
//+------------------------------------------------------------------+
int OnInit()
  
//+------------------------------------------------------------------+
//| Customized indicator deinitialization perform                       |
//+------------------------------------------------------------------+
void OnDeinit(const int purpose)

//+------------------------------------------------------------------+
//| Customized indicator iteration perform                              |
//+------------------------------------------------------------------+
int OnCalculate(const int rates_total,
                const int prev_calculated,
                const datetime &time[],
                const double &open[],
                const double &excessive[],
                const double &low[],
                const double &shut[],
                const lengthy &tick_volume[],
                const lengthy &quantity[],
                const int &unfold[])
  
//+------------------------------------------------------------------+
//| Take away our chart objects                                         |
//+------------------------------------------------------------------+
void RemoveObjects()
  
//+------------------------------------------------------------------+
Attached Files
Most simple Sideways Detector  cm ind Level.ex4   12 KB | 16 downloads
Most simple Sideways Detector  cm ind Level.mq4   4 KB | 25 downloads
  • Supply : Most simple Sideways Detector    Thanks  KayStreet

Share this article

Leave a comment