MQL5 Programming

 
I just started learning programming mql5. I run into problem of very simple textout with canvas, it shows nothing, absolutely nothing, why? please help me. source code following.
#property copyright "Test"
#property link      "http://www.test.de"
#property version   "1.00"
#property indicator_chart_window

CCanvas canvas;

int OnInit() {
   canvas.TextOut( 50, 50, "test", clrRed );
   canvas.Update();
   
   ChartRedraw();
   return( INIT_SUCCEEDED );
}

void OnDeinit(const int reason) {
}

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[]) {
        canvas.TextOut( 50, 50, "test", clrRed );
    canvas.Update();
   
    ChartRedraw();
    return( INIT_SUCCEEDED );
   

   return(rates_total);
}
 

If you begin with mql5, I suggest you to start with well documented features. Canvas is not.

Anyway, see this topic.

Reason: