Thx so much for your feedback. I used TEXT_New_Self to display the associated label at the end of a PLOT, (and also used TEXT_DELETE or TEXT_SETLOCATION in order to update its location due to market movement). However, it looks like I'm out of luck since neither one is functioning properly - the text get displayed randomly (at its correct location, but it doesn't show up / get displayed as always):
Text_SetLocation(PPYDayHigh930Txt , Date, Time, PPYDayHigh930);
PPYDayHigh930Txt = Text_New_self(Date, Time, PPYDayHigh930, " Y High = "+TEXT(PPYDayHigh930));
Text_SetStyle(PPYDayHigh930Txt , PPHorizLabelOffset, PPVertiLabelOffset);
Text_SetColor(PPYDayHigh930Txt , getplotcolor(65));
Text_SetSize (PPYDayHigh930Txt , PPFontSize );
Text_SetAttribute(PPYDayHigh930Txt , 1, PPBoldText );
1. To plot the text on every tick, the following attribute should be added. [RecoverDrawings=true]
2. Using Text_SetLocation right after Text_delete is not necessary, as the text is already deleted.
3. The script should be rewritten to do want you want it to do: you should create drawing once and then move it to the needed location at every calculation. There is no need to use the delete function at all.
There is a substantial risk of loss in futures trading.
PM with any questions about optimusfutures (800) 771-6748 (561) 367 8686. THERE IS A SUBSTANTIAL RISK OF LOSS IN FUTURES TRADING.
The following 2 users say Thank You to mattz for this post:
Thx so much for your informative & educational advice....I'm trying hard to play with that idea you mentioned up there, actually killing myself here () to get it done and still no progress as of yet......I won't give up - may be in a few days I figure it out.
Once again, Thx for your help.
The following user says Thank You to mahmadi2 for this post: