Sunday, July 8, 2018

Bulls Power Signal

Step 1.
create bullspowersignal file in expert folder and

Step 2. copy paste code given below on your bullspowersignal file :
//code start

void OnTick()
{
// String variable for the signal
string signal="";
//We calculate the Bull Power Indicator
double BullsPowerValue = iBullsPower(_Symbol,_Period ,13, PRICE_CLOSE,0);
// if the Bulls Power Value is above 0
if (BullsPowerValue>0)
{//create a buy signal
signal="buy";
}
// if the Bulls Power Value is below 0
if (BullsPowerValue<0)
{//create a sell signal
signal="sell";
}
//Output the signal on the chart
Comment("BullsPowerValue : ",BullsPowerValue,"\n","Current Signaal is :",signal);
}

//+------------------------------------------------------------------+
//code end
Step 3.
Now open MT4 and go to :
Insert >> Indicator >> Bulls Power 
Set parameter : Period : 13 ,  Apply to : close , style : Yellow then OK

Step 4.
Now open MT4 and go to :
Charts >> Template >> save template >> save file as tester.tpl.

Step5.
Now open MT4 and go to :
View >> strategy test : 
set your symbol
Use date
Visual Mode
Start

Step6.
View signal on left side on top in your chart.

No comments:

Post a Comment