A small code is putting text number on charts using a mouse click. This is done manually, a click at a given location and a number is installed
How can I have these numbers be permanent on the screen. Each time I recalculate, reload, re-scale, they disappear.
Code to show a reference number on screen
Code: Select all
if (MouseClickCtrlPressed and MouseClickShiftPressed) then begin
ClickTime = MouseClickDateTime;
BN = MouseClickBarNumber;
PriceVal = MouseClickPrice;
ValToShow = GVGetNamedInt("Filename_B",0);
GVSetNamedInt("Filename_B",ValtoShow + 1);
TextVal = text_new_BN(BN, PriceVal, numtostr(ValtoShow,0));
Text_SetBorder(TextVal, True);
text_SetColor(textVal,Black);
text_setsize(TextVal,14);
end;