setindexbuffer error : no one of the overloads can be applied to the function call ! . help please

 

dunno why my code not running ,, everything is fine except for the setindex buffer .. here is my error part of code :

// Global variables
int arrowBuffer[];  // Array to store indicator values

// Initialization function
int OnInit()
{
    // Attach the indicator to the chart
    IndicatorShortName("Binary-Reaper-V3");
    SetIndexBuffer(0, arrowBuffer, INDICATOR_DATA);
    return(INIT_SUCCEEDED);
 
Abdulkarim Karazon: dunno why my code not running ,, everything is fine except for the setindex buffer .. here is my error part of code :

We cannot read your mind nor see your computer:

  • Show all relevant code.
  • Describe the errors in detail (erro code, etc.)
  • Show log output.

PS! "Dunno" is not proper English. It is "I don't know".

Your topic has been moved to the section: Technical Indicators — In the future, please consider which section is most appropriate for your query.

 

Is this MQL5 or MQL4?

IndicatorShortName is not a valid MQL5 function.

Use this instead ...

IndicatorSetString( INDICATOR_SHORTNAME, name )
IndicatorShortName - Custom Indicators - MQL4 Reference
IndicatorShortName - Custom Indicators - MQL4 Reference
  • docs.mql4.com
IndicatorShortName - Custom Indicators - MQL4 Reference
 
Abdulkarim Karazon:

dunno why my code not running ,, everything is fine except for the setindex buffer .. here is my error part of code :

double arrowBuffer[];  // Array to store indicator values