how remove value form buffer?

To add comments, please log in or register
Tadeusz Kiesner
11602
Tadeusz Kiesner  

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

Alain Verleyen
39054
Alain Verleyen  
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].
Tadeusz Kiesner
11602
Tadeusz Kiesner  
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 :/

Alain Verleyen
39054
Alain Verleyen  
bobolanin:

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

bar[1]=NULL
it not working :/

What is "NULL" ?
Young Ho Seo
60300
Young Ho Seo  
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.
Tadeusz Kiesner
11602
Tadeusz Kiesner  
FinanceEngineer:
Hi. Use chartRedraw() .... your chart may be not updated.

thx,

ChartRedraw() not works.

maybe we need new function from mql4's programmers

ClearBuffer()?

Alain Verleyen
39054
Alain Verleyen  
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 ?

Tadeusz Kiesner
11602
Tadeusz Kiesner  
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)?
Alain Verleyen
39054
Alain Verleyen  
Other constants - MQL4 Documentation
  • docs.mql4.com
Other constants - MQL4 Documentation
Tadeusz Kiesner
11602
Tadeusz Kiesner  
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)

To add comments, please log in or register