NexusFi: Find Your Edge


Home Menu

 





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


Discussion in ThinkOrSwim

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




 
Search this Thread

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

  #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:	293
Size:	31.3 KB
ID:	181922  
Reply With Quote

Can you help answer these questions
from other members on NexusFi?
Pivot Indicator like the old SwingTemp by Big Mike
NinjaTrader
ZombieSqueeze
Platforms and Indicators
How to apply profiles
Traders Hideout
What broker to use for trading palladium futures
Commodities
REcommedations for programming help
Sierra Chart
 
  #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(averageTypeTrueRange(highcloselow), 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(closethen double.NaN else levelUp1;
rec levelUp2 = if IsNaN(close[-1]) then levelUp2[1] else ((levelUp_2 100) * ATR) + close;
plot l3up = if !isnan(closethen double.NaN else levelUp2;
rec levelUp3 = if IsNaN(close[-1]) then levelUp3[1] else ((levelUp_3 100) * ATR) + close;
plot l1up = if !isnan(closethen double.NaN else levelUp3;

rec levelDn1 = if IsNaN(close[-1]) then levelDn1[1] else close - ((levelDn_1 100) * ATR);
plot l2Dn = if !isnan(closethen double.NaN else levelDn1;
rec levelDn2 = if IsNaN(close[-1]) then levelDn2[1] else close - ((levelDn_2 100) * ATR);
plot l3Dn = if !isnan(closethen double.NaN else levelDn2;
rec levelDn3 = if IsNaN(close[-1]) then levelDn3[1] else close - ((levelDn_3 100) * ATR);
plot l1Dn = if !isnan(closethen 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 Twitter 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 Twitter Reply With Quote
Thanked by:




Last Updated on May 5, 2015


© 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