I wrote this indicator, but it does not shows the same for ADX in 5MIN window with timeframe 15MIN as ADX in 15MIN window
int start() { int limit; int counted_bars=IndicatorCounted(); //---- check for possible errors if(counted_bars<0) return(-1); //---- last counted bar will be recounted if(counted_bars>0) counted_bars--; limit=Bars-counted_bars; //---- main loop for(int i=limit-1; i>=0; i--) {
Allow the use of cookies to log in to the MQL5.com website.
Please enable the necessary setting in your browser, otherwise you will not be able to log in.
You are signed in. Two-factor authentication has been disabled. Set it up again and scan a new QR code, or continue with two-factor authentication disabled.
I wrote this indicator, but it does not shows the same for ADX in 5MIN window with timeframe 15MIN as ADX in 15MIN window
int start()
{
int limit;
int counted_bars=IndicatorCounted();
//---- check for possible errors
if(counted_bars<0) return(-1);
//---- last counted bar will be recounted
if(counted_bars>0) counted_bars--;
limit=Bars-counted_bars;
//---- main loop
for(int i=limit-1; i>=0; i--)
{
ExtMapBuffer1[i]=iADX(NULL,ADXTimeFrame,ADXPeriod,PRICE_CLOSE,MODE_MAIN,i);
}
//---- done
return(0);
}