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
Can you tell me in which cases the value of a tick may differ depending on whether the position is currently in profit or loss?
SYMBOL_TRADE_TICK_VALUE
SYMBOL_TRADE_TICK_VALUE_PROFIT
SYMBOL_TRADE_TICK_VALUE_LOSS
Need to get the result of the last transaction. What am I doing wrong? :
Need to get the result of the last transaction. What am I doing wrong? :
I think it goes like this
I think it goes like this
I'm experimenting with deleting unwanted handles. In a simple example, without the IndicatorRelease(ma_handle); lines, everything works fine and fast.
But it almost hangs the system in OHLC mode.
I'm experimenting with deleting unwanted handles. In a simple example, without the IndicatorRelease(ma_handle); lines, everything works fine and fast.
But it almost hangs the system in OHLC mode.
Creating and deleting indicator handles on every tick is not right. It's like stopping and starting your car at every traffic light and before every zebra crossing.
And I want to be more specific about the handles.
If the handles were not removed during deinitialization (IndicatorRelease) and the program was removed from the chart at the same time, are the handles automatically removed?
One more thing. The reference says it saves memory. By how much? If I could give you some figures on how much resources are consumed by indicator handles.
And I want to clarify about handles.
If the handles were not deleted (IndicatorRelease) during deinitialization, but the program was deleted from the chart, are the handles automatically deleted?
One more thing. The reference says it saves memory. By how much? If you can give figures, how much resources are consumed by indicator handles.
Creating and removing indicators handles at every tick is wrong. It's like turning your car off and on at every traffic light and before every zebra crossing.
It was a model. In Expert Advisor the function is executed on a new weekly bar, new indicators are created and mathematics is done. Then it has to be cleaned up... So, when activating IndicatorRelease line it almost freezes... It is enough to remove it, and everything flies in spite of all rubbish.