Gena1,
I was able to get EL to look into it. This should do it for you!
{ This study is to be applied to a multi-data chart where data 1 would be
an intra-day chart and data 2 a daily chart.
Since volume begins low for the day and accumulates during the day,
cross-under's are not to be expected }
Inputs:
TradeData( volume ),
LengthOfHistory( 5 );
Variables:
HistoricalHigh( 0 ),
HistoricalLow( 0 ),
MovingAverage( 0 ),
IntraDayVolAccum( 0 ) ; { Intraday volume accumulator }
HistoricalHigh = Highest( TradeData, LengthOfHistory ) Data2;
HistoricalLow = Lowest( TradeData, LengthOfHistory ) Data2;
MovingAverage = Average( TradeData, LengthOfHistory ) Data2;
If Date <> Date[1] then
IntraDayVolAccum = TradeData;
IntraDayVolAccum = IntraDayVolAccum + TradeData;
Plot1( IntraDayVolAccum, "IDVol" );
Plot2( HistoricalHigh, "HisHigVol" );
Plot3( HistoricalLow, "HisLowVol" );
Plot4( MovingAverage, "MovAvg" );
If IntraDayVolAccum crosses over HistoricalHigh then
Alert( "Volume has reached new high" );
If IntraDayVolAccum crosses over HistoricalLow then
Alert( "Volume has crossed over low" );
If IntraDayVolAccum crosses over MovingAverage then
Alert( "Volume has crossed over daily volume average" );
Hope this helps!
Doreen
I was able to get EL to look into it. This should do it for you!
{ This study is to be applied to a multi-data chart where data 1 would be
an intra-day chart and data 2 a daily chart.
Since volume begins low for the day and accumulates during the day,
cross-under's are not to be expected }
Inputs:
TradeData( volume ),
LengthOfHistory( 5 );
Variables:
HistoricalHigh( 0 ),
HistoricalLow( 0 ),
MovingAverage( 0 ),
IntraDayVolAccum( 0 ) ; { Intraday volume accumulator }
HistoricalHigh = Highest( TradeData, LengthOfHistory ) Data2;
HistoricalLow = Lowest( TradeData, LengthOfHistory ) Data2;
MovingAverage = Average( TradeData, LengthOfHistory ) Data2;
If Date <> Date[1] then
IntraDayVolAccum = TradeData;
IntraDayVolAccum = IntraDayVolAccum + TradeData;
Plot1( IntraDayVolAccum, "IDVol" );
Plot2( HistoricalHigh, "HisHigVol" );
Plot3( HistoricalLow, "HisLowVol" );
Plot4( MovingAverage, "MovAvg" );
If IntraDayVolAccum crosses over HistoricalHigh then
Alert( "Volume has reached new high" );
If IntraDayVolAccum crosses over HistoricalLow then
Alert( "Volume has crossed over low" );
If IntraDayVolAccum crosses over MovingAverage then
Alert( "Volume has crossed over daily volume average" );
Hope this helps!
Doreen