NexusFi: Find Your Edge


Home Menu

 





ATRpercentage indicator


Discussion in NinjaTrader

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




 
Search this Thread
  #1 (permalink)
 
Peter's Avatar
 Peter 
Brisbane; Australia
 
Experience: Intermediate
Platform: NT
Broker: IB/TDA needing new broker
Trading: Futures, Forex, Stocks
Posts: 97 since Jun 2009
Thanks Given: 91
Thanks Received: 118

Trying to find why my mechanical MA cross-over system did work last months. Suspecting a lack of volatility, I have been looking at the ATR.

But the ATR was over the last year was very distorted as the price dropped 90%.
So I made an ATRpercentage indicator that will yield the ATR as percentage of the median price.

Taking the ATR as percentage of the price worked. It showed that my strategy was getting worse with a lower ATRpercentage. Or to put it another way ... I need a minimum volatility to have the MA cross-over strategy to work. Which makes sense ... in hindsight. Now I need to find settings that will stop the strategy when the ATRpercentage is too low.

I will put the indicator here first before putting in the downloading section as the 'real coders' might want to improve it.


Attached Files
Elite Membership required to download: ATRpercentage.zip
Started this thread Reply With Quote

Can you help answer these questions
from other members on NexusFi?
Without Pulisic, USA 61.5% Live vs. Australia -- France …
Prediction Markets & Event Contracts
Ninjatrader users - good CONNECTIONs post and article fr …
NinjaTrader
Warsh Drops Easing Bias, December Hike Now Above 50% -- …
Prediction Markets & Event Contracts
Iran Lebanon Problem Kills Switzerland Talks, Brent at $ …
Prediction Markets & Event Contracts
Czechia Live at 52.5% as England Rides 4-2 Wave to Co-Fa …
Prediction Markets & Event Contracts
 
Best Threads (Most Thanked)
in the last 7 days on NexusFi
Want your NinjaTrader indicator created, free?
5 thanks
Afternoon-close session
1 thanks
Franks Trading Journey
1 thanks
Denied 20K payouts: Alpha Futures
1 thanks
FootPrintV2 Chart for NT8
1 thanks
  #2 (permalink)
csayantan
kolkata+WB/Country
 
Posts: 22 since Dec 2013
Thanks Given: 10
Thanks Received: 4

Hi

got error in NT7


Quoting 

Error on calling 'OnBarUpdate' method for indicator 'ATRpercentage' on bar 1: Index was outside the bounds of the array.
Error on calling 'OnBarUpdate' method for indicator 'ATRpercentage' on bar 1: Index was outside the bounds of the array.
Error on calling 'OnBarUpdate' method for indicator 'ATRpercentage' on bar 1: Index was outside the bounds of the array.
Error on calling 'OnBarUpdate' method for indicator 'ATRpercentage' on bar 0: Index was outside the bounds of the array.

thx
cs


Reply With Quote




Last Updated on September 2, 2014


© 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