Speaking of  Text tricks, How do I a simple PlotText like the picture attached...????

I was thinking, How can you do a Text as a Shape to use it in PlotShapes, I guess, that way there would be an offset to plot on or above the line...

Somehow, I know it has to be possible, but I thought it would be a simple
PlotText( "blah", ... with an offset value like PlotShapes, well that didn't work either.
I've tried a PlotText within a Plot and others..., 
///////////////////
Graph0 = 100.00;

Plot(100.00,PlotText( "Own it Here", 100.00, y = Graph0, colorYellow, bkcolor = colorDefault),1,1); // This line even errors out, too

but didn't understand how to X-shift all the way to the left using Plot and then Offset it up or down...

Plot(100,"",1,1);
PlotText( "This Line is 100.00", firstbarvisible, 100.00, colorYellow, bkcolor = colorDefault /* No Offset Features?*/); // Nope, it errors out

Anyone have a suggestion?
I looked in the KB, too.
I also tried...
Thanks for any suggestion.

////////////////////// Test PlotText 1

Action1 = "BUY"; //BUY

Action2 = "SELL"; //SELL

Action3= "I Own";

Action= "" color=#0000ff>Param("Set Action 1,2,or3",1,1,3,1); //Alternate the Parameters to show text can be moved with number

Actions=Action; // Valid actions are BUY or SELL

Actions = WriteIf(Action="" color=#ff00ff>1,Action1,WriteIf(Action="" color=#ff00ff>2,Action2,Action3));

Actions = WriteIf(Action="" color=#ff00ff>1,Action1,WriteIf(Action="" color=#ff00ff>2,Action2,Action3));

G0 = Close;

//PlotShapes( Actions , colorBrightGreen, layer = 0, yposition = Graph0 , offset = -12 ); // This line also errors out

////////////////////// Test PloText 2

Action1 = "BUY"; //BUY

Action2 = "SELL"; //SELL

Action3= "I Own";

Action= "" color=#0000ff>Param("Set Action 1,2,or3",1,1,3,1); //Alternate the Parameters to show text can be moved with number

Actions=Action; // Valid actions are BUY or SELL

Actions = WriteIf(Action="" color=#ff00ff>1,Action1,WriteIf(Action="" color=#ff00ff>2,Action2,Action3));

Actions = WriteIf(Action="" color=#ff00ff>1,Action1,WriteIf(Action="" color=#ff00ff>2,Action2,Action3));

PlotShapes( Actions , colorBrightGreen, layer = 0, yposition = Graph0 , offset = -12 ); // This line also errors out

text = NumToStr( Action , format = 1.3, separator=True);

Plot(G0,Actions + "\n This Stock @ the Market",1,1);
Plot(G0,text+ "\n This Stock @ the Market",1,1);

Plot(G0,WriteIf(Action ="" color=#ff00ff>1,"\ntext inserted here doesn't do it either",Actions ) + " ",1,1); // Dang ...
//////////////
See Attached

 



__._,_.___

Please note that this group is for discussion between users only.

To get support from AmiBroker please send an e-mail directly to
SUPPORT {at} amibroker.com

For other support material please check also:
http://www.amibroker.com/support.html






SPONSORED LINKS
Software support Small business finance Business finance online
Business finance training Business finance course

Your email settings: Individual Email|Traditional
Change settings via the Web (Yahoo! ID required)
Change settings via email: Switch delivery to Daily Digest | Switch to Fully Featured
Visit Your Group | Yahoo! Groups Terms of Use | Unsubscribe

__,_._,___

Attachment: PlotText_question.PNG
Description: PNG image

Reply via email to