It will give one false signal on the first start of the EA
This is the right and reliable way to do it :
This is a different approach and it is correct. But let's say TF = H4, we might have to wait 4 hours for the first signal. Although, it all depends on the trading system.
Alexey Volchanskiy: This is a different approach and it is the right one. But suppose TF = H4, it could be that you have to wait 4 hours for the first signal. Although, it all depends on the trading system.
This is not a good option, I checked it more than once, even if I change timeframe, the variable will zero out and signal a new bar, my option in this regard is also not ideal, I have to clearly set the period of a new bar...
Anton Tarasov: How to prescribe to open order with the opening of the candle, and with the opening of the next one, it was closed and opened a new one!
Anton!
For various ideas and needs, there is a section called "Freelance".
If you want to write it yourself, you can post the code, and if there are any mistakes you will be corrected.
If you want to be written for free, you can write it in this way: .....
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.
And a horseradish is a horseradish.
this is not the right function!!!
It will give one false signal on the first start of the EA
This is the right and reliable way to do it :
An extra if to an advisor is like a rock on your neck.
What is your problem with if? Be specific, please.
It reduces the speed of operation.
This is a different approach and it is the right one. But suppose TF = H4, it could be that you have to wait 4 hours for the first signal. Although, it all depends on the trading system.
It doesn't, don't lie! If anything, he'll be the first to slip through.
It doesn't, don't lie! If anything, he'll be the first to slip through.
How to prescribe to open order with the opening of the candle, and with the opening of the next one, it was closed and opened a new one!
Anton!
For various ideas and needs, there is a section called "Freelance".
If you want to write it yourself, you can post the code, and if there are any mistakes you will be corrected.
If you want to be written for free, you can write it in this way: .....
You guys, come on! So what if it slips? The test itself runs.