hi,
I've found some code on another thread which displays the previous bar's OHLC in the top left corner.
//+------------------------------------------------------------------+
//| GoHan OHLC.mq4 |
//| Copyright 2008, gohanforex.com |
//| http://www.gohanforex.com |
//+------------------------------------------------------------------+
#property copyright "Copyright 2008, gohanforex.com"
#property link "http://www.gohanforex.com"
#property indicator_chart_window
//+------------------------------------------------------------------+
//| expert initialization function |
//+------------------------------------------------------------------+
int init()
{
//----
managelowerstatus("-");
//----
return(0);
}
//+------------------------------------------------------------------+
//| expert deinitialization function |
//+------------------------------------------------------------------+
int deinit()
{
//----
//----
return(0);
}
//+------------------------------------------------------------------+
//| expert start function |
//+------------------------------------------------------------------+
int start()
{
//----
Comment(Open[1],High[1],Low[1],Close[1]);
//----
return(0);
}
//+------------------------------------------------------------------+
//+------------------------------------------------------------------+
//| Manage lower status |
//+------------------------------------------------------------------+
void managelowerstatus(string addstatus)
{
ObjectDelete("Lower_Status");
if(addstatus!="")
{
ObjectCreate("Lower_Status", OBJ_LABEL, 0, 0, 0);// Creating obj.
ObjectSet("Lower_Status", OBJPROP_CORNER,3); // Reference corner
ObjectSet("Lower_Status", OBJPROP_XDISTANCE, 2);// X coordinate
ObjectSet("Lower_Status", OBJPROP_YDISTANCE, 1);// Y coordinate
ObjectSetText("Lower_Status", addstatus, 9, "Verdana", Yellow);
}
}
This works perfrectly, however my eyesight isn't the best reading on my iphone and I'd like to have a space between each price et 1.4344 1.4352 1.4345 1.4345.
Can anyone help me out and show what I need to change in the code.
Thanks
Gemmabug
I've found some code on another thread which displays the previous bar's OHLC in the top left corner.
//+------------------------------------------------------------------+
//| GoHan OHLC.mq4 |
//| Copyright 2008, gohanforex.com |
//| http://www.gohanforex.com |
//+------------------------------------------------------------------+
#property copyright "Copyright 2008, gohanforex.com"
#property link "http://www.gohanforex.com"
#property indicator_chart_window
//+------------------------------------------------------------------+
//| expert initialization function |
//+------------------------------------------------------------------+
int init()
{
//----
managelowerstatus("-");
//----
return(0);
}
//+------------------------------------------------------------------+
//| expert deinitialization function |
//+------------------------------------------------------------------+
int deinit()
{
//----
//----
return(0);
}
//+------------------------------------------------------------------+
//| expert start function |
//+------------------------------------------------------------------+
int start()
{
//----
Comment(Open[1],High[1],Low[1],Close[1]);
//----
return(0);
}
//+------------------------------------------------------------------+
//+------------------------------------------------------------------+
//| Manage lower status |
//+------------------------------------------------------------------+
void managelowerstatus(string addstatus)
{
ObjectDelete("Lower_Status");
if(addstatus!="")
{
ObjectCreate("Lower_Status", OBJ_LABEL, 0, 0, 0);// Creating obj.
ObjectSet("Lower_Status", OBJPROP_CORNER,3); // Reference corner
ObjectSet("Lower_Status", OBJPROP_XDISTANCE, 2);// X coordinate
ObjectSet("Lower_Status", OBJPROP_YDISTANCE, 1);// Y coordinate
ObjectSetText("Lower_Status", addstatus, 9, "Verdana", Yellow);
}
}
This works perfrectly, however my eyesight isn't the best reading on my iphone and I'd like to have a space between each price et 1.4344 1.4352 1.4345 1.4345.
Can anyone help me out and show what I need to change in the code.
Thanks
Gemmabug