NexusFi: Find Your Edge


Home Menu

 





Thinkscript to EasyLanguage


Discussion in TradeStation

Updated
      Top Posters
    1. looks_one StockT8er with 13 posts (0 thanks)
    2. looks_two mntman with 7 posts (5 thanks)
    3. looks_3 markmanu with 4 posts (1 thanks)
    4. looks_4 kjhosken with 3 posts (0 thanks)
      Best Posters
    1. looks_one Skidboot with 1 thanks per post
    2. looks_two mntman with 0.7 thanks per post
    3. looks_3 madeinnyc with 0.5 thanks per post
    4. looks_4 markmanu with 0.3 thanks per post
    1. trending_up 11,820 views
    2. thumb_up 8 thanks given
    3. group 10 followers
    1. forum 33 posts
    2. attach_file 4 attachments




 
Search this Thread

Thinkscript to EasyLanguage

  #21 (permalink)
 StockT8er 
ROY, Utah
 
Experience: Intermediate
Platform: TradeStation
Posts: 81 since Apr 2020
Thanks Given: 11
Thanks Received: 6

I can not help you, however could someone convert this. It sets up the time for a strategy to run. Is also from TOS

{positioning}
inputs:
{aggregationPeriod( Aggregation.Day ),
showOnlyLastPeriod( yes ),}
rthopen = From( 0645 ),
rthclose = To( 1555 );

RTH = if usetimefilter == yes then if SecondsFromTime(rthopen) >= 0 and
SecondsTillTime(rthclose) >= 0
then 1
else 0 else 1;

Reply With Quote

Can you help answer these questions
from other members on NexusFi?
Exit Strategy
NinjaTrader
Increase in trading performance by 75%
The Elite Circle
REcommedations for programming help
Sierra Chart
NT7 Indicator Script Troubleshooting - Camarilla Pivots
NinjaTrader
How to apply profiles
Traders Hideout
 
Best Threads (Most Thanked)
in the last 7 days on NexusFi
Just another trading journal: PA, Wyckoff & Trends
31 thanks
Spoo-nalysis ES e-mini futures S&P 500
28 thanks
Tao te Trade: way of the WLD
24 thanks
Bigger Wins or Fewer Losses?
20 thanks
GFIs1 1 DAX trade per day journal
17 thanks
  #22 (permalink)
madeinnyc
Highland Park, TX
 
Posts: 36 since Jan 2020
Thanks Given: 17
Thanks Received: 20


mntman View Post
yeah i just started watching it this week and have seen a few already, but i would like to test it anyways in tradestation using the yellow line as a stop to try minimize losses.


How did you get the lower volume study to plot with a histogram view and bubbles? Thanks!

Reply With Quote
Thanked by:
  #23 (permalink)
 StockT8er 
ROY, Utah
 
Experience: Intermediate
Platform: TradeStation
Posts: 81 since Apr 2020
Thanks Given: 11
Thanks Received: 6


This is a cool chart. Would love the code

Reply With Quote
  #24 (permalink)
 
mntman's Avatar
 mntman 
Houston+TX/USA
 
Experience: Intermediate
Platform: TradeStation, ThinkorSwim
Trading: ES, CL
Posts: 11 since Jan 2019
Thanks Given: 1
Thanks Received: 5


madeinnyc View Post
How did you get the lower volume study to plot with a histogram view and bubbles? Thanks!


StockT8er View Post
This is a cool chart. Would love the code

below is a link to the lower study version i made:

https://tos.mx/H24E40j

Reply With Quote
Thanked by:
  #25 (permalink)
madeinnyc
Highland Park, TX
 
Posts: 36 since Jan 2020
Thanks Given: 17
Thanks Received: 20


mntman View Post
below is a link to the lower study version i made:

https://tos.mx/H24E40j

Very nice of you to share! Plots great on the 1 hour. Does it repaint? Any settings to make it work on a Renko chart?

Reply With Quote
  #26 (permalink)
 
Skidboot's Avatar
 Skidboot 
Houston, TX
 
Posts: 202 since Dec 2010
Thanks Given: 203
Thanks Received: 299


madeinnyc View Post
Very nice of you to share! Plots great on the 1 hour. Does it repaint? Any settings to make it work on a Renko chart?

Yes, it does repaint. Too good to be a real deal .

Reply With Quote
Thanked by:
  #27 (permalink)
 
mntman's Avatar
 mntman 
Houston+TX/USA
 
Experience: Intermediate
Platform: TradeStation, ThinkorSwim
Trading: ES, CL
Posts: 11 since Jan 2019
Thanks Given: 1
Thanks Received: 5

skidboot is correct it does repaint unfortunately.

im not sure how to make it work on renkos (assuming you still wanted to test it). the error says "Secondary subscriptions are not allowed on range charts" so it may have something to do with the atr aggregation day period at lines 13-19, not really sure.
 
Code
##DayATR Value Calculation
def highPrice = FundamentalType.high;
def closePrice = FundamentalType.close;
def lowPrice = FundamentalType.low;
def aggregationPeriod = AggregationPeriod.DAY;
rec AvgTrueRange = MovingAverage(AverageType.SIMPLE, TrueRange(Fundamental (highPrice, period = AggregationPeriod.Day), Fundamental (closePrice, period = AggregationPeriod.DAY), Fundamental (lowPrice, period = AggregationPeriod.DAY) ),ATRlength);

Reply With Quote
Thanked by:
  #28 (permalink)
 StockT8er 
ROY, Utah
 
Experience: Intermediate
Platform: TradeStation
Posts: 81 since Apr 2020
Thanks Given: 11
Thanks Received: 6

Thanks
I guess this does mot paint the upper chart? Upper chart adds to it alot

I tried to convert this to a strategy, not sure why it does not work. I relies that it mite not back test very well due to that it has to rec. however I thought that if iI let it run it would at least let me know how much I would have made if I would have used it. does not seam to buy and sell like normal strategies do.

I guess the Buysignal and Sellsignal are N/A

Reply With Quote
  #29 (permalink)
 StockT8er 
ROY, Utah
 
Experience: Intermediate
Platform: TradeStation
Posts: 81 since Apr 2020
Thanks Given: 11
Thanks Received: 6

After running your study live I realized it keeps changing the buy and sell bubbles to meet the perfect condition. Refer to pictures below
Annotation 2020-06-19 072044


Annotation 2020-06-19 072045


you need it to be consitant give you a sell bubble, and if it wants you back in, then give you another buy bubble. see my strat
Annotation 2020-06-19 072509

Reply With Quote
  #30 (permalink)
 
mntman's Avatar
 mntman 
Houston+TX/USA
 
Experience: Intermediate
Platform: TradeStation, ThinkorSwim
Trading: ES, CL
Posts: 11 since Jan 2019
Thanks Given: 1
Thanks Received: 5



StockT8er View Post
After running your study

actually i didn't write the script dude, the original script is found on page 1. all i did was edit it to view in a lower study to help me start watching it to see whats its doing with volume. if you have any questions about what the original does its prob best to ask markmanu who was first to post it.


StockT8er View Post
it keeps changing the buy and sell bubbles to meet the perfect condition

yeah thats what skidboots was pointing out... the study "repaints" so signals will appear or disappear depending on if still valid. they dont hold in place so its not possible (at least not as written) to see the valid true trades. i stopped watching it because of this. like he said "Too good to be a real deal"

Reply With Quote
Thanked by:




Last Updated on September 27, 2020


© 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