Below is the coding I am writing which give the correct result, but if I change timeframe or symbol, the indicator disappears. The only way I can get it back is if I recompile the code.
Is there anyone who can help resolve this issue please?
- It won't repaint until a tick comes in and calls start. Market is currently closed.
// int counted_bars=IndicatorCounted(); // int limit=(Bars-counted_bars)-1; // Do it right int counted_bars=IndicatorCounted(); if(counted_bars>0) counted_bars--; limit=Bars-counted_bars;
It won't repaint until a tick comes in and calls start. Market is currently closed.
right click/refresh?
Hello WHRoeder
Thank you for your response.
Although the market is closed, I have other indicators that don't disaapear when I change timeframe/symbol. This was also happening yesterday during market hours.
The refresh will not repaint the indicator either.
B
I'm seeing this on my indicator, works fine initially but changing the length results in iMAOnArray is returning garbage though the inputs are correct. I have no clue. Here's my code
buffer1[i]=iMA(NULL,0,per2,0,MODE_LWMA,PRICE_CLOSE,i)*2- iMA(NULL,0,HMA_Period,0,MODE_LWMA,PRICE_CLOSE,i); tmpPrevious=iMAOnArray(buffer1,0,sqrt,0,MODE_LWMA,i+1); tmp =iMAOnArray(buffer1,0,sqrt,0,MODE_LWMA,i); if (i> Bars-20) Print( "b[",i,"]=",buffer1[i],",",buffer1[i+1],",",buffer1[i+2],",",buffer1[i+3], ",",buffer1[i+4],",",buffer1[i+5],",",buffer1[i+6],",b[",i+7,"]=",buffer1[i+7], " t=",tmp," sq=",sqrt," db=",draw_begin0," per=", HMA_Period," Bars=",Bars); //b[34486]=1.2377,1.2377,1.237,1.2362,1.2361,1.2348,1.2336,b[34493]=1.2329 t=2147483647 sq=3 db=14 per=10 Bars=34505 //b[34487]=1.2377,1.237,1.2362,1.2361,1.2348,1.2336,1.2329,b[34494]=1.2332 t=1789569706.0394 sq=3 db=14 per=10 Bars=34505 //b[34488]=1.237,1.2362,1.2361,1.2348,1.2336,1.2329,1.2332,b[34495]=1.2325 t=1073741824.1181 sq=3 db=14 per=10 Bars=34505 //b[34489]=1.2362,1.2361,1.2348,1.2336,1.2329,1.2332,1.2325,b[34496]=1.2332 t=1.236 sq=3 db=14 per=10 Bars=34505
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
You agree to website policy and terms of use
Hello
Below is the coding I am writing which give the correct result, but if I change timeframe or symbol, the indicator disappears. The only way I can get it back is if I recompile the code.
Is there anyone who can help resolve this issue please?