You are missing trading opportunities:
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
Registration
Log in
You agree to website policy and terms of use
If you do not have an account, please register
In the indicator, static variables are initialised when the TF is switched.
Is this the way it should be?
In the indicator, static variables are initialised when the TF is switched.
Is it supposed to be like this?
Yes, because according to the section Running Programs, indicators are always re-created when the symbol / timeframe is changed:
Loading and Unloading of Indicators
Indicators are loaded in the following cases
While I'm waiting for an answer in SD(#693859) and not idle, maybe the MCs will respond here.
Will they enableSendFTP sending in indicators ?
There are alternative solutions, but this would be easier.
While I'm waiting for an answer in SD(#693859) and not idle, maybe the MCs will respond here.
Will they enable SendFTP sending in indicators ?
Question on CPositionInfo class. In MT5, only 1 position can be opened for a single instrument, which is the sum of all trades/positions taken. Can this class find the properties of (1) only this one final position or (2) can it find the properties of the individual trades/positions that make up this final position? If the answer to 2 is no, then tell me how to find the properties of the individual trades/positions.
This can be implemented by analysing the history of transactions.
I also thought about CDealInfo. I read the article How to Use the Standard Library Trade Classes When Writing an Expert Advisor, section 1.5, but somehow I don't understand how I can distinguish in the history trades that have already closed from those that are still in the market (and from which the current position consists). Or this class by its nature works only with deals that are not closed yet?