how to add a letter "H" behind the arrow of a hammer scan indicator

 
hi i creat an indicator who recognize the hammer config on the chart and dessin an arrow, now i need to add the letter "H" behind each arrow detected there is my code
int OnCalculate(const int rates_total,
                const int prev_calculated,
                const datetime& time[],
                const double& open[],
                const double& high[],
                const double& low[],
                const double& close[],
                const long& tick_volume[],
                const long& volume[],
                const int& spread[])
  {
   int limit = rates_total - prev_calculated;
   //--- counting from 0 to rates_total
   ArraySetAsSeries(Buffer1, true);
   ArraySetAsSeries(Buffer2, true);
   ArraySetAsSeries(Buffer3, true);
   ArraySetAsSeries(Buffer4, true);
   //--- initial zero
   if(prev_calculated < 1)
     {
      ArrayInitialize(Buffer1, EMPTY_VALUE);
      ArrayInitialize(Buffer2, EMPTY_VALUE);
      ArrayInitialize(Buffer3, EMPTY_VALUE);
      ArrayInitialize(Buffer4, EMPTY_VALUE);
     }
   else
      limit++;
   
   if(CopyHigh(Symbol(), PERIOD_CURRENT, 0, rates_total, High) <= 0) return(rates_total);
   ArraySetAsSeries(High, true);
   if(CopyOpen(Symbol(), PERIOD_CURRENT, 0, rates_total, Open) <= 0) return(rates_total);
   ArraySetAsSeries(Open, true);
   if(CopyClose(Symbol(), PERIOD_CURRENT, 0, rates_total, Close) <= 0) return(rates_total);
   ArraySetAsSeries(Close, true);
   if(CopyLow(Symbol(), PERIOD_CURRENT, 0, rates_total, Low) <= 0) return(rates_total);
   ArraySetAsSeries(Low, true);
   if(BarsCalculated(ATR_handle) <= 0) 
      return(0);
   if(CopyBuffer(ATR_handle, 0, 0, rates_total, ATR) <= 0) return(rates_total);
   ArraySetAsSeries(ATR, true);
   //--- main loop
    for(int i = limit-1; i >= 0; i--)
     {
      if (i >= MathMin(5000-1, rates_total-1-50)) continue; //omit some old rates to prevent "Array out of range" or slow calculation   
      
     //Indicator Buffer 1 (green hammer BUY)
       if(Open[i] < Close[i]){ //Candlestick Open < Candlestick Close
       if (High[i]-Close[i] < 0.1*(CandlestickBodyLength(PERIOD_CURRENT, i))){      ///Candlestick High < Candlestick Body
       if (Open[i]-Low[i] > 0.7*(CandlestickBodyLength(PERIOD_CURRENT, i))){ 
        {       
         Buffer1[i] = Low[i] - ATR[i];  //Set indicator value at Candlestick Low - Average True Range
         
        }}}}
       else
        {
         Buffer1[i] = EMPTY_VALUE;
        }
     
   return(rates_total);}
 
crew mehdi: hi i creat an indicator who recognize the hammer config on the chart and dessin an arrow, now i need to add the letter "H" behind each arrow detected there is my code

you can add Object Text

Documentation on MQL5: Constants, Enumerations and Structures / Objects Constants / Object Types / OBJ_TEXT
Documentation on MQL5: Constants, Enumerations and Structures / Objects Constants / Object Types / OBJ_TEXT
  • www.mql5.com
OBJ_TEXT - Object Types - Objects Constants - Constants, Enumerations and Structures - MQL5 Reference - Reference on algorithmic/automated trading language for MetaTrader 5
 
Biantoro Kunarto #:

you can add Object Text

how can you write me an example of the code pls
 
crew mehdi #how can you write me an example of the code pls

There is an example in the documentation. There are also examples in the CodeBase and in Articles.