I think that the message is for the program type :-D
Because I have found the following code in the source library:
Because I have found the following code in the source library:
switch(m_program_type) { case PROGRAM_EXPERT: if(!CreateExpert(x1,y1,x2,y2)) return(false); break; case PROGRAM_INDICATOR: if(!CreateIndicator(x1,y1,x2,y2)) return(false); break; default: Print("CAppDialog: invalid program type"); return(false); }

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
Hi.
I am creating a panel for trading and I use the:
CAppDialog
library.
When I attach the script to the chart I get the following message:
CAppDialog: invalid program type
I also test some other similar panel scripts which I am sure those scripts work correctly, but I get the same message for them!
Anyone know what is this message for?
Thanks.
Metatrader 4 Build 1170
Please note that, when I use the code as indicator, there is no problem and the panel is created and shown in the chart. But as you know, I can't use any trade order in an indicator!