Indicators: BB stops

 

BB stops:

BB stops - new version.

Author: Mladen Rakic

 
Has anybody tried to use iCustom to call this indicator included in the resources as follows?

#include <TradeTransaction.mqh>
#resource "\\Indicators\\GK_trend.ex5"

#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


 

 
Herman Makmur #:
Has anybody tried to use iCustom to call this indicator included in the resources as follows?

#include <TradeTransaction.mqh>
#resource "\\Indicators\\GK_trend.ex5"

#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

 
Mladen Rakic #:

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