Hello i guys i have this cross function that check if price cross high bollinger bands:
i want it open a single order everytime the price cross the band but i tried everything the bot keep opening for every tick
<a href="https://ibb.co/NL7Dn2k"><img src="https://i.ibb.co/THrjqMn/Immagine.png" alt="Immagine" border="0"></a>
Immagine hosted at ImgBB
- ibb.co
Immagine Immagine ospitata in ImgBB
- How to start with MQL5
- I will write an advisor free of charge
- How to check if Bollinger Bands had Crossed
Giovanni “okayflame”:
- You must share code using the 'Code' button or Alt+S.
Giovanni “okayflame” #: Ok i edited Can you solve my problem also ?
Here I am sure they can help you: https://www.mql5.com/en/job

Trading applications for MetaTrader 5 to order
- 2023.04.01
- www.mql5.com
The largest freelance service with MQL5 application developers
1) You have to count your open orders. And only open orders for example if you count = 0.
2) If you want to open multiple orders you could place them only on new bar.
Your code if(TestMin_1 < TLBuffer[1] && TestMin_0 > TLBuffer[0]) return true; return false;
Simplified return TestMin_1 < TLBuffer[1] && TestMin_0 > TLBuffer[0];
- Amira J Brand #: 2) If you want to open multiple orders you could place them only on new bar.
Or Act on a change of signal.
Too many orders - MQL4 programming forum #1 (2017)

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