The idea is this: I need the Expert Advisor to mark with lines on the chart the places where the price, having been above the upper Bollinger Bands band, goes below the lower band for the first time. But it does not work. What is wrong?
Could you please tell me how to make a function to open a trade only after pressing the "autotrade" button on MT. This code does not work when the button is disabled. I can add some conditions...
Added your code to my above, the log says it is now not an EA and cannot be opened.
This is for news trading multiple currencies, want such a mechanism: 1. The news comes out I press the button "autotrade". 3. The Expert Advisor without thinking rubs the broker to open the deal.
Minimized version of the Expert Advisor, only one function - open a deal. I cannot figure out how. The Expert Advisor may be very good (just add the EA on the chart with owls and the EA will do everything by itself), but I would like the EA to open a basket of orders when I activate "auto trade".
I.e., in words I can describe the code roughly as follows: 1. We check if trading is allowed. 2. If not, we wait for the click. 3. Once clicked, the basket of orders is opened. 4. Check for trade authorization not every tick, but... minimum time. The minimum possible time. (check-check-check, instantaneous like this)
Or add "Buy basket with dollar" button on the chart and the basket opens instantly. But, as I understand it is difficult to make the button.
If you know what condition to add or how to implement (if it's simple), please share.
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.
My bad, I stand corrected!!! Don't know much of the order. Sorry. I'd like to get a handle on this example.
Guys, please write the minimum code to open a currency transaction basket.
1. Press "Auto Trade" button in the terminal
EURUSD, GBPUSD, AUDUSD, NZDUSD open on a buy lot 0.01, and USDCHF, USDCAD and USDJPY open on a sell lot 0.01
To have an EA in one windowGuys, can you please write the minimum code to open a basket of currency trades.
1. Press "Auto Trade" button in the terminal
EURUSD, GBPUSD, AUDUSD, NZDUSD open on a buy lot 0.01, and USDCHF, USDCAD and USDJPY open on a sell lot 0.01
To have an EA in one windowNeed a button on the chart
Need a button on the graph
Thanks for MT5, now need it for MT4.
Thanks in advance)
Hello!
The idea is this: I need the Expert Advisor to mark with lines on the chart the places where the price, having been above the upper Bollinger Bands band, goes below the lower band for the first time. But it does not work. What is wrong?
Could you please tell me how to make a function to open a trade only after pressing the "autotrade" button on MT. This code does not work when the button is disabled. I can add some conditions...
Experiment with a script like this:
Experiment with a script like this:
Thanks, but I'm not good at code, unfortunately.
Added your code to my above, the log says it is now not an EA and cannot be opened.
This is for news trading multiple currencies, want such a mechanism:
1. The news comes out
I press the button "autotrade".
3. The Expert Advisor without thinking rubs the broker to open the deal.
Minimized version of the Expert Advisor, only one function - open a deal. I cannot figure out how. The Expert Advisor may be very good (just add the EA on the chart with owls and the EA will do everything by itself), but I would like the EA to open a basket of orders when I activate "auto trade".
I.e., in words I can describe the code roughly as follows:
1. We check if trading is allowed.
2. If not, we wait for the click.
3. Once clicked, the basket of orders is opened.
4. Check for trade authorization not every tick, but... minimum time. The minimum possible time. (check-check-check, instantaneous like this)
Or add "Buy basket with dollar" button on the chart and the basket opens instantly. But, as I understand it is difficult to make the button.
If you know what condition to add or how to implement (if it's simple), please share.