#resource "\\Indicators\\BB_stops.ex5"
int hGKTrend, hBBStops;
.
.
.
.
void OnInit(){
hGKTrend=iCustom(_Symbol,PERIOD_CURRENT,"::Indicators\\GK_trend",13,MODE_EMA,PRICE_CLOSE,11,1.3,0.15,0);
hBBStops=iCustom(_Symbol,PERIOD_CURRENT,"::Indicators\\BB_stops",20,MODE_SMA,PRICE_CLOSE,20,1,false,1,false,true,true,false,false,false,true);
.
.
.
}
I got GK_trend indi loaded successfully, but not BB-stops...
I received the following error message as I ran it in strategy tester:
cannot load resource 'C:\MT5\HMVIXTRADE\DEMO\Tester\Agent-127.0.0.1-3000\MQL5\Experts\HMMartiZone.ex5::Indicators\artiZone.ex5::Indicators\BB_stops.ex5'
Any help is greatly appreciated.
Regards,
Herman
Has anybody tried to use iCustom to call this indicator included in the resources as follows?
#resource "\\Indicators\\BB_stops.ex5"
int hGKTrend, hBBStops;
.
.
.
.
void OnInit(){
hGKTrend=iCustom(_Symbol,PERIOD_CURRENT,"::Indicators\\GK_trend",13,MODE_EMA,PRICE_CLOSE,11,1.3,0.15,0);
hBBStops=iCustom(_Symbol,PERIOD_CURRENT,"::Indicators\\BB_stops",20,MODE_SMA,PRICE_CLOSE,20,1,false,1,false,true,true,false,false,false,true);
.
.
.
}
I got GK_trend indi loaded successfully, but not BB-stops...
I received the following error message as I ran it in strategy tester:
cannot load resource 'C:\MT5\HMVIXTRADE\DEMO\Tester\Agent-127.0.0.1-3000\MQL5\Experts\HMMartiZone.ex5::Indicators\artiZone.ex5::Indicators\BB_stops.ex5'
Any help is greatly appreciated.
Regards,
Herman
Your parameters in the bb_stops call are wrong. You are missing time frame parameter
Your parameters in the bb_stops call are wrong. You are missing time frame parameter
Owh okay... I thought the 2nd parameter PERIOD_CURRENT was sufficient, so I need to add another PERIOD CURRENT for it to work as follows:
SOLVED
hBBStops=iCustom(_Symbol,PERIOD_CURRENT,"::Indicators\\BB_stops",PERIOD_CURRENT,20,MODE_SMA,PRICE_CLOSE,20,1,false,1,false,true,true,false,false,false,true);
Thanks for your help...
Brgds
Herman

- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
You agree to website policy and terms of use
BB stops:
Author: Mladen Rakic