https://www.mql5.com/en/forum/14482

All about MQL5 Wizard : create robots without programming.
- www.mql5.com
What is MQL5 Wizard :The MetaTrader 5 Trading Platform includes the MQL5 Wizard, which allows to quickly generate code of an Expert Advisor (Expert Advisor builder). - - Category: general

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 making an program to open position.
In this program, I want to use OpenLong function in CExpert.
But, this program can not compile by "cannot call protected member function" error.
Plese tell me how to correct this program.
//+------------------------------------------------------------------+
//| test.mq5 |
//| T.T |
//| https://www.mql5.com |
//+------------------------------------------------------------------+
#property copyright "T.T"
#property version "1.00"
#include <Expert\Expert.mqh>
//+------------------------------------------------------------------+
CExpert ExtExpert;
//+------------------------------------------------------------------+
int OnInit(void)
{
return(INIT_SUCCEEDED);
}
void OnDeinit(const int reason)
{
}
void OnTick()
{
double Ask = SymbolInfoDouble(Symbol(),SYMBOL_ASK);
Print(Ask);
ExtExpert.OpenLong(Ask,0,0);
}