Download MetaTrader 5

May be a little Mistake in the documentation

To add comments, please log in or register
Do you want to write a technical indicator? Find solution in MQL5 Reference!
24h-worker
86
24h-worker 2010.01.24 15:09 

I try to use the Bull-Indicator. 

This is the info from the doc:

int  iBullsPower(
   string              symbol,            // symbol name
   ENUM_TIMEFRAMES     period,            // period
   int                 ma_period,         // averaging period
   ENUM_APPLIED_PRICE  applied_price      // type of price or handle
   );

 

 

When I insert the applied_price I get a mistake.

ENUM_APPLIED_PRICE is not neccessary. May be the same problem arise with BearPower Indicator.

This example functions:

   int PointerBullArray =  iBullsPower(Symbol(),PERIOD_H1,13); 
   double BullArray[11];              //From 0 - 10 = 11
   CopyBuffer(PointerBullArray,0,0,10, BullArray);       // Copy Value 0 To 10
   Alert(BullArray[9]);  // The newest, actuall value 

Rashid Umarov
Admin
11836
Rashid Umarov 2010.01.24 15:16  

Please, formate your code



24h-worker
86
24h-worker 2010.01.25 22:54  
Rosh:

Please, formate your code

That is no problem ! MQL5-Learner are carefull, open-minded, nice and full of hopes.

 Here comes the formated code:

    double BullArray[11]; 

   int PointerBullArray = iBearsPower(Symbol(),
                                                      PERIOD_H1,
                                                      13);

    CopyBuffer(PointerBullArray,0,0,10, BullArray);

    Alert(BullArray[9]);  // The newest, actuall value 

Rashid Umarov
Admin
11836
Rashid Umarov 2010.01.26 06:47  

This is formatted (highlighted) code

   double BullArray[11]; 
   int PointerBullArray = iBearsPower(Symbol(),
                                      PERIOD_H1,
                                      13);
   CopyBuffer(PointerBullArray,0,0,10, BullArray);
   Alert(BullArray[9]);  // The newest, actuall value 

24h-worker
86
24h-worker 2010.01.27 18:51  
Rosh:

This is formatted (highlighted) code


I have seen you have corrected the text in the documentation for iBearsPower.

I would also correct the text for  iBullsPower.

Rashid Umarov
Admin
11836
Rashid Umarov 2010.01.27 20:51  
24h-worker:

I have seen you have corrected the text in the documentation for iBearsPower.

I would also correct the text for  iBullsPower.

Thank you. We will fix it tomorrow.
To add comments, please log in or register