I found this on MQL5 that may be of assistance.
Latest posts made by keyquest
-
RE: Security Features With Fxdreemaposted in Questions & Answers
-
RE: Condition Only After Trade Bar Closesposted in Questions & Answers
I want my close trade condition blocks to execute only after the candle closes that my order was opened in.
For example, a trade opens on a daily bar. It remains open with only a SL and TP.
Then once that candle closes (or the next daily candle opens), my "If Trade, conditions, and Close trade" blocks are able to be executed.
Is this possible?
-
RE: Condition with unknowable candle IDposted in Questions & Answers
Great! Thank you so much for looking into this.

-
RE: Condition with unknowable candle IDposted in Questions & Answers
Thank you for your reply. BTW, thanks for your great work here also

I made a test project. Would you mind checking it out? https://fxdreema.com/shared/IvaSKj68
In strategy tester, I looked at dates 06/22/15 to 06/30/15 for EUR/USD. This will create one result. RSI (14), 4 hour, typical price.
Shouldn't the block pass as soon as an indicator's period is within range, which happens at 6/23/15 12:00? But this doesn't pass until 12 candles later at 6/25/15 08:00.
-
RE: Condition with unknowable candle IDposted in Questions & Answers
The problem Iโm having with this block is I believe itโs programmed to require the oldest candle to be within the range. If my settings are for 12 periods and 11 exceptions, then the block will not pass until 12 periods have expired, but itโs requiring the oldest period to be within the range. This means that any of the future candles after candle 12 can be the exceptions, but not candle 12.
This creates the problem of having to wait 11 candles before the block passes. Is this true and if so, can it be programmed so that any of the 12 periods can be the exceptions?
-
RE: Condition with unknowable candle IDposted in Questions & Answers
Thank you. It almost works, but it's not ordering at the correct time. I believe it may be because of the field 'with exception of few candles'. What does this field mean? I originally believed this meant that if you went back 12 periods then at least 1 period would require the indicator to move within the limit, with 11 being the maximum exceptions.
Can I use this block like this...?
12 periods - 11 possible exceptions = 1 required within the limit
-
RE: Condition with unknowable candle IDposted in Questions & Answers
I have a question about creating a condition when there is no way of knowing its Candle ID. It could have happened one, two, three, or more bars earlier from a second condition that creates the buy signal.
For example, I would like to buy when RSI reaches 40. But I want it to have previously been under RSI 30. How can I set this up if I do not know the exact candle ID when it rose to RSI 30 (at the time I want to buy)? Please see attached image.
......
Rsi.jpg -
RE: Formula Resultposted in Bug Reports
Formula Result is gone as a Condition option. All my projects with formulas are affected.