NexusFi: Find Your Edge


Home Menu

 





ADR?


Discussion in ThinkOrSwim

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




 
Search this Thread
  #1 (permalink)
pharmacist25
Charlottesville
 
Posts: 4 since Dec 2016
Thanks Given: 0
Thanks Received: 0

Not sure if this is the right place to ask this but I use tos so thought I could start here.
I am wanting to use ADR to trade with and was looking for it as a study but cannot find it.
I would settle for an excel spreadsheet and a place I can get the data to plug in. ANyone have any ideas?
Or a stuy where I could tailor it to the number of day sI want to average. Thanks fro any help.


Reply With Quote

Can you help answer these questions
from other members on NexusFi?
Saylors 41-Month HODL Breaks: Strategy Sells 32 BTC as $ …
Prediction Markets & Event Contracts
Post-Summit Market Verdict: ES -1%, NQ -1.5%, 10-Year Yi …
Traders Hideout
Warsh Drops Easing Bias, December Hike Now Above 50% -- …
Prediction Markets & Event Contracts
Warsh Rate Hike at 40%, Iran June 15 Expires Tonight at …
Prediction Markets & Event Contracts
CME Raises Energy Futures Margins After Iran-War Volatil …
Commodities
 
Best Threads (Most Thanked)
in the last 7 days on NexusFi
NexusFi site changelog and issues/problem reporting
15 thanks
Darmok and Jalad at Tanagra
3 thanks
Big Mike in Ecuador
1 thanks
30 Sessions
1 thanks
  #2 (permalink)
 Paddy 
florida
 
Experience: Beginner
Platform: TOS
Broker: TOS
Trading: ES, cl, options, gold, grains,nq,
Posts: 297 since Jul 2016
Thanks Given: 46
Thanks Received: 176


pharmacist25 View Post
Not sure if this is the right place to ask this but I use tos so thought I could start here.
I am wanting to use ADR to trade with and was looking for it as a study but cannot find it.
I would settle for an excel spreadsheet and a place I can get the data to plug in. ANyone have any ideas?
Or a stuy where I could tailor it to the number of day sI want to average. Thanks fro any help.

TOS doesnot have one. I have a file but doesnt work well. I am having the same issue the scripting language is not as user friendly either
input aggregationPeriod = AggregationPeriod.DAY;
input ADRLength = 14;

def H = high(period = aggregationPeriod)[1];
def L = low(period = aggregationPeriod)[1];
def C = close(period = aggregationPeriod)[1];

def dayRange = (high(period = AggregationPeriod.DAY)[0] - low(period = AggregationPeriod.DAY)[0]);
def ADR = round((Average((high(period = AggregationPeriod.DAY)[1] - low(period = AggregationPeriod.DAY)[1]), ADRLength)),2);
def pctADR = round((dayRange/ADR)*100,0);

plot ADR_H = round((low(period="day") + ADR),2);
plot ADR_L = round((high(period="day") - ADR),2);

ADR_H.SetDefaultColor(Color.RED);
ADR_H.setpaintingstrategy(paintingstrategy.points);

ADR_L.SetDefaultColor(Color.GREEN);
ADR_L.setpaintingstrategy(paintingstrategy.points);

AddLabel(yes, "ADR " + ADR);
AddLabel(yes, "Day Range " + dayRange);
AddLabel(yes, "Day Range Pct " + pctADR);
AddLabel(yes, "ADR_H=" + ADR_H + " ADR_L=" + ADR_L);



Feel free to play with it. Also, I am evaluating NT or Sierra charts as a solution to TOS platform


Follow me on X Visit my NexusFi Trade Journal Reply With Quote




Last Updated on December 18, 2016


© 2026 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 - Downloads - Top
no new posts