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
Hello,
What SRC button? I use the german version of Meta Editor, i also turned it to english but what SRC button?
A friend had the same problem that the moving average shift to -5 didn´t work. He got a update from the broker to his account so it work now. So i don´t know if i have the same problem here.
How can i use the shift to -5 so that it will work and the EA makes trades?
Did you try this ? or are you just trying to waste people's time ?
I suggest you do this and then you will understand what is going on:
Add 2 MAs to any chart, just the standard Moving Average indicator, add one with a MA shift of 0 and one with a MA shift of -5, the use the Data Window (Ctrl + D) and look at bars to the left of bar 10 by placing your mouse pointer on the bar and looking at the Data Window, you will see two values, one for each of the 2 MAs, now look at bars 0 to 4 . . . you will see only one value, the other MA does not have a value.
Hello,
thanks for you answers.
What SRC button? I use the german version of Meta Editor, i also turned it to english but what SRC button?
A friend had the same problem that the moving average shift to -5 didn´t work. He got a update from the broker to his account so it work now. So i don´t know if i have the same problem here.
How can i use the shift to -5 so that it will work and the EA makes trades?
Thanks.
Play video
For large amounts of code, attach it.
Hello Raptor,
thanks for your answer. English isn´t my motherlanguage so it´s a bit heavy for me.
I use 2 moving averages on different periodes to see a trend. What i like to do is, shift the faster ma -5 backwards. The problem on the 2 moving averages is, that they are very slow. So if they reach a "cross" the price i have to pay is higher or lower. So i like to get a better price by shifting it back. It looks great with the -5 in a chart. I can set the MA1_Shift=-5, but if i try it in the strategy tester it doesen´t make even 1 trade. So i don´t know where the problem is.
You've been answered a few times, but you seem to be unable to comprehend.
Yes, shifting the MA backwards will look great on the chart, sometimes it will seem to be uncannily accurate at predicting moves.
But of course it is not predicting because the MA is calculating on future data compared to its position on the chart.
Look at the 2 charts and you will see where I have marked the shifted MA cross with an arrow
The 2nd chart shows what MA data was available at the time of the cross.
As you can see, because of the shift backwards, at that time, there was no cross, because the MA cannot work with data from candles that, at that time, would be in the future.
That is why your EA will not work with the shift backwards
Thank you,
ah ok, now with the SRC button.
Shift the other MA to +5 does not make the same results, because it is much slower.
Ok that update from my friend was just a normal account update, so the problem must be somewhere in the code. Can anyone please help me?
or are you just trying to waste people's time ?
Yes i know what the shift does, the whole time i´m trading with 2 MA´s and the "faster" one is shift to -5 but i like, that a EA is doing this for me.
My friends EA work with the shift to -5 from the "faster" MA.
Thanks for you help!!!
I think that your friend's EA is not exactly the same code as yours.
Add some print commands to print the value of the shifted MA and you will see what the problem is.
I think that your friend's EA is not exactly the same code as yours.
Hello,
yes this is right. He payed for his EA a lot of money. A professional programmer made it for him. I thought it should be possible to make the -5 shift running on the EA without paying for it. Otherwise i will pay for it to only get the code for the shift for my EA.
Hello,
yes this is right. He payed for his EA a lot of money. A professional programmer made it for him. I thought it should be possible to make the -5 shift running on the EA without paying for it. Otherwise i will pay for it to only get the code for the shift for my EA.
Then the shift on your friend's EA applies to something else.
The way you want it requires that calculations are made with data from the future and this is impossible.
Look at this indicator. It is uncannily 100% accurate and tells you the exact closing price of the 5th following bar.
Wow, I will be a millionaire in no time with this :)
Simply buy when the indicator is way above the price and sell when it is well below. Target is the value of the indicator. You will see that the target is hit every single time and zero losses.
So how much would you be willing to pay me for this 100% accurate indicator?
$100?
$1,000?
$100,000?
The big institutions would be willing to pay me millions for this,
but special offer, just for today,
You can get it for,,,,,,,
wait for it......
You won't believe this......
Today only.....with a 60 day moneyback guarantee......
..........$0
Just put a 1 period SMA with Close and a -5 shift.
Sorry, I couldn't resist the joke :)
If you don't understand now, then you never will.