loading dummy indicator inside EA

 

hello

my EA has lots of buttons that i want to display on subwindow1

i created a dummy indicator to display the subwindow


everything work as expected when i place the indicator and EA manually

how can i load the indicator to the EA to display the subwindow ?

i tried to create a handle for the indicator like this

handle=iCustom(_Symbol,_Period,"subwindow1");

however its not loading

anyhelp ?

 

Could this be what you need?

ChartIndicatorAdd

Adds an indicator with the specified handle into a specified chart window

Your topic has been moved to the section: Expert Advisors and Automated Trading.

Documentation on MQL5: Chart Operations / ChartIndicatorAdd
Documentation on MQL5: Chart Operations / ChartIndicatorAdd
  • www.mql5.com
ChartIndicatorAdd - Chart Operations - MQL5 Reference - Reference on algorithmic/automated trading language for MetaTrader 5
 
Fernando Carreiro #:

Could this be what you need?

ChartIndicatorAdd

Adds an indicator with the specified handle into a specified chart window

Your topic has been moved to the section: Expert Advisors and Automated Trading.


Exactly !!

too many functions to discover !

thanks  a lot