
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
Is it possible to reference a panel window by short name?
Normally for a custom indicator window I would use the following:
#property copyright "none" #property link "none" #property version "1.00" #property strict #property indicator_separate_window int OnInit(){ IndicatorShortName("Indicator Name"); // Create the short name of: Indicator Name return(INIT_SUCCEEDED); } int OnCalculate(const int nothing, const int prev_calculated, const datetime &time[], const double &open[], const double &high[], const double &low[], const double &close[], const long &tick_volume[], const long &volume[], const int &spread[]) { return(nothing); }
Then if I want to send some information from my EA to the indicator window I can use the following function:
This works fine and produces the following results.
However if I attempt to do the same thing with a custom indicator panel it fails to find the indicator index.
Using the MT4 example panel as a starting point here is the code:
I set the indicator short name for the panel exactly the same as the previous example, however it appears it cannot find the short name index.
If possible, could you please explain what I am doing wrong, and perhaps explain to me how to reference a panel via short name?
Thank you for your assistance.