Inside indicator I have buffer were I set value for bar[0], when new bar is created I set value for bar[0] and I need to clear previous bar[0] value.
Is it possible?
When I set 0 or NULL the value is still there and the arrow is visible :/
When you get a new candle, "old" bar[0] becomes bar[1].
yes and I don't want to see the value there,
bar[1]=NULL
it not working :/
yes and I don't want to see the value there,
bar[1]=NULL
it not working :/
Inside indicator I have buffer were I set value for bar[0], when new bar is created I set value for bar[0] and I need to clear previous bar[0] value.
Is it possible?
When I set 0 or NULL the value is still there and the arrow is visible :/
thx,
ChartRedraw() not works.
maybe we need new function from mql4's programmers
ClearBuffer()?
Why don't you answer my question if you need help ?
Forum on trading, automated trading systems and testing trading strategies
angevoyageur, 2014.08.14 19:48
What is "NULL" ?Why don't you answer my question if you need help ?
look
int jeden[];
SetIndexBuffer(0,jeden);
jeden[1]=10; //- the value is there and the arrow is shown
jeden[0]=0;//- the value is there and the arrow is shown
jeden[0]=NULL//- the value is there and the arrow is shown
I don't want to see value (arrow) there during the program working (without re - loading)
jeden[] = new()?
ClearBuffer(jeden)?
thank you very much
below is exactly what I need :)
EMPTY_VALUE |
Empty value in an indicator buffer. Default custom indicator empty value |
2147483647 (0x7FFFFFFF) |
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
You agree to website policy and terms of use
Inside indicator I have buffer were I set value for bar[0], when new bar is created I set value for bar[0] and I need to clear previous bar[0] value.
Is it possible?
When I set 0 or NULL the value is still there and the arrow is visible :/