NexusFi: Find Your Edge


Home Menu

 





Darvas Indicator


Discussion in NinjaTrader

Updated
      Top Posters
    1. looks_one gretzkyless with 5 posts (11 thanks)
    2. looks_two cory with 4 posts (14 thanks)
    3. looks_3 eensor with 2 posts (1 thanks)
    4. looks_4 kennanoate with 2 posts (0 thanks)
      Best Posters
    1. looks_one Fat Tails with 4 thanks per post
    2. looks_two cory with 3.5 thanks per post
    3. looks_3 gretzkyless with 2.2 thanks per post
    4. looks_4 eensor with 0.5 thanks per post
    1. trending_up 15,657 views
    2. thumb_up 31 thanks given
    3. group 12 followers
    1. forum 15 posts
    2. attach_file 16 attachments




 
Search this Thread

Darvas Indicator

  #11 (permalink)
 eensor 
New Braunfels, TX
 
Experience: Intermediate
Platform: NinjaTrader
Broker: Zen-Fire
Trading: futures
Posts: 129 since Aug 2009
Thanks Given: 924
Thanks Received: 21

Ok, I get the part where it is making a new high or low and the line paints on each new bar, sometimes when it retraces and draws another line, the line disappears when it heads back in the original direction, is this a normal function? Thanks again for taking time to answer my questions and all the other questions for all of us who are technically challenged.

eensor

Reply With Quote
Thanked by:

Can you help answer these questions
from other members on NexusFi?
REcommedations for programming help
Sierra Chart
How to apply profiles
Traders Hideout
Better Renko Gaps
The Elite Circle
NT7 Indicator Script Troubleshooting - Camarilla Pivots
NinjaTrader
Pivot Indicator like the old SwingTemp by Big Mike
NinjaTrader
 
Best Threads (Most Thanked)
in the last 7 days on NexusFi
Spoo-nalysis ES e-mini futures S&P 500
29 thanks
Just another trading journal: PA, Wyckoff & Trends
25 thanks
Tao te Trade: way of the WLD
24 thanks
Bigger Wins or Fewer Losses?
22 thanks
GFIs1 1 DAX trade per day journal
17 thanks
  #12 (permalink)
 
cory's Avatar
 cory 
virginia
 
Experience: Intermediate
Platform: ninja
Trading: NQ
Posts: 6,098 since Jun 2009
Thanks Given: 877
Thanks Received: 8,090

I dont use it but try to set longer period and see if it makes any diff.

Reply With Quote
Thanked by:
  #13 (permalink)
 Mashu01 
Kahului, Hawaii USA
 
Experience: Intermediate
Platform: Ninja Trader 7
Trading: Futures
Posts: 21 since May 2011
Thanks Given: 1
Thanks Received: 1


Would there be any way to dynamically draw fib retracements in between the darvas range high and range low? I have a very specific reason that this could be helpful to me. BTW I really like the the S/R lines you have added I find them very useful. Thanks!

Reply With Quote
  #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

The Darvas Boxes are not that well defined. I have read the book by Nicolas Darvas, but there are a few parameters which can be set up in several ways.

New Highs / New Lows

The lookback period for a new high or new low can be changed. In case that the lookback period is small, high boxes and low boxes may actually overlap, see chart attached. Darvas did not have this problem, because he traded daily charts in a bull market in the Fifties, and he only traded from the long side. However, a generalization of the concept leads to drawing boxes from new N-day high and new N-day lows.

Countertrend Volatility / Giant Boxes

Sometimes the low of a new Darvas high box can be far beyond the low of the prior upswing, and in some cases it can even be a new N-period low. These cases would not fall within the idea of trading a trend continuation. To eliminate these gaint Darvas boxes additional rules would be necessary such as

-> countertrend move of x times ATR invalidates a potential Darvas high or low
-> new Low invalidates a Darvas high box

Time in Force

If there is no breakout from a Darvas box, it is well possible that there is an occurrence of a new high or low within an existing box. In this case either the first or the new second Darvas boxes should be traded.

Volume Confirmation

Darvas wanted to see heavy volume to get a confirmation for the breakout trade. It needs to be specified how the volume filter can be set up.

Breakout Trades

Long trades can be entered

-> prior to the breakout (define conditions)
-> when the top of a Darvas high box is broken
-> when a close above the top of a Darvas high box is observed.

Similar rules for short trades.

Example

The chart attached points to some of the problems.


Reply With Quote
  #15 (permalink)
djiym
Atlanta/GA
 
Posts: 12 since Jun 2013
Thanks Given: 37
Thanks Received: 3

It seems that darvas references can't be used within an external indicator.
Q: is Darvas integrated "Reset" script function the reason for that?

Any help is greatly appreciated.

 
Code
protected override void OnBarUpdate()
{
	double D_U_1 = Darvas().Upper[0];
	double D_L_1 = Darvas().Lower[0];	
				
	Values[0].Set(D_U_1);
	Values[1].Set(D_L_1);
}

Attached Thumbnails
Click image for larger version

Name:	YM 06-15_Darvas.jpg
Views:	336
Size:	187.6 KB
ID:	183225   Click image for larger version

Name:	YM 06-15_DarvasTest.jpg
Views:	265
Size:	198.1 KB
ID:	183226  
Attached Files
Elite Membership required to download: DarvasTest.zip
Reply With Quote
Thanked by:
  #16 (permalink)
danielchait
Tel Aviv, Israel
 
Posts: 1 since Oct 2018
Thanks Given: 4
Thanks Received: 0

Hello friend
Please sen me this indicator
Thanks in advance
Daniel.

Reply With Quote




Last Updated on December 25, 2021


© 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