NexusFi: Find Your Edge


Home Menu

 





ATRpercentage indicator


Discussion in NinjaTrader

Updated
    1. trending_up 3,766 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?
Five Days Until the Gap Dies -- CME Goes 24/7 on All Dig …
Traders Hideout
OneChronos Launches First Combinatorial Auction FX Venue …
Currencies
Kharg Island at 6%, Regime Fall at 1.5% -- The Black Swa …
Prediction Markets & Event Contracts
Hormuz Normalization Collapses to 19.5% -- Iran Regime F …
Prediction Markets & Event Contracts
Kalshi Sets $4.13B All-Time Weekly Record as Polymarket …
Prediction Markets & Event Contracts
 
Best Threads (Most Thanked)
in the last 7 days on NexusFi
Sober Journey With S&P
24 thanks
2026 Jlab journal
10 thanks
Lady Vols Primer: Trading Volatility Journal
8 thanks
Algo automated / semi-automated trading anyone?
6 thanks
Trying to learn Volume and price action correlation
5 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