NexusFi: Find Your Edge


Home Menu

 





Need help with basic indicator


Discussion in TradeStation

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




 
Search this Thread

Need help with basic indicator

  #1 (permalink)
 Tc5953 
Fresno CA
 
Experience: Intermediate
Platform: Ninja trader
Trading: Futures
Posts: 18 since Aug 2019
Thanks Given: 9
Thanks Received: 19

I have been using TOS for my executions on stocks and options and I have been having a ton of issues with fills and platform freezing etc, I am looking for help on two simple indicators I have been using on TOS and wondering if someone here could help out? I would be wiling to pay if needed.

The two indicators just sit on the top left corner of my chart and constantly update as price moves...Once tells me the spread, the other just tells me the ATR in $ (based on 14 day) and it tells me what percentage it has moved of that ATR and also what $ range it has moved vs the ATR.

Mine currently changes color at anything over 100% etc but I dont need it to do that I just need these things in the top left corner or bottom left corner of the chart

See screen shot below, obviously I have the TOS script if that helps but from what I understand it doesnt really for easy language



Started this thread Reply With Quote

Can you help answer these questions
from other members on NexusFi?
How to apply profiles
Traders Hideout
PowerLanguage & EasyLanguage. How to get the platfor …
EasyLanguage Programming
ZombieSqueeze
Platforms and Indicators
MC PL editor upgrade
MultiCharts
Exit Strategy
NinjaTrader
 
Best Threads (Most Thanked)
in the last 7 days on NexusFi
Spoo-nalysis ES e-mini futures S&P 500
29 thanks
Tao te Trade: way of the WLD
24 thanks
Just another trading journal: PA, Wyckoff & Trends
24 thanks
Bigger Wins or Fewer Losses?
21 thanks
GFIs1 1 DAX trade per day journal
17 thanks
  #2 (permalink)
sloth
Denver, CO
 
Posts: 23 since May 2021
Thanks Given: 22
Thanks Received: 63

Hi Tc,

I'm not a quant or programmer but since you haven't received any replies to this in almost a week I'll take a stab at this. NOTE: I haven't used tradestation in many years. I don't know how to create a box like you've described but you can open an RadarScreen window and size it to your liking. Maybe a real programmer can chime in and shed some light on the subject. Anyhow, you can create an new indicator in easy language and code something like this:

Variables: DTR(0), DTRpct(0),ATR(0), SPD(0);
inputs: ATRLength(14) ;


DTR = HighD(0) - LowD(0) ;
ATR = AvgTrueRange( ATRLength );
DTRpct= DTR / ATR *100;
SPD = CurrentAsk - CurrentBid;

Plot1( DTRpct, "DTR%" ) ;
Plot2( DTR, "DTR" ) ;
Plot3( ATR, "ATR" ) ;
Plot4(SPD,"SPD");


Condition1 = FALSE ;
if Condition1 then
Alert( "" ) ;

After you've created the indicator, open a new radar screen and insert the indicator. You can add or delete the fields that you'd like to see. The results will look something like this:

"Sorry, I cannot post images until I have 5 posts at futures.io"

The spread isn't populating for some reason but as you can see from above - it's defined as the current offer minus the current bid. Anyhow - you can reduce the window and put it in your workspace - unless you can figure out how to populate data in a box on the chart itself. That's beyond my current skillset with tradestation - but - I hope this at least gets you started in the right direction.

Cheers!

Attached Thumbnails
Click image for larger version

Name:	image_562.png
Views:	136
Size:	15.7 KB
ID:	313903  
Reply With Quote
Thanked by:
  #3 (permalink)
 Tc5953 
Fresno CA
 
Experience: Intermediate
Platform: Ninja trader
Trading: Futures
Posts: 18 since Aug 2019
Thanks Given: 9
Thanks Received: 19



sloth View Post
Hi Tc,

I'm not a quant or programmer but since you haven't received any replies to this in almost a week I'll take a stab at this. NOTE: I haven't used tradestation in many years. I don't know how to create a box like you've described but you can open an RadarScreen window and size it to your liking. Maybe a real programmer can chime in and shed some light on the subject. Anyhow, you can create an new indicator in easy language and code something like this:

Variables: DTR(0), DTRpct(0),ATR(0), SPD(0);
inputs: ATRLength(14) ;


DTR = HighD(0) - LowD(0) ;
ATR = AvgTrueRange( ATRLength );
DTRpct= DTR / ATR *100;
SPD = CurrentAsk - CurrentBid;

Plot1( DTRpct, "DTR%" ) ;
Plot2( DTR, "DTR" ) ;
Plot3( ATR, "ATR" ) ;
Plot4(SPD,"SPD");


Condition1 = FALSE ;
if Condition1 then
Alert( "" ) ;

After you've created the indicator, open a new radar screen and insert the indicator. You can add or delete the fields that you'd like to see. The results will look something like this:

"Sorry, I cannot post images until I have 5 posts at futures.io"

The spread isn't populating for some reason but as you can see from above - it's defined as the current offer minus the current bid. Anyhow - you can reduce the window and put it in your workspace - unless you can figure out how to populate data in a box on the chart itself. That's beyond my current skillset with tradestation - but - I hope this at least gets you started in the right direction.

Cheers!



That is awesome and is a great work around until I can get someone to help me put it into the chart! One question I have, I am hoping you or someone can help with.....When I link the radar screen to my chart and I change the symbol in the chart, it isnt changing the symbol in the radar screen (or adding it, if not already in there) does anyone know how to do that so I dont have to manually add it to the radar screen or scroll through the whole list to find the one I just switched too? P.S. I have everything linked globally to the right color

All the help is much more appreciated than you know!

Started this thread Reply With Quote
  #4 (permalink)
sloth
Denver, CO
 
Posts: 23 since May 2021
Thanks Given: 22
Thanks Received: 63

TC,

There's a box in the upper right hand corner of your radar screen with an 'S' - click on it and make it green. On the same tab, open a chart and select the same S and turn it green. Now the radar screen and that chart window and linked. If you double click on any symbol in your radar screen - the linked chart will populate with that symbol. If I understand your question, that should do the trick. Does tradestation still have a users forum? There used to be some really talented people in there willing to help. As mentioned previously, I don't really use TS any longer and my skills are fairly limited.
Radar


Good luck!

Edit - I just reread your post. Clearly you know how to link things globally. Is having a symbol list on your radarscreen not workable? Alternaively, change the symbol in your radarscreen vs. changing it in the chart?? I dunno - there are probably some videos out there on how to display an indicator value in Tradestation on a chart somewhere. If you find one, lemme know and we can amend the code posted above.

Reply With Quote
  #5 (permalink)
AllisonInDallas
Dallas, Texas USA
 
Posts: 5 since Oct 2020
Thanks Given: 0
Thanks Received: 0

How is this different than the "Range" function in Easy Language?

Range (Function)
The Range function subtracts the Low of a bar from the High to determine the range of the bar.

Syntax

Range

Returns (Double)

A numeric value containing the current range (High minus Low) value.

Parameters

None

Example

Plot1(Range);

Reply With Quote




Last Updated on May 16, 2022


© 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