I have current EA logic portion using actual buffers  and . buffer zero values are constantly changing. here is my question
if I copy the buffer to a variable how often will that value update in the variable ?
just to clarify,
copy buffer xxxxx to variable
variable will not change value until next candle ?
buffer will change if re-computed because candle 0 is constantly changing (except for open price, which will stay the same throughout).
but when you copy to a variable, that variable takes the value of buffer at the instant that you do the copy, and will stay the same until you repeat everything (i.e. re-compute buffer, and copy it to variable) again.
Next candle is irrelevant. It will not change until you assign it another value.
MT4/MT5 actually compiles with non-constants, but the order that they are initialized is unspecified and don't try to use any price or server related functions in OnInit (or on load,) as there may be no connection/chart yet:
Thank you everyone.
I am going to copy buffer 0 and buffer one for my indicator triggers, seem like its better open and do some testing.