龙听期货论坛's Archiver

C
+
+


 微信: QQ:

龙听 发表于 2022-11-3 13:27

【VWAP reset】

[code]
input:
    Price(AvgPrice),
    LocalHrsOffset(0),                       
    time1(0900),
    time2(0930),
    time3(1129),
    time4(1315),
    time5(1415),
    upColor(Cyan),
    dnColor(Magenta);

var:
    var0(0);
var0 = VWAPResettable(Price,LocalHrsOffset,time1,time2,time3,time4,time5);
plot1(var0,"vwap_reset");

var: var1(yellow);
if var0 > var0[1] then var1 = upColor;
if var0 < var0[1] then var1 = dnColor;
SetPlotColor(1,var1);
[/code]

页: [1]