How to do this please
https://www.az-invest.eu/the-cho....for-mt4

the values he specifies are
iCustom(NULL, 0, "Market//choppy-market-index-indicator", 60, 10, false, 3, 1);
The CMI line can be accessed in 3 different ways. To get the CMI line value for the latest completed candle, you need to check index 0:
iCustom(NULL, 0, "Market//choppy-market-index-indicator", 60, 10, false, 0, 1);
The CMI value for green and red colors is accessed via index 1 and 2:
iCustom(NULL, 0, "Market//choppy-market-index-indicator", 60, 10, false, 1, 1); // green line
iCustom(NULL, 0, "Market//choppy-market-index-indicator", 60, 10, false, 2, 1); // red line
the rules for trend are
1. Enter long when the smoothing MA (blue line) is above 60 and the CMI line color is green. 2. Enter short when the smoothing MA (blue line) is above 60 and the CMI line color is red. 3. Exit trades when CMI moves below 50.
|