Welcome Forex EA downloads & MT4/MT5 auto-trading resources — EAs, Gold EAs, quant tools and real-world automation.
Sign In Sign Up

Open Interest - MetaTrader 5 Script | Forex Indicator Download - MT4/MT5 Resources - MetaTrader 5 Resources

author EAcpu | 5 reads | 0 comments |

Open Interest - indicator for MetaTrader 5

This Open Interest indicator displays the parameter "Total Open Positions - SYMBOL_SESSION_INTEREST ".

Open Interest - indicator for MetaTrader 5

Indicator color description:

If the indicator bar is blue , open interest has grown since the bar appeared, if it is red , open interest has decreased.

The indicator has been slightly modified:

Now, after first startup, the indicator will not reinitialize its indicator buffer if prev_calculate==0. Result: For example, we run an indicator on a chart, the indicator works for a while, and then suddenly we receive prev_calculate==0 (maybe due to a lost connection or a history error) - in this case the indicator does not re-initialize its indicator buffer, but continues to function normally.


Attachment download

📎 open_interest.mq5 (7.19 KB)

Source: MQL5 #17426

Verification code Refresh