NexusFi: Find Your Edge


Home Menu

 





ATRpercentage indicator


Discussion in NinjaTrader

Updated
    1. trending_up 3,896 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?
Sundays Verdict: Lebanon Locked at 99.85% as Iran June 7 …
Prediction Markets & Event Contracts
June 15 Peace Odds Surge From 3.6% to 12.25% After Trump …
Prediction Markets & Event Contracts
CPI Eve: Fed Hike Odds Hold at 52% for the First Time, I …
Prediction Markets & Event Contracts
CFTC Approves First US Bitcoin Perpetual Futures -- Kals …
Traders Hideout
Trump Media to sell instant access to market-moving soci …
Traders Hideout
 
Best Threads (Most Thanked)
in the last 7 days on NexusFi
NexusFi site changelog and issues/problem reporting
13 thanks
Darmok and Jalad at Tanagra
3 thanks
Big Mike in Ecuador
1 thanks
30 Sessions
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