Help required to understand the error while modifying an indicator.

 

I am having an indicator which displays a couple of price action patterns and it's working 100% perfectly in MT5 build 1940, but as soon as i make even a slightest change in displaying one of the pattern, then i am getting this "Access violation" error in Experts tab.


I am simply making a change from

// bullish
if(high[i-2] < high[i-3] && close[i-1] > high[i-3])

to

// bullish

if(close[i-2] > close[i-3] && close[i-1] > close[i-2])

rest all stays same without any modification, is my indicator encoded with a no change script or am i doing something incorrectly?

 
Well known build 1940 bug. Deal with it or use an other version.
 
Alain Verleyen:
Well known build 1940 bug. Deal with it or use an other version.

Thanks for the reply, could you please share with me the link or an older version which is free of this bug because I am unable to find an older version to download.

 
Haryani H:

Thanks for the reply, could you please share with me the link or an older version which is free of this bug because I am unable to find an older version to download.

You could always try the beta version (use MetaTrader Demo account).

I think the last stable release was 1881. I've put it here (for a week).

https://mega.nz/#F!uoI2BIaC!-Uthow1RiuAVJff3qwzK8Q

Just copy it over existing files of the same name, and do not allow MT5 to install over them when it asks.

 
Anthony Garot:

You could always try the beta version (use MetaTrader Demo account).

I think the last stable release was 1881. I've put it here (for a week).

https://mega.nz/#F!uoI2BIaC!-Uthow1RiuAVJff3qwzK8Q

Just copy it over existing files of the same name, and do not allow MT5 to install over them when it asks.

:D it worked, Thanks a lot :)

 
Hi, can you share me the indicator? am interested in price action stuff.
 
Stanley EpsiBari Deede Nwiko:
Hi, can you share me the indicator? am interested in price action stuff.

well as i am still doing r&d by trying to explore custom patterns, for which i had bought this customized indicator via freelance long time ago, but as my developer is no longer available therefore asked here for help, as a result; my indicator might not be that helpful to you but anyways, all i can suggest you is to google Price Action Patterns or Price Action Bars or Candlestick Patterns and you'll find lots of them (easily 25+). Study and analyze them, maybe after that you would be able to specifically conceptualize what you want and than get an indicator for it, until then you can try your ideas with this freely available indicator.

https://www.mql5.com/en/code/20058

Hope it helps.

Custom_Pattern
Custom_Pattern
  • www.mql5.com
The indicator searches for custom patterns specified in settings, and displays them on a chart. The pattern must be set as a text code, in which: If you write "UUD" in the indicator settings, the indicator will find and display all found "Bullish-Bullish-Bearish" candlestick patterns; If you write "UUD" in the indicator settings, the indicator...
Reason: