NexusFi: Find Your Edge


Home Menu

 





Drive Indicator Converted to ninja 7


Discussion in NinjaTrader

Updated
      Top Posters
    1. looks_one Fat Tails with 8 posts (17 thanks)
    2. looks_two ticnau with 6 posts (2 thanks)
    3. looks_3 Poocher with 2 posts (1 thanks)
    4. looks_4 sam028 with 1 posts (0 thanks)
      Best Posters
    1. looks_one Fat Tails with 2.1 thanks per post
    2. looks_two flyscalper with 1 thanks per post
    3. looks_3 Poocher with 0.5 thanks per post
    4. looks_4 ticnau with 0.3 thanks per post
    1. trending_up 8,856 views
    2. thumb_up 21 thanks given
    3. group 4 followers
    1. forum 20 posts
    2. attach_file 12 attachments




 
Search this Thread

Drive Indicator Converted to ninja 7

  #11 (permalink)
 ticnau 
Buderim Queensland Australia
 
Experience: Advanced
Platform: ninja
Broker: AMP/Zenfire
Trading: 6E, 6B, YM
Posts: 89 since Jul 2009
Thanks Given: 121
Thanks Received: 25

Still doesn't work for me all i get is a flat straight line??? Any suggestions??

Started this thread Reply With Quote
Thanked by:

Can you help answer these questions
from other members on NexusFi?
Exit Strategy
NinjaTrader
Trade idea based off three indicators.
Traders Hideout
Better Renko Gaps
The Elite Circle
ZombieSqueeze
Platforms and Indicators
MC PL editor upgrade
MultiCharts
 
Best Threads (Most Thanked)
in the last 7 days on NexusFi
Diary of a simple price action trader
26 thanks
Just another trading journal: PA, Wyckoff & Trends
24 thanks
Tao te Trade: way of the WLD
21 thanks
My NQ Trading Journal
16 thanks
HumbleTraders next chapter
9 thanks
  #12 (permalink)
 
Poocher's Avatar
 Poocher 
Los Angeles
 
Experience: Beginner
Platform: SC, MT,
Broker: Forex
Trading: Forex
Posts: 302 since Jun 2009
Thanks Given: 362
Thanks Received: 109

Same here. It imports to NT7 but there's just a flat line at zero.

Ticnau you and I should become programmers so we can fix things like this!

Reply With Quote
Thanked by:
  #13 (permalink)
 
Fat Tails's Avatar
 Fat Tails 
Berlin, Europe
Market Wizard
 
Experience: Advanced
Platform: NinjaTrader, MultiCharts
Broker: Interactive Brokers
Trading: Keyboard
Posts: 9,888 since Mar 2010
Thanks Given: 4,242
Thanks Received: 27,102



ticnau View Post
Still doesn't work for me all i get is a flat straight line??? Any suggestions??

The original indicator had quite a number of coding bugs, which I had not addressed, when I fixed the other problems. I have now tried to remove them all. Also I have normalized the indicator to work with FOREX.

Problem is that the indicator was poorly translated from MetaTrader to NinjaTrader. I do not know, whether the new version is still comparable to the original MetaTrader indicator.

Just found the source for the MetaTrader indicator:

https://codebase.mql4.com/639

I have replaced the indicator file in post #10, so you need to download it again.

Reply With Quote
Thanked by:
  #14 (permalink)
 
Fat Tails's Avatar
 Fat Tails 
Berlin, Europe
Market Wizard
 
Experience: Advanced
Platform: NinjaTrader, MultiCharts
Broker: Interactive Brokers
Trading: Keyboard
Posts: 9,888 since Mar 2010
Thanks Given: 4,242
Thanks Received: 27,102

This indicator is not so bad. If you slightly reduce the period you get a nice trendfilter & volatilitymeter.

I did not like the histogram, so I played around a little and have further modified the indicator. It is now normalized and shaded. The color of the shading gives you a bullish or bearish indication. The absolute value of the indicator is an indicator of volatility.

You want to enter a long position, when volatility is rising and the trendfilter is green. You want to enter a short position when volatiltiy is rising and the trendfilter is red.

The concept can be improved by measuring the relative momentum of the up and down drives.

I called this indicator SuperDrive, as it is now quite different from the original indicator.

Guess I will make some more changes, suggestions welcome.

Attached Thumbnails
Click image for larger version

Name:	SuperDrive.jpg
Views:	303
Size:	101.9 KB
ID:	28082  
Attached Files
Elite Membership required to download: SuperDrive.zip
Reply With Quote
  #15 (permalink)
 
Poocher's Avatar
 Poocher 
Los Angeles
 
Experience: Beginner
Platform: SC, MT,
Broker: Forex
Trading: Forex
Posts: 302 since Jun 2009
Thanks Given: 362
Thanks Received: 109

Many thanks Fat Tails for your generosity.

Reply With Quote
  #16 (permalink)
 
Fat Tails's Avatar
 Fat Tails 
Berlin, Europe
Market Wizard
 
Experience: Advanced
Platform: NinjaTrader, MultiCharts
Broker: Interactive Brokers
Trading: Keyboard
Posts: 9,888 since Mar 2010
Thanks Given: 4,242
Thanks Received: 27,102


Poocher View Post
Many thanks Fat Tails for your generosity.

I am stealing ideas from everybody and then transform them into workable trading strategies and indicators.

This is not generosity, but coproduction and I am one of the beneficiaries.

Reply With Quote
  #17 (permalink)
 ticnau 
Buderim Queensland Australia
 
Experience: Advanced
Platform: ninja
Broker: AMP/Zenfire
Trading: 6E, 6B, YM
Posts: 89 since Jul 2009
Thanks Given: 121
Thanks Received: 25

Poocher i have often thought exactly the same thing, however when i read the code listed on some of these indicators i would have to undergo a new learning curve and at my age probably not high on my list of priorities. good thought though.

Fat tails thank you for your support it is much appreicated and if it works i owe you one, i will check the indicator when i get home from work probably close to US market open and let you know if works ok. thanks a million for your assistance.

Started this thread Reply With Quote
  #18 (permalink)
 
Fat Tails's Avatar
 Fat Tails 
Berlin, Europe
Market Wizard
 
Experience: Advanced
Platform: NinjaTrader, MultiCharts
Broker: Interactive Brokers
Trading: Keyboard
Posts: 9,888 since Mar 2010
Thanks Given: 4,242
Thanks Received: 27,102

This indicator is simply based on the average range and the momentum over a lookback period. The two lines stand for the average range + a 1-bar momentum component and the average range - a 1-bar momentum component. Then it is smoothed with the T3 indicator.

I have recoded it now based on

- an arithmetic average of the true range (instead of the range)
- an enhanced momentum indicator
- the HMA, which replaces the T3

This is not so much different from the original concept, but just a slight improvement. Next step would be the normalization of the indicator. This allows to introduce a volatility threshold. If volatility is below - no trading.

Attached Thumbnails
Click image for larger version

Name:	FDAX 03-11 (15 Min) 10_01_2011.jpg
Views:	316
Size:	93.8 KB
ID:	28099  
Attached Files
Elite Membership required to download: SuperDrive.zip
Reply With Quote
Thanked by:
  #19 (permalink)
 ticnau 
Buderim Queensland Australia
 
Experience: Advanced
Platform: ninja
Broker: AMP/Zenfire
Trading: 6E, 6B, YM
Posts: 89 since Jul 2009
Thanks Given: 121
Thanks Received: 25

Seems to be working fine for me now

THANKS a million Fat Tails

Started this thread Reply With Quote
  #20 (permalink)
 MikaK 
Helsinki/Finland
 
Experience: Intermediate
Platform: NinjaTrader
Trading: ETF
Posts: 1 since Oct 2012
Thanks Given: 4
Thanks Received: 0



Fat Tails View Post
This indicator is not so bad. If you slightly reduce the period you get a nice trendfilter & volatilitymeter.

Hello,
Thank you for coding this. It looks interesting indeed.
Am I able to pull the values into another indicator?

I would like to pull out the basic numeric values of both curves to be use in a formula.

If I try something like this
 
Code
else if
				(
				anaSuperDrive.DriveUp (10,3)[0]-anaSuperDrive.DriveDown (10,3)[0]>0
				)
			{
				points = 500;
			}
I get the error: 'NinjaTrader.Indicator.Indicator.anaSuperDrive(int, int)' is a 'method', which is not valid in the given context when compiling the script.

Reply With Quote




Last Updated on February 26, 2013


© 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