NexusFi: Find Your Edge


Home Menu

 





ATRpercentage indicator


Discussion in NinjaTrader

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




 
Search this Thread

ATRpercentage indicator

  #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?
Pivot Indicator like the old SwingTemp by Big Mike
NinjaTrader
Trade idea based off three indicators.
Traders Hideout
Better Renko Gaps
The Elite Circle
Strategy stop orders partially filled
EasyLanguage Programming
NT7 Indicator Script Troubleshooting - Camarilla Pivots
NinjaTrader
 
  #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


© 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