Help! - page 2

 
Dmitry Fedoseev:
And a horseradish is a horseradish.
It depends on what kind of radish
 
Vladimir Pastushak:

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 :

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.
 
Dmitry Fedoseev:
An extra if to an advisor is like a rock on your neck.
What's your problem with if? Be specific, please.
 
Alexey Volchanskiy:
What is your problem with if? Be specific, please.
It slows down the speed of operation.
 
Dmitry Fedoseev:
It reduces the speed of operation.
It doesn't, don't lie! In the event of anything, he'll be the first to slip through.
 
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...
 
Alexey Busygin:
It doesn't, don't lie! If anything, he'll be the first to slip through.
Oh, come on, guys! So what if it does? The check itself runs.
 
Alexey Busygin:
It doesn't, don't lie! If anything, he'll be the first to slip through.
How will it slip? How will it determine what to skip over what to bump into?
 
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: .....

 
Dmitry Fedoseev:
You guys, come on! So what if it slips? The test itself runs.
So what if it does? It's not like it's a loop.