Hello! I am writing an EA for placing pending orders on fractals. But only buy orders are placed. How should I correct it? I am attaching the EA and the indicator.
Allow the use of cookies to log in to the MQL5.com website.
Please enable the necessary setting in your browser, otherwise you will not be able to log in.
You are signed in. Two-factor authentication has been disabled. Set it up again and scan a new QR code, or continue with two-factor authentication disabled.
Please help - there is a piece of code like this
everything works fine normally, but got an error here - can't reproduce - the error in the code starts with Time[I] brackets
2017.07.25 21:09:57.266 Worms_UpDn_RSI_OSC_Calc AUDCAD,M15: array out of range in 'Worms_UpDn_RSI_OSC_Calc.mq4' (104,47)
Try to replaceBars withBars(Symbol(), TF);
You are getting data from another timeframe, but the number of bars is taken from the current one.
Try to replaceBars withBars(Symbol(), TF);
You get data from another timeframe and take the number of bars from the current one, but the data you get may be less, hence the error
Thank you! I think it will help!
Attention, correct answer:
My EA stopped working in tester in non-visual mode after last update. I had to redo some things.
Greetings.
Is it possible to test on history with a spread?
It is set in the tester. Or do you need a real floating spread?
So it is set in the tester. Or do you want a real floating spread?
Real
Hello! I am writing an EA for placing pending orders on fractals. But only buy orders are placed. How should I correct it? I am attaching the EA and the indicator.
Hello! I am writing an EA to place pending orders on fractals. But only buy orders are opened. How to correct it?
It is allhere.
Hello.
Could you help correct two errors.
1. 1 order should open on one bar (now opens randomly)
2. To correctly open 1 order with a set volume (now it is opening with different volumes)
The idea is that this EA should open a deal of 10% of the deposit on one bar (I had hoped so), but it is not happening.
I have been working on this for a long time now and I am happy to see the results.
Please advise where the error lies.
Code:
Function is being evaluated