PureBytes Links
Trading Reference Links
|
Graham,
Thanks so much for your help
--- In amibroker@xxxxxxxxxxxxxxx, Graham <kavemanperth@xxxx> wrote:
> here is a sample of summing the volume over each day
>
> SumVol = Sum( V, BarsSince( DateNum()!=Ref(DateNum(),-1) )+1 );
>
> Plot( SumVol, "cumvol", colorBlue, styleHistogram );
>
> summing over same period for each day is possible
>
> this below is something I put together to find the average volume
for
> the various periods of the day. You could use this as a basis for
what
> you want in association with the above. This is long and not put
> together with much finesse, but it does work for me.
>
>
> _SECTION_BEGIN("Average Vol");
>
> /*
> 1 Min bars = 60
> hourly bars = 3600
> daily bars = 86400
> weekly bars = 432000
> monthly bars = 2160000
> */
>
> SetBarsRequired(10000,10000);
> numdays = Cum(DateNum()!=Ref(DateNum(),-1))+1;
>
> numint = int(((6*60+10)*60)/Interval()+1);
>
> intX = ((Hour()-10)*60 + Minute())*60/Interval()+1;
>
> VCum = (
> Cum(IIf(IntX==1,V,0))*(IntX==1)
> + Cum(IIf(IntX==2,V,0))*(IntX==2)
> + Cum(IIf(IntX==3,V,0))*(IntX==3)
> + Cum(IIf(IntX==4,V,0))*(IntX==4)
> + Cum(IIf(IntX==5,V,0))*(IntX==5)
> + Cum(IIf(IntX==6,V,0))*(IntX==6)
> + Cum(IIf(IntX==7,V,0))*(IntX==7)
> + Cum(IIf(IntX==8,V,0))*(IntX==8)
> + Cum(IIf(IntX==9,V,0))*(IntX==9)
> + Cum(IIf(IntX==10,V,0))*(IntX==10)
> + Cum(IIf(IntX==11,V,0))*(IntX==11)
> + Cum(IIf(IntX==12,V,0))*(IntX==12)
> + Cum(IIf(IntX==13,V,0))*(IntX==13)
> + Cum(IIf(IntX==14,V,0))*(IntX==14)
> + Cum(IIf(IntX==15,V,0))*(IntX==15)
> + Cum(IIf(IntX==16,V,0))*(IntX==16)
> + Cum(IIf(IntX==17,V,0))*(IntX==17)
> + Cum(IIf(IntX==18,V,0))*(IntX==18)
> + Cum(IIf(IntX==19,V,0))*(IntX==19)
> + Cum(IIf(IntX==20,V,0))*(IntX==20)
> + Cum(IIf(IntX==21,V,0))*(IntX==21)
> + Cum(IIf(IntX==22,V,0))*(IntX==22)
> + Cum(IIf(IntX==23,V,0))*(IntX==23)
> + Cum(IIf(IntX==24,V,0))*(IntX==24)
> + Cum(IIf(IntX==25,V,0))*(IntX==25)
> + Cum(IIf(IntX==26,V,0))*(IntX==26)
> + Cum(IIf(IntX==27,V,0))*(IntX==27)
> + Cum(IIf(IntX==28,V,0))*(IntX==28)
> + Cum(IIf(IntX==29,V,0))*(IntX==29)
> + Cum(IIf(IntX==30,V,0))*(IntX==30)
> + Cum(IIf(IntX==31,V,0))*(IntX==31)
> + Cum(IIf(IntX==32,V,0))*(IntX==32)
> + Cum(IIf(IntX==33,V,0))*(IntX==33)
> + Cum(IIf(IntX==34,V,0))*(IntX==34)
> + Cum(IIf(IntX==35,V,0))*(IntX==35)
> + Cum(IIf(IntX==36,V,0))*(IntX==36)
> + Cum(IIf(IntX==37,V,0))*(IntX==37)
> + Cum(IIf(IntX==38,V,0))*(IntX==38)
> + Cum(IIf(IntX==39,V,0))*(IntX==39)
> + Cum(IIf(IntX==40,V,0))*(IntX==40)
> + Cum(IIf(IntX==41,V,0))*(IntX==41)
> + Cum(IIf(IntX==42,V,0))*(IntX==42)
> + Cum(IIf(IntX==43,V,0))*(IntX==43)
> + Cum(IIf(IntX==44,V,0))*(IntX==44)
> + Cum(IIf(IntX==45,V,0))*(IntX==45)
> + Cum(IIf(IntX==46,V,0))*(IntX==46)
> + Cum(IIf(IntX==47,V,0))*(IntX==47)
> + Cum(IIf(IntX==48,V,0))*(IntX==48)
> + Cum(IIf(IntX==49,V,0))*(IntX==49)
> + Cum(IIf(IntX==50,V,0))*(IntX==50)
> + Cum(IIf(IntX==51,V,0))*(IntX==51)
> + Cum(IIf(IntX==52,V,0))*(IntX==52)
> + Cum(IIf(IntX==53,V,0))*(IntX==53)
> + Cum(IIf(IntX==54,V,0))*(IntX==54)
> + Cum(IIf(IntX==55,V,0))*(IntX==55)
> + Cum(IIf(IntX==56,V,0))*(IntX==56)
> + Cum(IIf(IntX==57,V,0))*(IntX==57)
> + Cum(IIf(IntX==58,V,0))*(IntX==58)
> + Cum(IIf(IntX==59,V,0))*(IntX==59)
> + Cum(IIf(IntX==60,V,0))*(IntX==60)
> + Cum(IIf(IntX==61,V,0))*(IntX==61)
> + Cum(IIf(IntX==62,V,0))*(IntX==62)
> + Cum(IIf(IntX==63,V,0))*(IntX==63)
> + Cum(IIf(IntX==64,V,0))*(IntX==64)
> + Cum(IIf(IntX==65,V,0))*(IntX==65)
> + Cum(IIf(IntX==66,V,0))*(IntX==66)
> + Cum(IIf(IntX==67,V,0))*(IntX==67)
> + Cum(IIf(IntX==68,V,0))*(IntX==68)
> + Cum(IIf(IntX==69,V,0))*(IntX==69)
> + Cum(IIf(IntX==70,V,0))*(IntX==70)
> + Cum(IIf(IntX==71,V,0))*(IntX==71)
> + Cum(IIf(IntX==72,V,0))*(IntX==72)
> + Cum(IIf(IntX==73,V,0))*(IntX==73)
> + Cum(IIf(IntX==74,V,0))*(IntX==74)
> + Cum(IIf(IntX==75,V,0))*(IntX==75)
> + Cum(IIf(IntX==76,V,0))*(IntX==76)
> + Cum(IIf(IntX==77,V,0))*(IntX==77)
> + Cum(IIf(IntX==78,V,0))*(IntX==78)
> + Cum(IIf(IntX==79,V,0))*(IntX==79)
> + Cum(IIf(IntX==80,V,0))*(IntX==80)
> + Cum(IIf(IntX==81,V,0))*(IntX==81)
> + Cum(IIf(IntX==82,V,0))*(IntX==82)
> + Cum(IIf(IntX==83,V,0))*(IntX==83)
> + Cum(IIf(IntX==84,V,0))*(IntX==84)
> + Cum(IIf(IntX==85,V,0))*(IntX==85)
> + Cum(IIf(IntX==86,V,0))*(IntX==86)
> + Cum(IIf(IntX==87,V,0))*(IntX==87)
> + Cum(IIf(IntX==88,V,0))*(IntX==88)
> + Cum(IIf(IntX==89,V,0))*(IntX==89)
> + Cum(IIf(IntX==90,V,0))*(IntX==90)
> + Cum(IIf(IntX==91,V,0))*(IntX==91)
> + Cum(IIf(IntX==92,V,0))*(IntX==92)
> + Cum(IIf(IntX==93,V,0))*(IntX==93)
> + Cum(IIf(IntX==94,V,0))*(IntX==94)
> + Cum(IIf(IntX==95,V,0))*(IntX==95)
> + Cum(IIf(IntX==96,V,0))*(IntX==96)
> + Cum(IIf(IntX==97,V,0))*(IntX==97)
> + Cum(IIf(IntX==98,V,0))*(IntX==98)
> + Cum(IIf(IntX==99,V,0))*(IntX==99)
> + Cum(IIf(IntX==100,V,0))*(IntX==100)
> + Cum(IIf(IntX==101,V,0))*(IntX==101)
> + Cum(IIf(IntX==102,V,0))*(IntX==102)
> + Cum(IIf(IntX==103,V,0))*(IntX==103)
> + Cum(IIf(IntX==104,V,0))*(IntX==104)
> + Cum(IIf(IntX==105,V,0))*(IntX==105)
> + Cum(IIf(IntX==106,V,0))*(IntX==106)
> + Cum(IIf(IntX==107,V,0))*(IntX==107)
> + Cum(IIf(IntX==108,V,0))*(IntX==108)
> + Cum(IIf(IntX==109,V,0))*(IntX==109)
> + Cum(IIf(IntX==110,V,0))*(IntX==110)
> + Cum(IIf(IntX==111,V,0))*(IntX==111)
> + Cum(IIf(IntX==112,V,0))*(IntX==112)
> + Cum(IIf(IntX==113,V,0))*(IntX==113)
> + Cum(IIf(IntX==114,V,0))*(IntX==114)
> + Cum(IIf(IntX==115,V,0))*(IntX==115)
> + Cum(IIf(IntX==116,V,0))*(IntX==116)
> + Cum(IIf(IntX==117,V,0))*(IntX==117)
> + Cum(IIf(IntX==118,V,0))*(IntX==118)
> + Cum(IIf(IntX==119,V,0))*(IntX==119)
> + Cum(IIf(IntX==120,V,0))*(IntX==120)
> + Cum(IIf(IntX==121,V,0))*(IntX==121)
> + Cum(IIf(IntX==122,V,0))*(IntX==122)
> + Cum(IIf(IntX==123,V,0))*(IntX==123)
> + Cum(IIf(IntX==124,V,0))*(IntX==124)
> + Cum(IIf(IntX==125,V,0))*(IntX==125)
> + Cum(IIf(IntX==126,V,0))*(IntX==126)
> + Cum(IIf(IntX==127,V,0))*(IntX==127)
> + Cum(IIf(IntX==128,V,0))*(IntX==128)
> + Cum(IIf(IntX==129,V,0))*(IntX==129)
> + Cum(IIf(IntX==130,V,0))*(IntX==130)
> + Cum(IIf(IntX==131,V,0))*(IntX==131)
> + Cum(IIf(IntX==132,V,0))*(IntX==132)
> + Cum(IIf(IntX==133,V,0))*(IntX==133)
> + Cum(IIf(IntX==134,V,0))*(IntX==134)
> + Cum(IIf(IntX==135,V,0))*(IntX==135)
> + Cum(IIf(IntX==136,V,0))*(IntX==136)
> + Cum(IIf(IntX==137,V,0))*(IntX==137)
> + Cum(IIf(IntX==138,V,0))*(IntX==138)
> + Cum(IIf(IntX==139,V,0))*(IntX==139)
> + Cum(IIf(IntX==140,V,0))*(IntX==140)
> + Cum(IIf(IntX==141,V,0))*(IntX==141)
> + Cum(IIf(IntX==142,V,0))*(IntX==142)
> + Cum(IIf(IntX==143,V,0))*(IntX==143)
> + Cum(IIf(IntX==144,V,0))*(IntX==144)
> + Cum(IIf(IntX==145,V,0))*(IntX==145)
> + Cum(IIf(IntX==146,V,0))*(IntX==146)
> + Cum(IIf(IntX==147,V,0))*(IntX==147)
> + Cum(IIf(IntX==148,V,0))*(IntX==148)
> + Cum(IIf(IntX==149,V,0))*(IntX==149)
> + Cum(IIf(IntX==150,V,0))*(IntX==150)
> + Cum(IIf(IntX==151,V,0))*(IntX==151)
> + Cum(IIf(IntX==152,V,0))*(IntX==152)
> + Cum(IIf(IntX==153,V,0))*(IntX==153)
> + Cum(IIf(IntX==154,V,0))*(IntX==154)
> + Cum(IIf(IntX==155,V,0))*(IntX==155)
> + Cum(IIf(IntX==156,V,0))*(IntX==156)
> + Cum(IIf(IntX==157,V,0))*(IntX==157)
> + Cum(IIf(IntX==158,V,0))*(IntX==158)
> + Cum(IIf(IntX==159,V,0))*(IntX==159)
> + Cum(IIf(IntX==160,V,0))*(IntX==160)
> + Cum(IIf(IntX==161,V,0))*(IntX==161)
> + Cum(IIf(IntX==162,V,0))*(IntX==162)
> + Cum(IIf(IntX==163,V,0))*(IntX==163)
> + Cum(IIf(IntX==164,V,0))*(IntX==164)
> + Cum(IIf(IntX==165,V,0))*(IntX==165)
> + Cum(IIf(IntX==166,V,0))*(IntX==166)
> + Cum(IIf(IntX==167,V,0))*(IntX==167)
> + Cum(IIf(IntX==168,V,0))*(IntX==168)
> + Cum(IIf(IntX==169,V,0))*(IntX==169)
> + Cum(IIf(IntX==170,V,0))*(IntX==170)
> + Cum(IIf(IntX==171,V,0))*(IntX==171)
> + Cum(IIf(IntX==172,V,0))*(IntX==172)
> + Cum(IIf(IntX==173,V,0))*(IntX==173)
> + Cum(IIf(IntX==174,V,0))*(IntX==174)
> + Cum(IIf(IntX==175,V,0))*(IntX==175)
> + Cum(IIf(IntX==176,V,0))*(IntX==176)
> + Cum(IIf(IntX==177,V,0))*(IntX==177)
> + Cum(IIf(IntX==178,V,0))*(IntX==178)
> + Cum(IIf(IntX==179,V,0))*(IntX==179)
> + Cum(IIf(IntX==180,V,0))*(IntX==180)
> + Cum(IIf(IntX==181,V,0))*(IntX==181)
> + Cum(IIf(IntX==182,V,0))*(IntX==182)
> + Cum(IIf(IntX==183,V,0))*(IntX==183)
> + Cum(IIf(IntX==184,V,0))*(IntX==184)
> + Cum(IIf(IntX==185,V,0))*(IntX==185)
> + Cum(IIf(IntX==186,V,0))*(IntX==186)
> + Cum(IIf(IntX==187,V,0))*(IntX==187)
> + Cum(IIf(IntX==188,V,0))*(IntX==188)
> + Cum(IIf(IntX==189,V,0))*(IntX==189)
> + Cum(IIf(IntX==190,V,0))*(IntX==190)
> + Cum(IIf(IntX==191,V,0))*(IntX==191)
> + Cum(IIf(IntX==192,V,0))*(IntX==192)
> + Cum(IIf(IntX==193,V,0))*(IntX==193)
> + Cum(IIf(IntX==194,V,0))*(IntX==194)
> + Cum(IIf(IntX==195,V,0))*(IntX==195)
> + Cum(IIf(IntX==196,V,0))*(IntX==196)
> + Cum(IIf(IntX==197,V,0))*(IntX==197)
> + Cum(IIf(IntX==198,V,0))*(IntX==198)
> + Cum(IIf(IntX==199,V,0))*(IntX==199)
> + Cum(IIf(IntX==200,V,0))*(IntX==200)
> + Cum(IIf(IntX==201,V,0))*(IntX==201)
> + Cum(IIf(IntX==202,V,0))*(IntX==202)
> + Cum(IIf(IntX==203,V,0))*(IntX==203)
> + Cum(IIf(IntX==204,V,0))*(IntX==204)
> + Cum(IIf(IntX==205,V,0))*(IntX==205)
> + Cum(IIf(IntX==206,V,0))*(IntX==206)
> + Cum(IIf(IntX==207,V,0))*(IntX==207)
> + Cum(IIf(IntX==208,V,0))*(IntX==208)
> + Cum(IIf(IntX==209,V,0))*(IntX==209)
> + Cum(IIf(IntX==210,V,0))*(IntX==210)
> + Cum(IIf(IntX==211,V,0))*(IntX==211)
> + Cum(IIf(IntX==212,V,0))*(IntX==212)
> + Cum(IIf(IntX==213,V,0))*(IntX==213)
> + Cum(IIf(IntX==214,V,0))*(IntX==214)
> + Cum(IIf(IntX==215,V,0))*(IntX==215)
> + Cum(IIf(IntX==216,V,0))*(IntX==216)
> + Cum(IIf(IntX==217,V,0))*(IntX==217)
> + Cum(IIf(IntX==218,V,0))*(IntX==218)
> + Cum(IIf(IntX==219,V,0))*(IntX==219)
> + Cum(IIf(IntX==220,V,0))*(IntX==220)
> + Cum(IIf(IntX==221,V,0))*(IntX==221)
> + Cum(IIf(IntX==222,V,0))*(IntX==222)
> + Cum(IIf(IntX==223,V,0))*(IntX==223)
> + Cum(IIf(IntX==224,V,0))*(IntX==224)
> + Cum(IIf(IntX==225,V,0))*(IntX==225)
> + Cum(IIf(IntX==226,V,0))*(IntX==226)
> + Cum(IIf(IntX==227,V,0))*(IntX==227)
> + Cum(IIf(IntX==228,V,0))*(IntX==228)
> + Cum(IIf(IntX==229,V,0))*(IntX==229)
> + Cum(IIf(IntX==230,V,0))*(IntX==230)
> + Cum(IIf(IntX==231,V,0))*(IntX==231)
> + Cum(IIf(IntX==232,V,0))*(IntX==232)
> + Cum(IIf(IntX==233,V,0))*(IntX==233)
> + Cum(IIf(IntX==234,V,0))*(IntX==234)
> + Cum(IIf(IntX==235,V,0))*(IntX==235)
> + Cum(IIf(IntX==236,V,0))*(IntX==236)
> + Cum(IIf(IntX==237,V,0))*(IntX==237)
> + Cum(IIf(IntX==238,V,0))*(IntX==238)
> + Cum(IIf(IntX==239,V,0))*(IntX==239)
> + Cum(IIf(IntX==240,V,0))*(IntX==240)
> + Cum(IIf(IntX==241,V,0))*(IntX==241)
> + Cum(IIf(IntX==242,V,0))*(IntX==242)
> + Cum(IIf(IntX==243,V,0))*(IntX==243)
> + Cum(IIf(IntX==244,V,0))*(IntX==244)
> + Cum(IIf(IntX==245,V,0))*(IntX==245)
> + Cum(IIf(IntX==246,V,0))*(IntX==246)
> + Cum(IIf(IntX==247,V,0))*(IntX==247)
> + Cum(IIf(IntX==248,V,0))*(IntX==248)
> + Cum(IIf(IntX==249,V,0))*(IntX==249)
> + Cum(IIf(IntX==250,V,0))*(IntX==250)
> + Cum(IIf(IntX==251,V,0))*(IntX==251)
> + Cum(IIf(IntX==252,V,0))*(IntX==252)
> + Cum(IIf(IntX==253,V,0))*(IntX==253)
> + Cum(IIf(IntX==254,V,0))*(IntX==254)
> + Cum(IIf(IntX==255,V,0))*(IntX==255)
> + Cum(IIf(IntX==256,V,0))*(IntX==256)
> + Cum(IIf(IntX==257,V,0))*(IntX==257)
> + Cum(IIf(IntX==258,V,0))*(IntX==258)
> + Cum(IIf(IntX==259,V,0))*(IntX==259)
> + Cum(IIf(IntX==260,V,0))*(IntX==260)
> + Cum(IIf(IntX==261,V,0))*(IntX==261)
> + Cum(IIf(IntX==262,V,0))*(IntX==262)
> + Cum(IIf(IntX==263,V,0))*(IntX==263)
> + Cum(IIf(IntX==264,V,0))*(IntX==264)
> + Cum(IIf(IntX==265,V,0))*(IntX==265)
> + Cum(IIf(IntX==266,V,0))*(IntX==266)
> + Cum(IIf(IntX==267,V,0))*(IntX==267)
> + Cum(IIf(IntX==268,V,0))*(IntX==268)
> + Cum(IIf(IntX==269,V,0))*(IntX==269)
> + Cum(IIf(IntX==270,V,0))*(IntX==270)
> + Cum(IIf(IntX==271,V,0))*(IntX==271)
> + Cum(IIf(IntX==272,V,0))*(IntX==272)
> + Cum(IIf(IntX==273,V,0))*(IntX==273)
> + Cum(IIf(IntX==274,V,0))*(IntX==274)
> + Cum(IIf(IntX==275,V,0))*(IntX==275)
> + Cum(IIf(IntX==276,V,0))*(IntX==276)
> + Cum(IIf(IntX==277,V,0))*(IntX==277)
> + Cum(IIf(IntX==278,V,0))*(IntX==278)
> + Cum(IIf(IntX==279,V,0))*(IntX==279)
> + Cum(IIf(IntX==280,V,0))*(IntX==280)
> + Cum(IIf(IntX==281,V,0))*(IntX==281)
> + Cum(IIf(IntX==282,V,0))*(IntX==282)
> + Cum(IIf(IntX==283,V,0))*(IntX==283)
> + Cum(IIf(IntX==284,V,0))*(IntX==284)
> + Cum(IIf(IntX==285,V,0))*(IntX==285)
> + Cum(IIf(IntX==286,V,0))*(IntX==286)
> + Cum(IIf(IntX==287,V,0))*(IntX==287)
> + Cum(IIf(IntX==288,V,0))*(IntX==288)
> + Cum(IIf(IntX==289,V,0))*(IntX==289)
> + Cum(IIf(IntX==290,V,0))*(IntX==290)
> + Cum(IIf(IntX==291,V,0))*(IntX==291)
> + Cum(IIf(IntX==292,V,0))*(IntX==292)
> + Cum(IIf(IntX==293,V,0))*(IntX==293)
> + Cum(IIf(IntX==294,V,0))*(IntX==294)
> + Cum(IIf(IntX==295,V,0))*(IntX==295)
> + Cum(IIf(IntX==296,V,0))*(IntX==296)
> + Cum(IIf(IntX==297,V,0))*(IntX==297)
> + Cum(IIf(IntX==298,V,0))*(IntX==298)
> + Cum(IIf(IntX==299,V,0))*(IntX==299)
> + Cum(IIf(IntX==300,V,0))*(IntX==300)
> + Cum(IIf(IntX==301,V,0))*(IntX==301)
> + Cum(IIf(IntX==302,V,0))*(IntX==302)
> + Cum(IIf(IntX==303,V,0))*(IntX==303)
> + Cum(IIf(IntX==304,V,0))*(IntX==304)
> + Cum(IIf(IntX==305,V,0))*(IntX==305)
> + Cum(IIf(IntX==306,V,0))*(IntX==306)
> + Cum(IIf(IntX==307,V,0))*(IntX==307)
> + Cum(IIf(IntX==308,V,0))*(IntX==308)
> + Cum(IIf(IntX==309,V,0))*(IntX==309)
> + Cum(IIf(IntX==310,V,0))*(IntX==310)
> + Cum(IIf(IntX==311,V,0))*(IntX==311)
> + Cum(IIf(IntX==312,V,0))*(IntX==312)
> + Cum(IIf(IntX==313,V,0))*(IntX==313)
> + Cum(IIf(IntX==314,V,0))*(IntX==314)
> + Cum(IIf(IntX==315,V,0))*(IntX==315)
> + Cum(IIf(IntX==316,V,0))*(IntX==316)
> + Cum(IIf(IntX==317,V,0))*(IntX==317)
> + Cum(IIf(IntX==318,V,0))*(IntX==318)
> + Cum(IIf(IntX==319,V,0))*(IntX==319)
> + Cum(IIf(IntX==320,V,0))*(IntX==320)
> + Cum(IIf(IntX==321,V,0))*(IntX==321)
> + Cum(IIf(IntX==322,V,0))*(IntX==322)
> + Cum(IIf(IntX==323,V,0))*(IntX==323)
> + Cum(IIf(IntX==324,V,0))*(IntX==324)
> + Cum(IIf(IntX==325,V,0))*(IntX==325)
> + Cum(IIf(IntX==326,V,0))*(IntX==326)
> + Cum(IIf(IntX==327,V,0))*(IntX==327)
> + Cum(IIf(IntX==328,V,0))*(IntX==328)
> + Cum(IIf(IntX==329,V,0))*(IntX==329)
> + Cum(IIf(IntX==330,V,0))*(IntX==330)
> + Cum(IIf(IntX==331,V,0))*(IntX==331)
> + Cum(IIf(IntX==332,V,0))*(IntX==332)
> + Cum(IIf(IntX==333,V,0))*(IntX==333)
> + Cum(IIf(IntX==334,V,0))*(IntX==334)
> + Cum(IIf(IntX==335,V,0))*(IntX==335)
> + Cum(IIf(IntX==336,V,0))*(IntX==336)
> + Cum(IIf(IntX==337,V,0))*(IntX==337)
> + Cum(IIf(IntX==338,V,0))*(IntX==338)
> + Cum(IIf(IntX==339,V,0))*(IntX==339)
> + Cum(IIf(IntX==340,V,0))*(IntX==340)
> + Cum(IIf(IntX==341,V,0))*(IntX==341)
> + Cum(IIf(IntX==342,V,0))*(IntX==342)
> + Cum(IIf(IntX==343,V,0))*(IntX==343)
> + Cum(IIf(IntX==344,V,0))*(IntX==344)
> + Cum(IIf(IntX==345,V,0))*(IntX==345)
> + Cum(IIf(IntX==346,V,0))*(IntX==346)
> + Cum(IIf(IntX==347,V,0))*(IntX==347)
> + Cum(IIf(IntX==348,V,0))*(IntX==348)
> + Cum(IIf(IntX==349,V,0))*(IntX==349)
> + Cum(IIf(IntX==350,V,0))*(IntX==350)
> + Cum(IIf(IntX==351,V,0))*(IntX==351)
> + Cum(IIf(IntX==352,V,0))*(IntX==352)
> + Cum(IIf(IntX==353,V,0))*(IntX==353)
> + Cum(IIf(IntX==354,V,0))*(IntX==354)
> + Cum(IIf(IntX==355,V,0))*(IntX==355)
> + Cum(IIf(IntX==356,V,0))*(IntX==356)
> + Cum(IIf(IntX==357,V,0))*(IntX==357)
> + Cum(IIf(IntX==358,V,0))*(IntX==358)
> + Cum(IIf(IntX==359,V,0))*(IntX==359)
> + Cum(IIf(IntX==360,V,0))*(IntX==360)
> + Cum(IIf(IntX==361,V,0))*(IntX==361)
> + Cum(IIf(IntX==362,V,0))*(IntX==362)
> + Cum(IIf(IntX==363,V,0))*(IntX==363)
> + Cum(IIf(IntX==364,V,0))*(IntX==364)
> + Cum(IIf(IntX==365,V,0))*(IntX==365)
> + Cum(IIf(IntX==366,V,0))*(IntX==366)
> + Cum(IIf(IntX==367,V,0))*(IntX==367)
> + Cum(IIf(IntX==368,V,0))*(IntX==368)
> + Cum(IIf(IntX==369,V,0))*(IntX==369)
> + Cum(IIf(IntX==370,V,0))*(IntX==370)
> + Cum(IIf(IntX==371,V,0))*(IntX==371)
> );
>
>
> Vday = TimeFrameExpand(TimeFrameCompress( Vcum, inDaily,
> compressVolume ), inDaily, expandFirst );
> mycolor=IIf(Hour()<12, colorBlue,
> IIf(Hour()>=12 AND Hour()<14,colorRed,
> IIf(Hour()>=14 AND Hour()<16,colorGreen,
> colorBlack)));
> Plot(Vcum/Vday*100, "Vavg", mycolor, styleArea);
>
> _N(Title = "{{NAME}} -{{INTERVAL}} {{DATE}} - Average Activity
{{VALUES}} ");
>
> //--Indicator-End--
> "period number = " + intx;
> "Volume " + WriteVal(V,1);
>
> _SECTION_END();
>
> On 7/17/05, jism1992 <gdihia@xxxx> wrote:
> > I would like to know if there is AB indicator that resembles this
> > TradeStation indicator:
> >
> > This indicator plots the cumulative intraday volume through the
time
> > of each bar (VolSum) and the average cumulative intraday volume
> > through the same time of day (VolSumAvg). This allows the user to
> > compare the day's volume up to the current time with the average
> > volume of the last N days through the same time of day. An input
> > allows the user to set the number of days of data to average into
> > the VolSumAvg.
> >
> > Input: DaysToAvg(3);
> > Vars: LenOfDay(0), BarsPerDay(0), VolSumToAvg(0), VolSum(0),
> > VolSumAvg(0);
> >
> > If BarType = 1 then begin
> >
> > LenOfDay = TimeToMinutes(Sess1EndTime) - TimeToMinutes
> > (Sess1StartTime);
> > BarsPerDay = LenOfDay/BarInterval;
> > VolSumToAvg = 0;
> >
> > If Date <> Date[1] then
> > VolSum = Ticks
> > else
> > VolSum = VolSum + Ticks;
> >
> > For Value1 = 1 to DaysToAvg begin
> > VolSumToAvg = VolSumToAvg + VolSum
> > [BarsPerDay*Value1];
> > end;
> >
> > VolSumAvg = VolSumToAvg / DaysToAvg;
> >
> > Plot1(VolSum, "VolSum");
> > If BarNumber > BarsperDay * DaysToAvg then
> > Plot2(VolSumAvg, "VolSumAvg");
> >
> > end;
> >
> > Al,
> > Thanks.
> >
> >
> >
> >
> >
> > Please note that this group is for discussion between users only.
> >
> > To get support from AmiBroker please send an e-mail directly to
> > SUPPORT {at} amibroker.com
> >
> > For other support material please check also:
> > http://www.amibroker.com/support.html
> >
> >
> > Yahoo! Groups Links
> >
> >
> >
> >
> >
> >
> >
> >
>
>
> --
> Cheers
> Graham
> http://e-wire.net.au/~eb_kavan/
------------------------ Yahoo! Groups Sponsor --------------------~-->
Try Online Currency Trading with GFT. Free 50K Demo. Trade
24 Hours. Commission-Free.
http://us.click.yahoo.com/DldnlA/9M2KAA/U1CZAA/GHeqlB/TM
--------------------------------------------------------------------~->
Please note that this group is for discussion between users only.
To get support from AmiBroker please send an e-mail directly to
SUPPORT {at} amibroker.com
For other support material please check also:
http://www.amibroker.com/support.html
Yahoo! Groups Links
<*> To visit your group on the web, go to:
http://groups.yahoo.com/group/amibroker/
<*> To unsubscribe from this group, send an email to:
amibroker-unsubscribe@xxxxxxxxxxxxxxx
<*> Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/
|