Getting V value of daily on 5 mins timeframe

I am trying to use this code in my 5 min timeframe

//This supposed to show value of V continuously with incremental value
TimeFrameSet(inDaily);
DayTrxValue=V*(O+H+L+C)/4/1000000000;
AddColumn(V,"V");
AddColumn(O,"O");
AddColumn(H,"H");
AddColumn(L,"L");
AddColumn(C,"C");
TimeFrameRestore();

//This supposed to show the value for each bar
AddColumn(V,"V");
AddColumn(O,"O");
AddColumn(H,"H");
AddColumn(L,"L");
AddColumn(C,"C");

Filter =1;

And when running the AFL, it shows result like this
AFL

The result of V is expected to be incremental (value on V under red circle) on each increased timeline, however it is not. The V under black circle is the V of 5 min timeframe of each bar. While I expect the daily V to be the addition of 5 min V on each incremental timeline.

I have read the tutorial, maybe my understanding is not enough?

This topic was automatically closed 100 days after the last reply. New replies are no longer allowed.