For this expiry date you need to get it from the broker, there is no MetaTrader code that can get this. Once you have it you can make the automatically trade end so you are not committed to buy it.
Posts made by jstap
-
RE: Count Days.posted in Questions & Answers
-
RE: How to subscribeposted in Questions & Answers
You'll have to go to the main support page and ask: https://fxdreema.com/support
-
RE: highest / lowest close of a period of n candlesposted in General Discussions
Added variables to draw blocks, let me know if it works: https://fxdreema.com/shared/9RCAmiyOd
-
RE: Trouble of constants for My Indicators' input optionsposted in Questions & Answers
You can not create a enum for this as it is already pre defined, ENUM_MA_METHOD is the correct type, MODE_EMA is the correct value:
https//www.mql5.com/en/docs/constants/indicatorconstants/enum_ma_method
-
RE: Trouble of constants for My Indicators' input optionsposted in Questions & Answers
You have it almost right, but your shared link doesn't have these constants in, add the shared link with this enum data and I'll see what's wrong.
-
RE: highest / lowest close of a period of n candlesposted in General Discussions
This should do it, not tested but compiles: https://fxdreema.com/shared/FoVpQnJDb
-
RE: Trailing Troubleposted in Questions & Answers
no because you are the only person that knows the reason
-
RE: Multiple positions opened - bug ?posted in Questions & Answers
You are right, the odd thing is written incorrectly: Specified means if not declaring use the chart symbol
-
RE: Backtest consump too massive storageposted in Questions & Answers
Ok, then that says it is the MT5 that's doing it, what I put above will allow you to delete some so you can download different.
-
RE: Backtest consump too massive storageposted in Questions & Answers
Is unlikely to be FX, is more likely to be what MetaTrader has to download so you can backtest... in simple terms every new chart or day you backtest, the more data your terminal needs to download to do the test.
Try downloading this: https://www.diskanalyzer.com/download
should show you where the space is used, allow you to delete, and let you see the reason for used space. -
RE: Multiple positions opened - bug ?posted in Questions & Answers
of cause, checks all symbols for trades, if none it places on the symbol you have set in the buy/sell blocks.
-
RE: Multiple positions opened - bug ?posted in Questions & Answers
Change symbol to specified, as is means if no trade on any symbol (asset class) place a trade, so will keep placing...

-
RE: New optionsposted in Questions & Answers
That is why I said I agree, I don't think admin will add to the current block setup, so creating a block is the only possible way for now.
-
RE: New optionsposted in Questions & Answers
No they don't, in line is what is used in custom code. Creating a custom block can use custom functions, global variables, includes etc. You can see some in this picture:

-
RE: New optionsposted in Questions & Answers
This is true, a lot of this you can use/add in a custom block creation.
-
RE: Delete Object By Eventposted in Questions & Answers
Make this simple for yourself, test with a few objects, draw anywhere and delete what you want when you want on tick, you know the old saying KISS? Adding lots often just makes getting to the result you want more difficult, delete as many as you want at any time you want on tick takes a tick, so doesn't take ages
-
RE: Delete Object By Eventposted in Questions & Answers
on init is just when it's drawn, to delete what you want delete the specific object.
-
RE: Delete Object By Eventposted in Questions & Answers
once a day? if so once per day block - delete
