I have two idea to make an EA on Bollinger bands with specific parameters and limit the open positions at the same time for this EA,
It only use Bollinger bands, with parameters period 26, deviation 4.5, and shift 0,
I want it to search for the price which touches upper band and where touches lower band.
Buy for lower band touch and sell for upper band touch.
But it should work on every tick and max open positions should be 5 ,
Tnx :)
Why limit the number of positions? If you are worried that there is not enough margin, then I suggest another solution: Before opening a position, we check the adequacy of the funds.
Why limit the number of positions? If you are worried that there is not enough margin, then I suggest another solution: Before opening a position, we check the adequacy of the funds.
Bollinger Bands N positions version 1.002 (final version):
We work on a new bar
There are no restrictions on the number of positions
If we get BUY signal - then we close all positions of SELL
If we get the signal SELL - then close all BUY positions
Before each opening, we check the equity with a double lot
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.
No, I do not help those who work at the old terminal. Only MQL5!
Okay sir i will use MQL5 now :)
Bollinger Bands N positions version 1.001:
Now restriction for quantity of positions works.
I haven't decided yet how to close positions...
Hi Mr. Vladimir,
Why limit the number of positions? If you are worried that there is not enough margin, then I suggest another solution: Before opening a position, we check the adequacy of the funds.
Why limit the number of positions? If you are worried that there is not enough margin, then I suggest another solution: Before opening a position, we check the adequacy of the funds.
Bollinger Bands N positions version 1.002 (final version):
Hi sir Vladimir Karputov do you accept my strategy? Im MQL5 user now.
No. I'm not interested. Excuse me.
What do you say on such a strategy of "Trading on Fractals":
?
To avoid too close deals, take the parameter "Minimum distance":