NexusFi: Find Your Edge


Home Menu

 





Showme?


Discussion in TradeStation

Updated
    1. trending_up 2,157 views
    2. thumb_up 4 thanks given
    3. group 2 followers
    1. forum 6 posts
    2. attach_file 1 attachments




 
Search this Thread

Showme?

  #1 (permalink)
 
GoldenRatio's Avatar
 GoldenRatio 
Philadelphia, PA
 
Experience: Advanced
Platform: Matlab, TradeStation
Trading: Stocks
Posts: 211 since Aug 2012
Thanks Given: 5,192
Thanks Received: 296

I would like to create a plot similar to the one attached (specifically add the arrows.)



I have the logic for the arrows but am trying to determine how to create such a plot in tradestation?

I assumed this was a showme study but there is no arrow option in a showme?

Also, how do I added a legend to the plot?

Thanks in advance!

Started this thread Reply With Quote

Can you help answer these questions
from other members on NexusFi?
REcommedations for programming help
Sierra Chart
Quant vue
Trading Reviews and Vendors
ZombieSqueeze
Platforms and Indicators
Trade idea based off three indicators.
Traders Hideout
NT7 Indicator Script Troubleshooting - Camarilla Pivots
NinjaTrader
 
  #2 (permalink)
 
Hulk's Avatar
 Hulk 
Texas, USA
 
Experience: Advanced
Platform: TT, Custom
Trading: Futures, Spreads
Posts: 369 since May 2014
Thanks Given: 731
Thanks Received: 901


GoldenRatio View Post
I would like to create a plot similar to the one attached (specifically add the arrows.)



I have the logic for the arrows but am trying to determine how to create such a plot in tradestation?

I assumed this was a showme study but there is no arrow option in a showme?

Also, how do I added a legend to the plot?

Thanks in advance!

For arrows, the only way I have achieved it is by using Text Labels in indicators instead of plots in showmes and using the "TradeStation" or the "Webdings" font. I am not aware of any native way of drawing arrows in tradestation. Using the Plot statement draws only a dot in showmes.

Check this out on the TS forums: https://community.tradestation.com/discussions/Topic.aspx?Topic_ID=128374

Visit my NexusFi Trade Journal Reply With Quote
Thanked by:
  #3 (permalink)
 ABCTG   is a Vendor
 
Posts: 2,436 since Apr 2013
Thanks Given: 482
Thanks Received: 1,629


GoldenRatio,

drawing arrows on subcharts can be done in Tradestation, but you have to use some tricks do accomplish this as arrows can only be located on price data (see here for more information: https://community.tradestation.com/Discussions/Topic.aspx?Topic_ID=133748 ).
It's hard to tell from the image if someone went to the trouble doing the study within TS (or just added the arrows by hand), but it could be done with Multicharts where drawing arrows in a subchart is much easier as you have a reserved word for it.

Regards,
ABCTG



GoldenRatio View Post
I would like to create a plot similar to the one attached (specifically add the arrows.)



I have the logic for the arrows but am trying to determine how to create such a plot in tradestation?

I assumed this was a showme study but there is no arrow option in a showme?

Also, how do I added a legend to the plot?

Thanks in advance!


Follow me on Twitter Reply With Quote
Thanked by:
  #4 (permalink)
 
GoldenRatio's Avatar
 GoldenRatio 
Philadelphia, PA
 
Experience: Advanced
Platform: Matlab, TradeStation
Trading: Stocks
Posts: 211 since Aug 2012
Thanks Given: 5,192
Thanks Received: 296

Hulk or ABCTG,

Would either of you be willing to post a sample TS code to generate the arrows? I read the reference threads but have yet to be successful.

Thanks,
GRT

Started this thread Reply With Quote
  #5 (permalink)
 ABCTG   is a Vendor
 
Posts: 2,436 since Apr 2013
Thanks Given: 482
Thanks Received: 1,629

GRT,

you can find a neat example here: https://community.tradestation.com/Discussions/Topic.aspx?Result=1&Topic_ID=123443

Regards,
ABCTG


GoldenRatio View Post
Hulk or ABCTG,

Would either of you be willing to post a sample TS code to generate the arrows? I read the reference threads but have yet to be successful.

Thanks,
GRT


Follow me on Twitter Reply With Quote
Thanked by:
  #6 (permalink)
 
Hulk's Avatar
 Hulk 
Texas, USA
 
Experience: Advanced
Platform: TT, Custom
Trading: Futures, Spreads
Posts: 369 since May 2014
Thanks Given: 731
Thanks Received: 901


GoldenRatio View Post
Hulk or ABCTG,

Would either of you be willing to post a sample TS code to generate the arrows? I read the reference threads but have yet to be successful.

Thanks,
GRT

If you are using TradeStation, you can use OOEL to do what I was suggesting. Here's a sample that draws arrows on a MA crossover. Copy and past into a new indicator. You can experiment with the Webdings font too using "5" and "6" as the up and down chars to use.

 
Code
Using elsystem;
Using elsystem.drawing;
Using elsystem.drawingobjects;

Inputs:
	FastAvgLength(9),
	SlowAvgLength(21),
	FontName("TradeStation"),
	UpChar("q"),
	DnChar("a");
	
Vars:
	FastAvg(0),
	SlowAvg(0),
	Font LabelFont(Null),
	TextLabel UpLabel(Null),
	TextLabel DnLabel(Null);

Once Begin
	LabelFont = Font.Create(FontName, 14);
End;

FastAvg = AverageFC(Close, FastAvgLength);
SlowAvg = AverageFC(Close, SlowAvgLength);

If (FastAvg > SlowAvg and FastAvg[1] <= SlowAvg[1]) then
Begin
	UpLabel = TextLabel.Create(DTPoint.Create(Bardatetime[0], FastAvg + (2 * (Minmove/Pricescale))), UpChar);
	UpLabel.Font = LabelFont;
	UpLabel.HStyle = HorizontalStyle.center;
	UpLabel.VStyle = VerticalStyle.center;
	DrawingObjects.Add(UpLabel);
End;
	
If (FastAvg < SlowAvg and FastAvg[1] >= SlowAvg[1]) then
Begin
	DnLabel = TextLabel.Create(DTPoint.Create(Bardatetime[0], SlowAvg - (2 * (Minmove/Pricescale))), DnChar);
	DnLabel.Font = LabelFont;
	DnLabel.HStyle = HorizontalStyle.center;
	DnLabel.VStyle = VerticalStyle.center;
	DrawingObjects.Add(DnLabel);
End;

Plot1(FastAvg, "FastAvg");
Plot2(SlowAvg, "SlowAvg");

Visit my NexusFi Trade Journal Reply With Quote
Thanked by:
  #7 (permalink)
 
GoldenRatio's Avatar
 GoldenRatio 
Philadelphia, PA
 
Experience: Advanced
Platform: Matlab, TradeStation
Trading: Stocks
Posts: 211 since Aug 2012
Thanks Given: 5,192
Thanks Received: 296

Hulk,

Thank you! Just what I needed to get me started.

GRT

Started this thread Reply With Quote




Last Updated on July 30, 2014


© 2024 NexusFi™, s.a., All Rights Reserved.
Av Ricardo J. Alfaro, Century Tower, Panama City, Panama, Ph: +507 833-9432 (Panama and Intl), +1 888-312-3001 (USA and Canada)
All information is for educational use only and is not investment advice. There is a substantial risk of loss in trading commodity futures, stocks, options and foreign exchange products. Past performance is not indicative of future results.
About Us - Contact Us - Site Rules, Acceptable Use, and Terms and Conditions - Privacy Policy - Downloads - Top
no new posts