Hi
can anybody tell : why all function in different object behave like they have the same static variable ?
the result is only : div
thank you in advanced
...
Improperly formatted code removed by moderator. Please EDIT your post and use the CODE button (Alt-S) when inserting code.
Hover your mouse over your post and select "edit" ...
...
yes , I added the code again in appropriate format
I expect that static variables in different objects , considered as different variables . and then...
but it seems that all of the variables in different objects refer to one variable !!!
would you give me a suggestion to implement my idea.
I want to run my virtual function , that is different in every class , only one time in a candle through my magic IsNewCandle() function.
thank you
yes , I added the code again in appropriate format
I expect that static variables in different objects , considered as different variables . and then...
but it seems that all of the variables in different objects refer to one variable !!!
would you give me a suggestion to implement my idea.
I want to run my virtual function , that is different in every class , only one time in a candle through my magic IsNewCandle() function.
thank you
not declare as static!!
I think it called clearing the problem , not solving it !!
because this idea need static variable to implement
also
by declaring in class level , I receive "unresolved static variable" error
not declare as static!!
I think it called clearing the problem , not solving it !!
because this idea need static variable to implement
also
by declaring in class level , I receive "unresolved static variable" error
really I have not read this part at all !
clearly mentioned:
"These data members are shared by all instances of this class and are stored in one place. Non-static data members are created for each class object variable."
thank you

- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
You agree to website policy and terms of use
Hi
can anybody tell : why all function in different object behave like they have the same static variable ?
the result is only : div
thank you in advanced
...
...