NexusFi: Find Your Edge


Home Menu

 





TOS max/min out of a series of parameters


Discussion in ThinkOrSwim

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




 
Search this Thread

TOS max/min out of a series of parameters

  #1 (permalink)
hughsonline
San Jose, CA
 
Posts: 1 since Dec 2016
Thanks Given: 0
Thanks Received: 0

Hi,

I have 25 parameters with value dynamically defined in thinkscript, t1=25.3, t2=12, ..., t25=0.004, is there an easy way to locate max/min out of them? I tried the following code and it does not work.

def tmax=(fold n=1 to 26 with s=0 do max(s, concat("t", n)); #max(s, t1), looks the concat produces t1.00 or something else; astext(n) does not work for int;

Any help is highly appreciated.

Have a blessed holiday.

H.

Reply With Quote




Last Updated on December 21, 2016


© 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