That's a good question. I tried to use it at the most simple level and not a single tick is skipped.
https://fxdreema.com/shared/1iMEur5jd
I'm bery interested in someone solving our common problem.
That's a good question. I tried to use it at the most simple level and not a single tick is skipped.
https://fxdreema.com/shared/1iMEur5jd
I'm bery interested in someone solving our common problem.
You need to specify the candle ID if there is no value of the indicator for candle 0 (i.e. the current one). Maybe this is why there is no value.
I have a thread asking for exactly the same ;).
https://fxdreema.com/forum/topic/6157/questions-about-skip-ticks-block
I tried this simple example and it doesn't work.
https://fxdreema.com/shared/ReqSxTlLb
Not a single tick is skipped no matter how many seconds I insert as a constant. Am I missing something?
You should separate both 'Trailing stop' and 'Break even' blocks from your current structure. They should be considered as a parallel command group like this:

That way, whatever happens first will be applied. Be aware thar the number of the block is important here. Break even point should have a lower number (2 in my image) than Trailing stop (3 in my image).
That should help.
Does this block stop other blocks after it? I mean that they are apparently blocked beyond the time period specified.
Could you please share your project? Looking at the mq4 without having acces to the indicator doesn't help.
Because EAs are supposed to take advantage of a pair's behaviour (volatility, time on trend, spread, etc.), not the opposite.
Thank you for your suggestion. That's an interesting alternative to what I'm trying, but I would like to be sure I'm understanding the block correctly before changing my project.
That's correct if you choose the 'check mode' option 'Fixed pips'. Then it is flat distance. This is why I chose 'Function value', because then I can pick price levels. My problem is that not alwaus works as planned and I want to be sure why.
This is an example for sells. You just need to duplicate it for buys.
I would like to confirm I understand correctly the 'check stop-loss' block. Let me put an example. I want to check a second sell trade SL with another previous sell SL. I got the first SL price on a variable. Then I use the block in order to compare the current SL of the second trade this way:

This is what I understand:
The first display option tells me that if the SL level of the current (second) trade is 'greater' (BTW, that 'h' should be corrected) than what is below...
...the second display option selected is 'Function value', then the block passes.
In my example, that variable ('first_sell') contains the price level of the first sell. So let's put some numbers. Say the SL level of the first sell is 1.8000. Now the SL level of the current sell is 1.9000. As 1.9000 is greater than 1.8000 the block will pass.
Is that correct?
Apparently I cannot choose decimal time units for seconds. I mean I choose them but it doesn't work. Is that intended?
I'm going to try it for the first time and I would like to know the following:
Can I choose decimal time units, i.e. 0.3, 0.5, 0.7 minutes?
How does it work at backtesting? Does it distort results or not?
Thank you in advance
All 'light off' EAs have problems with their code when compilated. Compilate them at your MT4 platform and you will see where the problem is.
I've never worden on mql5. As you say, it works on mql4. I have no idea what's the problem, sorry.
Interesting. I didn't know that could be done. How can a single trade but put into a different group?
Whe you say 'No position' do you mean the 'No trade' block?
What are you looking for exactly?