Hi everyone..
I need help on displaying text on the chart.
example:
rule 1
rule 2
rule 3
etc
on the left down corner
I've got error
Tutorial from here http://docs.mql4.com/objects/objectsettext
Can someone help?
Thanks
I need help on displaying text on the chart.
example:
rule 1
rule 2
rule 3
etc
QuoteDisliked//+------------------------------------------------------------------+
//| dtext.mq4 |
//| Copyright 2014, MetaQuotes Software Corp. |
//| http://www.mql5.com |
//+------------------------------------------------------------------+
#property copyright "Copyright 2014, MetaQuotes Software Corp."
#property link "http://www.mql5.com"
#property version "1.00"
#property strict
#property indicator_chart_window
//+------------------------------------------------------------------+
//| Custom indicator initialization function |
//+------------------------------------------------------------------+
int OnInit()
{
//--- indicator buffers mapping
//---
return(INIT_SUCCEEDED);
}
//+------------------------------------------------------------------+
//| Custom indicator iteration function |
//+------------------------------------------------------------------+
//---
ObjectSetText("text_object","Hello world!",10,"Times New Roman",Green);
//--- return value of prev_calculated for next call
//+------------------------------------------------------------------+
on the left down corner
I've got error
QuoteDisliked'ObjectSetText' - declaration without type dtext.mq4 26 4
Tutorial from here http://docs.mql4.com/objects/objectsettext
Can someone help?
Thanks