Force Refreshing Chart

 

Hi Guys,


Got odd issue with my indicator, i have to manually on chart right click and press "Refresh Button" to make my items showing correctly on screen!

i tried ChartRedraw(0);

didn't help is there any way to actually call that Refresh event i use manually via code?!


i appreciate your help in advance

tnX

Files:
 

How about you start updating from a few bars before?

For example, this is for MQL4.

limit = rates_total - prev_calculated + 3;

 
Your indicator is broken, fix it.
 
Naguisa Unada:

How about you start updating from a few bars before?

For example, this is for MQL4.

limit = rates_total - prev_calculated + 3;

tnX,

yeah thats what i'm doing at the moment to overcome the issue...


wondering if i can call windows API or something refresh it

 
William Roeder:
Your indicator is broken, fix it.

well not very helpful

beside thats coloring example wrote bye MQL5 itself i just messing around with colorings to figure out better way to handle candles in Japanese sense of things 

so that's that...


not mentioned if i figure out why PlotIndexSetInteger have extra item that if you put number in it broke the whole thing wouldn't ask in forum since help file is totally useless on this function 

atleast if you can't help to rob the salt let others help
 
Amirfakhredin Ghanbari:

well not very helpful

...

If you want an helpful answer about a coding issue, post your code.

 
try this with NULLand 0

https://www.mql5.com/en/docs/chart_operations/chartsetsymbolperiod