I have the following code for my tick size indicator. It overlaps with another indicator. How would I go about moving it to the top right hand corner of the screen? I have looked at other indicators and managed to work out how to put in the inputs but what do I need to add to the code to make the text string print at the inputted x,y?
Thanks
#property indicator_chart_window
extern double DisplayStarts_X=5;
extern double DisplayStarts_Y=15;
//+------------------------------------------------------------------+
//| Custom indicator deinitialization function |
//+------------------------------------------------------------------+
int deinit()
{
//----
//----
return(0);
}
//+------------------------------------------------------------------+
//| Custom indicator iteration function |
//+------------------------------------------------------------------+
int start()
{
//----
string
Text="";
Text = "Tick Value = " + DoubleToStr(MarketInfo(Symbol(), MODE_TICKVALUE)/10, 4) +
"\n"+
"Spread = " + DoubleToStr(MarketInfo(Symbol(), MODE_SPREAD), 0) +
"\n"+
"1 pound per pip = " + DoubleToStr (1/MarketInfo (Symbol(), MODE_TICKVALUE)/10,4);
Comment(Text);
return(0);
}
//+------------------------------------------------------------------+
Thanks
#property indicator_chart_window
extern double DisplayStarts_X=5;
extern double DisplayStarts_Y=15;
//+------------------------------------------------------------------+
//| Custom indicator deinitialization function |
//+------------------------------------------------------------------+
int deinit()
{
//----
//----
return(0);
}
//+------------------------------------------------------------------+
//| Custom indicator iteration function |
//+------------------------------------------------------------------+
int start()
{
//----
string
Text="";
Text = "Tick Value = " + DoubleToStr(MarketInfo(Symbol(), MODE_TICKVALUE)/10, 4) +
"\n"+
"Spread = " + DoubleToStr(MarketInfo(Symbol(), MODE_SPREAD), 0) +
"\n"+
"1 pound per pip = " + DoubleToStr (1/MarketInfo (Symbol(), MODE_TICKVALUE)/10,4);
Comment(Text);
return(0);
}
//+------------------------------------------------------------------+