find the volume peak  [SOLVED]

Questions about MultiCharts and user contributed studies.
tranitroom
Posts: 91
Joined: 01 Jun 2011
Has thanked: 11 times
Been thanked: 1 time

find the volume peak

Postby tranitroom » 19 Sep 2012

what is the formula in PowerLenguage if i want find the volume peak bar?
tnx

User avatar
Dave Masalov
Posts: 1712
Joined: 16 Apr 2010
Has thanked: 51 times
Been thanked: 485 times

Re: find the volume peak  [SOLVED]

Postby Dave Masalov » 20 Sep 2012

tranitroom wrote:what is the formula in PowerLenguage if i want find the volume peak bar?
tnx


Hello tranitroom,

Please try the following piece of code:

Code: Select all

input: Period(10);
var: volumePeakBar(0);
volumePeakBar = highestbar(ticks, Period);


It will find bar number (in bars back) which had the peak volume among last "Period" bars,

tranitroom
Posts: 91
Joined: 01 Jun 2011
Has thanked: 11 times
Been thanked: 1 time

Re: find the volume peak

Postby tranitroom » 20 Sep 2012

thank you very much

tranitroom
Posts: 91
Joined: 01 Jun 2011
Has thanked: 11 times
Been thanked: 1 time

Re: find the volume peak

Postby tranitroom » 21 Sep 2012

Dave if i want to find the peak volume bar in the first hour session how i do?
tank you


Return to “MultiCharts”