pass one bar/candle
-
After closing the trade by stop loss I want to pass at least one bar/candle to open again the trade (although the conditions to open are met). I tried with blocks "skip ticks", "delay" but nothing worked.
-
@syf Depending on your current structure, you can do this:
https://fxdreema.com/shared/tOUj9eCTc
Please notice there are blocks on the 'on tick' and the 'on trade' tabs. Basically you are using a switch on/switch off variable that is deactivated when SL is hit (that happens on the 'on trade' tab) and reactivated immediately at the open of the next bar.
-
Thank you very much, how can I do if I want to pass two bars/candles? I mean, if the trade was closed by stop loss, and I want to open again (if conditions are met) but not in the next bar (of the closed one), but instead in the second or third (skiping two or more bars). Thanks.
-
@syf Then you can create a new variable as a 'counter'. Then you can specify how many camdles to wait with a number. That number will increase as new bars are created.
-
Thank you @l-andorrà, it worked.
-
@syf You're welcome.
-
@l-andorrà Could you show to me an example? I'd like to ignore the candle close that after that, it count as bull/bear signal
this is ugly and useless

The system works: 2 bull candles>buy. If trade is closed, then wait until got one bear candle to activates again the bull signals and viceversa. I mean, can't trade another signal counting the candle trade closed and wait until a different candle appear. I'm looking for a function that
If buy trade is closed, wait until appears a bear candle to allow buy trades again and viceversa
-
@uriel-0 If I understand it correctly, you need just an opposite candle for a new trade. So why do you need to define what type of candle is expected for candles 0 to 4? If you need that specific order those blocks should be connected vertically and not horizontally.
-
@l-andorrà yes, to open a new trade (after it is closed), is necessary got an opposite candle (to reset signal count). Sorry, wich blocks must be vertically? I have put on differents ways, and it not works as I expected (not because is a bug, if not, I have not found a way to do it well). I tried to use a counter and flags, but i couldn't make a way to identify New bear/bull candle ID
-
@uriel-0 You can connect blocks 56,76,79 and 85 verticaly. However, I don't fully understand if that is what you need because I see the opposite could be any of them, sight?
-
@l-andorrà I'd like to get any way that if e.g.:
a bearish signal is closed, then wait until a bullish candle appear to enable bear signals again without count the candle where the bear signal closed
Bearish signal closed----> turn off bearish signals until a bullish candle appears
And vicecersa. I have not gotten anyway that condition: "bear/bull candle" appears after the trade is closed without count the candle trade where was closed
-
Ok, I got a way
1.- Define variables. 1: bool- Open- = true . 2: int- Counter- = 0.
On inputs, I put the number of couunt that I needed, on this case, I put "3"
2.- Put the bool condition to enable signals after the trade is closed

3.-

In my case that I want enable, disabled signals per candle, just after a candle is opposite, allow signals (bearish)bullish, depending...)

-
@uriel-0 Do you mean you found the solution?
-
@l-andorrà yes. Thanks
-
@uriel-0 Great! Congrats!
