NexusFi: Find Your Edge


Home Menu

 





ATR ( Percentage based ) Plotted indicator help needed please....


Discussion in ThinkOrSwim

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




 
Search this Thread
  #1 (permalink)
 mdsvtr 
Memphis,TN
 
Posts: 232 since Sep 2010

I am looking for an Indicator that will plot the Percentages OF the actual ATR Indicator itself ( as shown in te attached screenshot )

Basically it will plot and show you various percentages OF the ATR ..... 25% , 50%, etc.
based on each individual traders settings and liking

I would like to have this Indicator / strategy developed, as I feel that it will help save some leg work in that we can use it as where to place " Likely " and reasonable profit Targets and even stops, using the ATR and a percentage based and calculated directly from it

Thank you to anyone who can share where this Indicator already is on TorS, or who wouldn't mind coding and developing it

Thanks much - Michael


Attached Thumbnails
Click image for larger version

Name:	2015-04-09  ATR Percentage Profit target a nd stop loss at the  (  35, 50 and 70% marks  ).png
Views:	408
Size:	31.3 KB
ID:	181922  
Reply With Quote

Can you help answer these questions
from other members on NexusFi?
Trump Media to sell instant access to market-moving soci …
Traders Hideout
No book, only a stair: journaling fills where price move …
Cryptocurrency
My Rant with AMP Futures
Trading Reviews and Vendors
EA
Platforms and Indicators
Datafeed for Atas
Platforms and Indicators
 
Best Threads (Most Thanked)
in the last 7 days on NexusFi
Mes vs MNQ
6 thanks
NexusFi site changelog and issues/problem reporting
5 thanks
BERN ALGOS algo trading journal
3 thanks
TopStep Trader disappointment
2 thanks
Johnnys Journal
2 thanks
  #2 (permalink)
 growex 
Trubchevsk
 
Experience: Beginner
Platform: tos
Trading: stocks
Posts: 61 since May 2011
Thanks Given: 40
Thanks Received: 79

 
Code
                            
input ATRLength = 14;
input length = 14;
input averageType = AverageType.SIMPLE;
def ATR = MovingAverage(averageType, TrueRange(high, close, low), length);
input levelUp_1 = 70;
input levelUp_2 = 30;
input levelUp_3 = 10;
input levelDn_1 = 10;
input levelDn_2 = 30;
input levelDn_3 = 70;
 
rec levelUp1 = if IsNaN(close[-1]) then levelUp1[1] else ((levelUp_1 / 100) * ATR) + close;
plot l2up = if !isnan(close) then double.NaN else levelUp1;
rec levelUp2 = if IsNaN(close[-1]) then levelUp2[1] else ((levelUp_2 / 100) * ATR) + close;
plot l3up = if !isnan(close) then double.NaN else levelUp2;
rec levelUp3 = if IsNaN(close[-1]) then levelUp3[1] else ((levelUp_3 / 100) * ATR) + close;
plot l1up = if !isnan(close) then double.NaN else levelUp3;

rec levelDn1 = if IsNaN(close[-1]) then levelDn1[1] else close - ((levelDn_1 / 100) * ATR);
plot l2Dn = if !isnan(close) then double.NaN else levelDn1;
rec levelDn2 = if IsNaN(close[-1]) then levelDn2[1] else close - ((levelDn_2 / 100) * ATR);
plot l3Dn = if !isnan(close) then double.NaN else levelDn2;
rec levelDn3 = if IsNaN(close[-1]) then levelDn3[1] else close - ((levelDn_3 / 100) * ATR);
plot l1Dn = if !isnan(close) then double.NaN else levelDn3; 
It will plot 3 levels up and 3 levels down on expantion area of chart so you have to set at least 1 bar into expantion area setting (time and axis tab)


Follow me on X Reply With Quote
Thanked by:
  #3 (permalink)
 growex 
Trubchevsk
 
Experience: Beginner
Platform: tos
Trading: stocks
Posts: 61 since May 2011
Thanks Given: 40
Thanks Received: 79


my mistake...
first line
input ATRLength = 14; is meaningless...delete it.


Follow me on X Reply With Quote
Thanked by:




Last Updated on May 5, 2015


© 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