Newbie - Highest vb.net  [SOLVED]

Questions about MultiCharts .NET and user contributed studies.
Ram
Posts: 90
Joined: 25 Nov 2014
Has thanked: 17 times
Been thanked: 5 times

Newbie - Highest vb.net

Postby Ram » 28 Nov 2014

Hi All,

I'm using VB.Net and I'm trying to get the highest price in the last 30 days (the chart itself goes one year back for ex.), I want to get the Highest price at the

Code: Select all

Protected Overrides Sub StartCalc()
and not at the

Code: Select all

Protected Overrides Sub CalcBar()
my current miserable code is:

Code: Select all

Output.WriteLine(PublicFunctions.Highest(BarsOfData(1).High, 30, 1, 1))

the above code writes nothing to the Output window..

can someone pls help me with this?

Thank you all in advance,
Best,
R.

Ram
Posts: 90
Joined: 25 Nov 2014
Has thanked: 17 times
Been thanked: 5 times

Re: Newbie - Highest vb.net  [SOLVED]

Postby Ram » 30 Nov 2014

pls ignore this question and re highest high, this works for me:

Code: Select all

' Get the highest high for the last 15
HighestHigh = Bars.High.Highest(15)
Output.WriteLine(HighestHigh.ToString)
Cheers,
R.


Return to “MultiCharts .NET”