i wish to merge the hama and bulls and bear indicator to get better result...
this is bull bear code
this loop i want to insert into hama so will get some more better result...
any one will help over here





this is bull bear code
Inserted Code
#property copyright "BECEMAL"
#property link "http://www.becemal.ru/mql"
#property indicator_separate_window
#property indicator_buffers 2
#property indicator_color1 clrRed
#property indicator_color2 clrLightGreen
extern int BBPeriod=14;
double BearsBuff[];
double BullsBuff[];
int init()
{
IndicatorShortName("BvsB("+BBPeriod+")");
SetIndexBuffer(0,BearsBuff);
SetIndexStyle(0,DRAW_LINE);
SetIndexLabel(0,"Bears");
SetIndexBuffer(1,BullsBuff);
SetIndexStyle(1,DRAW_LINE);
SetIndexLabel(1,"Bulls");
return(0);
}
int start()
{
int counted_bars=IndicatorCounted();
if(Bars<=BBPeriod) return(0);
int limit=Bars-counted_bars-1;
if(limit < 2) limit = 2;
for(int i = limit;i >= 0;i--)
{
double SMA = iMA(NULL,0,BBPeriod,0,MODE_SMA,PRICE_CLOSE,i); //SMMA
BearsBuff[i] = SMA - Low[i];
BullsBuff[i] = High[i]-SMA;
}
return(0);
} Inserted Code
if(limit < 2) limit = 2;
for(int i = limit;i >= 0;i--)
{
double SMA = iMA(NULL,0,BBPeriod,0,MODE_SMA,PRICE_CLOSE,i); //SMMA
BearsBuff[i] = SMA - Low[i];
BullsBuff[i] = High[i]-SMA;
} this loop i want to insert into hama so will get some more better result...
any one will help over here
Attached File(s)
Success is a Journey Not a Destination....... kind regards ramzam