how remove value form buffer?

 

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 :/

 
bobolanin:

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].
 
angevoyageur:
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 :/

 
bobolanin:

yes and I don't want to see the value there,

bar[1]=NULL
it not working :/

What is "NULL" ?
 
bobolanin:

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 :/

Hi. Use chartRedraw() .... your chart may be not updated.
 
FinanceEngineer:
Hi. Use chartRedraw() .... your chart may be not updated.

thx,

ChartRedraw() not works.

maybe we need new function from mql4's programmers

ClearBuffer()?

 
bobolanin:

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 ?

 
angevoyageur:

Why don't you answer my question if you need help ?

What it's supposed to do ?
I need to have possibility to remove value form indicator's buffor (after it was set)

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)?
 
Other constants - MQL4 Documentation
  • docs.mql4.com
Other constants - MQL4 Documentation
 
angevoyageur:
EMPTY_VALUE

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)

Reason: