Need help on Indicator (ADX CROSS with Alerts)

Andy O

Trader
May 10, 2016
6
4
24
62
Hi Andy. Thanks for reply. I have made some changes in Line 69 and 71. Now Alert is not working properly. Is shows always down alert and Ask value is wrong. Can you pls help me.
If you change lines 69 and 71 to shift - 1, you would be referencing bar 0, the rightmost one that is currently being formed. Is that your intent? If that's the case then shift - 1 should be now, and shift should be b4. If you do this, however, then the opening value of bar 0 (shift - 1) will be used by the ADX indicator. The way I modified it, when bar 0 completes, then the crossing of the ADX lines are by the ADX values of the two most recently completed bars, bar 1 and to its left, bar 2.
 
  • 👍
Reactions: Enivid

Durai C

Master Trader
May 24, 2017
38
0
47
38
Hi,
In this indicator instead of ADX Threshold function i want to use like if adx value is below 20, don't show signals like that. Can you help me
 

Attachments

  • ADX Crossing With Alert.mq4
    4.1 KB · Views: 21