Any idea where could be the error. Nothing is display
** This code section extract from the main indicator
Get the Highest display value
Get the date and time of the last visible bar on the chart
In the text location
Extract the date frim the Date_and_time
Extract time from Date_and_time
The Text_new is created once. The same Text variable is use
Code: Select all
Var:
SpreadTextLine (0),
Spreadtext (""),
Spread (0),
HighLocation (0),
Date_And_Time (0),
HighRoundedup (0),
LowRoundedDown (0),
ID_SpreadTextLine (0);
SpreadtextLine = Text_New_self (date, time, 0, "Text"); // create the Text_New
// this section is the first line that is place at the top of the code...
Highlocation = getappinfo(aiHighestdispValue);
Date_And_Time = getappinfo(aiRightDispDateTime);
Spread = (InsideBid -InsideAsk);
SpreadText = NumtoStr(Spread,5);
text_setLocation(SpreadtextLine,intportion(Date_And_Time),datetime2eltime(Date_And_Time),highlocation);
Text_SetString( SpreadtextLine , ("SPread: " + Spreadtext));
Martin