NinjaScript > Language Reference > Indicator Methods >

Darvas

Print this Topic Previous pageReturn to chapter overviewNext page

Description

A trading strategy that was developed in 1956 by former ballroom dancer Nicolas Darvas.  Darvas' trading technique involved buying into stocks that were trading at new 52-week highs with correspondingly high volumes.

 

... Courtesy of Investopedia

 

 

Syntax

Darvas()

Darvas(IDataSeries input)

 

Returns the upper value

Darvas().Upper[int barsAgo]

Darvas(IDataSeries input).Upper[int barsAgo]

 

Returns the lower value

Darvas().Lower[int barsAgo]

Darvas(IDataSeries input).Lower[int barsAgo]

 

 

Return Value

double; Accessing this method via an index value [int barsAgo] returns the indicator value of the referenced bar.

 

 

Parameters

input

Indicator source data (?)

 

 

Examples

// Prints the current upper Darvas value
double value = Darvas().Upper[0];
Print("The current upper Darvas value is " + value.ToString());

 

 

Source Code

You can view this indicator method source code by selecting the menu Tools > Edit NinjaScript > Indicator within the NinjaTrader Control Center window.