Definitely you need to reset the variables. Additionally, you don't need to check that info every single tick. You just need to to it once per day at the beginning of the day.
Posts made by l'andorrà
-
RE: There is something simple I am overlooking, any advice?posted in Questions & Answers
-
RE: New Position error: market is closed (10018)posted in Questions & Answers
Did you check the format of the 'Timeframe' constant?
-
RE: How to get notifications?posted in Questions & Answers
@pezhman491 I would contact the admin to let him know. I don't think he's updated that block recently for MT5.
-
RE: Dashboard Based on Moving Averages and Timeframesposted in Questions & Answers
@Lorenzo97 It is definitely possible, but if you are not an experienced fxDreema user that can be a lot of work.
-
RE: How To limit the number of open trades EA can hold at the same time.posted in Questions & Answers
Yes, please, add a shared link.
-
RE: How to avoid correlated pairsposted in Questions & Answers
@jstap Just curious. Would there be any option to do that WITHOUT custom code?
-
RE: condiction block in mt5 work only for ">" conditionposted in Bug Reports
This is the second thread you created for the exact same project. Please don't duplicate threads.
-
RE: How to set narrow Breakeven and Trailing Stop (1 pip) for EURUSDposted in Questions & Answers
@liangko Then you are not having the exact same version of the bot.
-
RE: Martingale based on moneyposted in General Discussions
Could you please provide more details about that requirement?
-
RE: EA to detect when ADX line and negative Di both move upposted in Questions & Answers
@jpsam Sorry for my late response. be ready to be disappointed with the behaviour of D+ and D- lines. Trust me, your backtest results will be different form those in forward test on demo. Sorry for bringing bad news.

-
RE: problem - ea open only buy trade in mt5 strategy testerposted in Questions & Answers
I can't see the settings for that custom indicator. Are you sure they are correctly selected for sells?
-
RE: There is something simple I am overlooking, any advice?posted in Questions & Answers
As far as I see it, you are storing those values for the indicator on the daily timeframe and they are supposed to be different candle IDs. Why do you say it doesn't get the value of that candle ID? What does it get instead?
-
RE: Isn't candle time working?posted in Questions & Answers
@jstap You're right. The problem must be there. I decided to work with standard Unix times and it works, but definitely candles are not correctly identified that way.
-
RE: Isn't candle time working?posted in Questions & Answers
@Byens Yeah, I forgot to complete that part, but it didn't work yet.
-
RE: EA to detect when ADX line and negative Di both move upposted in Questions & Answers
@jpsam Both D+ and D- lines are VERY unreliable ways to use the ADX indicator. They repaint like crazy. I do not recommend using them.
-
RE: robot problemposted in Questions & Answers
@negarpour1370 This is the third tread you created for the exact same question. Please don't duplicate threads.
-
RE: transaction robotposted in Questions & Answers
@negarpour1370 This is the second thread you opened for the exact same question. Please don't duplicate threads.
-
RE: transaction assistantposted in Questions & Answers
Can you please share the link to the project to take a look at it?