cześć,
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 indior_chart_window
// ----------------------------------------------- -------------------
//| funkcja inicjalizacji eksperta |
/ ------------------------------------------------------------------
int init ()
{
/----
managelowerstatus(-);
//----
return (0);
}
// ----------------------------------------------- -------------------
//| funkcja dezinicjalizacji eksperta |
// ----------------------------------------------- -------------------
int deinit ()
{
//----
/----
return (0);
}
/ ------------------------------------------------------------------
//| funkcja startu eksperta |
// ----------------------------------------------- -------------------
int start ()
{
//----
Comment(Open[1],High[1],Low[1],Close[1]);
/----
return (0);
}
// ----------------------------------------------- -------------------
// ----------------------------------------------- -------------------
//| Zarządzaj niższym statusem |
// ----------------------------------------------- -------------------
void managelowerstatus(string addstatus)
{
ObjectDelete (Lower_Status);
if(addstatus!=)
{
ObjectCreate (Lower_Status, OBJ_LABEL, 0, 0, 0);/Tworzenie obj.
ObjectSet (Lower_Status, OBJPROP_CORNER, 3);/Narożnik odniesienia
ObjectSet (Lower_Status, OBJPROP_XDISTANCE, 2);/Współrzędna X
ObjectSet(Lower_Status, OBJPROP_YDISTANCE, 1);//Y coordinate
ObjectSetText (Lower_Status, addstatus, 9, Verdana, Yellow);
}
}
Działa to idealnie, jednak mój wzrok nie jest najlepszym odczytem na moim iPodzie i chciałbym mieć przestrzeń między każdą ceną i 1,4344 1,4352 1,4345 1,4345.
Czy ktoś może mi pomóc i pokazać, co muszę zmienić w kodzie.
Thanks
Gemmabug