
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
goldtrader ,maybe I'm asking you too dumb a question, but still, where does the "Data window" get all the values from?
This is a question for the MT4 terminal developers. I think that from the buffers of the corresponding indicators and timeseries.
So there is no equivalent function like GetWindowsData(3 buffer,0 bar) ?
GetWindowsData came up with it myself.
Read msdn, WinApi, WindowHandle. I am not an expert in these technologies. Keep in mind that for your task it's a BLEEP.
There is something here https://www.mql5.com/ru/forum/120356
To get those values from the data window - you need to have the mouse cursor always over the desired window
as soon as the cursor moves somewhere or loses focus - the window stops refreshing
So there is no equivalent function like GetWindowsData(3 buffer,0 bar) ?
Perhaps it's worth explaining something to make things clearer.
The line MyValue=MyValue/(PeriodSkolzjaschej+1); 1 is added to the variable PeriodSkolzjaschej because the loop will start the search from the candle with number = PeriodSkolzjaschej and finish with zero candle. Therefore the total number of candlesticks which participated in the loop will be equal to PeriodSkolzjaschej+1. This means that if PeriodSkolzjaschej=35, the MA with period=36 will actually be involved. In order to get a 35-period moving average without changing anything in the code, we need to set PeriodSkolzjaschej variable to 34.
Perhaps it's worth clarifying a few things to get the point across.
The line MyValue=MyValue/(PeriodSkolzjaschej+1); 1 is added to the variable PeriodSkolzjaschej because the loop will start the search from the candle with number = PeriodSkolzjaschej, and it will end with zero candle's reading. Therefore the total number of candlesticks which participated in the loop will be equal to PeriodSkolzjaschej+1. This means that if PeriodSkolzjaschej=35, the MA with period=36 will actually be involved. In order to get a 35-period moving average without changing anything in the code, we need to set PeriodSkolzjaschej variable to 34.
thanks
Is applied_price an extra variable?
thank you
Is applied_price an extra variable?
No - by default I set iMACD() to zero, which means that the indicator should be built based on close prices. If I allow the user to choose, then the request for the indicator value should be done like this