Shifts are both zero.
So, no matter what the values of the input of Shift I enter, Shift at MA function is alway 0, right?
- www.mql5.com
Handle = iMA(Symbol(), TF, ma_period, shift, method, apply); CopyBuffer(Handle, 0, Position, 1, Values);
Perhaps you should read the manual, especially the examples.
How To Ask Questions The Smart Way. 2004
How To Interpret Answers.
RTFM and STFW: How To Tell You've Seriously Screwed Up.
Technical Indicators - Reference on algorithmic/automated trading language for MetaTrader 5
Timeseries and Indicators Access / CopyBuffer - Reference on algorithmic/automated trading language for MetaTrader 5
How to start with MQL5 - General - MQL5 programming forum - Page 3 #22 2020.03.08
How to start with MQL5 - MetaTrader 5 - General - MQL5 programming forum - Page 7 #61 2020.07.05
How to call indicators in MQL5 - MQL5 Articles 12 March 2010
Perhaps you should read the manual, especially the examples.
How To Ask Questions The Smart Way. 2004
How To Interpret Answers.
RTFM and STFW: How To Tell You've Seriously Screwed Up.
Technical Indicators - Reference on algorithmic/automated trading language for MetaTrader 5
Timeseries and Indicators Access / CopyBuffer - Reference on algorithmic/automated trading language for MetaTrader 5
How to start with MQL5 - General - MQL5 programming forum - Page 3 #22 2020.03.08
How to start with MQL5 - MetaTrader 5 - General - MQL5 programming forum - Page 7 #61 2020.07.05
How to call indicators in MQL5 - MQL5 Articles 12 March 2010
It's obvious that this is a non-technical person trying to settle a dispute with his dev. How much time did you spend with that response?
It's obvious that this is a non-technical person trying to settle a dispute with his dev. How much time did you spend with that response?
Yes, you are right, the dev said this:
provide proof that it is not working.
please don't talk in coding language. show me the wrong scenario using image and I check it.
The code shown in #1 is plain wrong, it's like you said, shift is always equal to the applied price (0 for PRICE_CLOSE) no matter what input was chosen.
It's very obvious for any developer. Just show them this thread.
Perhaps you should read the manual, especially the examples.
How To Ask Questions The Smart Way. 2004
How To Interpret Answers.
RTFM and STFW: How To Tell You've Seriously Screwed Up.
Technical Indicators - Reference on algorithmic/automated trading language for MetaTrader 5
Timeseries and Indicators Access / CopyBuffer - Reference on algorithmic/automated trading language for MetaTrader 5
How to start with MQL5 - General - MQL5 programming forum - Page 3 #22 2020.03.08
How to start with MQL5 - MetaTrader 5 - General - MQL5 programming forum - Page 7 #61 2020.07.05
How to call indicators in MQL5 - MQL5 Articles 12 March 2010
Thank for your info, I will give this thread post link for my developer to read.
The code shown in #1 is plain wrong, it's like you said, shift is always 0 no matter what input was chosen.
It's very obvious for any developer. Just show them this thread.
I had to give him these 2 pic then he worked on it. It is idloitic.
- Yes it is.
- None.
- OP wanted "to prove this is wrong" to his developer. So I did, as did lippmaje. And now he has proof.
Dilwyn Tng Zhuo Yu: Thank for your info, I will give this thread post link for my developer to read. - What is your major malfunction?
- What is your major malfunction?
Shift did not produce differences in optimization steps.
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
You agree to website policy and terms of use
Hello all,
How can I proof this code affects MA shift with picture? I told my coder this code is wrong, he want me to prove with picture before he will check on it.
What I see is he is passing Apply into Shift and in the MA function, shift is a local variable which is 0. No matter what Shift input will be, Shift is alway 0.