This is a continuation from my latest post about how to put text at a fix location on the screen
viewtopic.php?f=1&t=45607&p=99623#p99588
Problem has been partially resolve. Now, neatly every time I select a chart from a workspace, the Teext line is blurred ( not sure if it is the apprpiate word) all mess up. The String will be replace OK after I select another scale
Also, If I play with the price scale, the Text_Float create a 2' indicator link on the chart.
It look like MC can't follow and leave actual link while creating a new one.
The code is the first lines inside a bigger indicator.
I did try to remove Text_Style, Text_Size, Text_Color but the problem remained.
My PC fast enough so the problem is not material.
Any idea
Code: Select all
If lastbaronchart then begin
Spread = (insideask -insidebid) ;
If jpy_pair = true then spread = spread *100 else spread = spread *10000;
SpreadText ="Spread: " + NumtoStr(Spread ,2);
SpreadtextLine = Text_New_s (0,0,0, Spreadtext);
// Text_setStyle(SpreadtextLine,1,2);
Text_SetSize(SpreadtextLine, 10);
Text_setcolor(SpreadtextLine, blue);
value2 =Text_float (SpreadTextLine,15,100);
end;