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

EA_OBJPROP_CHART_ID - MetaTrader 5 Expert - MT4/MT5 Resources

author EAcpu | 3 reads | 0 comments |

EA_OBJPROP_CHART_ID - expert for MetaTrader 5

Do you want to place a chart object ( OBJ_CHART ) on the chart and use it as a regular chart? It's possible.

The only thing you need is a handle to the OBJ_CHART object. Using chart operations you can add and delete indicators ( ChartIndicatorAdd() and ChartIndicatorDelete() ), set chart periods, symbols ETC.

EA_OBJPROP_CHART_ID - expert for MetaTrader 5

EA_OBJPROP_CHART_ID Expert Advisor performs the following operations:

When removed from the chart, it deletes all created indicators:


Attachment download

📎 subwindow.mq5 (2.1 KB)

📎ea_objprop_chart_id.mq5 (5.46 KB)

Source: MQL5 #359

Verification code Refresh