Hello All,

Just wanted to bump this post up again in case it was missed by 
anyone who may be able to offer some assistance... 

Many Thanks in advance....

--- In [email protected], "chorlton_c_hardy" <chorlton-c-
[EMAIL PROTECTED]> wrote:
>
> Hello All,
> 
> Can anyone offer some guidence/assistance with this please.
> 
> When looking at a WEEKLY Timeframe, the volume line plotted is 
> obviously the total volume made up from the corresponding 5 Days 
> taken from the lower timeframe (Daily).
> 
> 
> However, what I would like to do is plot 3 lines for Volume on the 
> WEEKLY Timeframe. 
> 
> The 1st line would be the total volume over the last 5 Days (taken 
> from Daily Timeframe) where the Close for each of the Daily Bars 
was 
> HIGHER or EQUAL to its Open.
> 
> The 2nd line would be the total volume over the last 5 Days (taken 
> from Daily Timeframe) where the Close for each of the Daily Bars 
was 
> LOWER than the Open.
> 
> The 3rd line would simply be the total of the values from Lines 1 
& 
> 2. In otherwords, it would simply be the same value as the normal 
> Weekly Volume.
> 
> The 3 lines would be plotted on the Weekly Timeframe.
> 
> 
> I've been playing around with the TimeFrameSet function in AB in 
an 
> attempt to achieve this but with little success. 
> 
> Here is the code I have so far:
> 
> TimeFrameSet(inDaily);
> upvolume = IIf(C>=O,V,0);
> downvolume = IIf(C<O,V,0);
> upvolume = Sum(upvolume,5);
> downvolume = Sum(downvolume,5);
> TotalV = upvolume + downvolume ;
> TimeFrameRestore();
> Plot( TotalV, " Total Volume", colorBlue, ParamStyle("Style", 
> styleHistogram | styleThick, maskHistogram ) );
> 
> When the above code is plotted, the result for the most recent 
volume 
> bar on a DAILY timeframe is the SAME value as the value for the 
most 
> recent standard Volume Bar on a WEEKLY timeframe !!! 
> 
> However, what I need to do is plot the result from the Daily 
> timeframe onto the Weekly Timeframe, so both volume values are the 
> same.
> 
> 
> Consequently, any help would be appreciated,
> 
> Many Thanks in advance,
> 
> Chorlton
>


Reply via email to