You are missing trading opportunities:
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
Registration
Log in
You agree to website policy and terms of use
If you do not have an account, please register
here we have a problem, i have writen an example, uses WindowsPrixeMax in an indicator, and the call to function return the value of previus Period selected from Toolbox once one tick arrive.
there is no big problem, only wait to a next tick to the indicator's chart, update with correct data.
Here is the code
There is the problem
first: the indicator shows normal, like must be. once droped into chart M1.
Fist Image Shows Normal in M1
Once press the toolbox button to change chart's period, to M5 this happends:
Indicator shows ignoring the new period.
AS YOU CAN SEE, THE INDICATOR GETS THE WINDOWSMAXPRICE THE SAME OF THE M1. ( THIS IS BAD ).
*** NOTE THIS: THE NEW PERIOD IS PRINTED 1 TO 5, indicating the start() function in the indicator was executed.
And, ONE TICK ARRIVES TO CHART. THIS HAPPENDS:
After Tick
AFTER THE FIRS TICK ARRIVES TO CHART, all BACK TO NORMAL.
How can get the new value of WindowsPriceMax and WindowsPriceMin, instantantly after Button M1,M5,M15,M30,H1,H4, was pressed in user interface?