♥ 0 |
Hello again, trying to figure out if I can create separate year, month and day inputs for the ‘GetYYYMMDD’ function, to appear in the Edit Studies / Customization window. Ideas to have 3 input fields. Just for ease of use purposes. Hoping you can point me in the right direction. Put Code and picture below. Thanks Again
#input anchorDate = 20191111; #def postAnchorDate = if GetYYYYMMDD() >= anchorDate then 1 else 0; #plot anchoredVWAP = TotalSum(if postAnchorDate and postAnchorTime then ((high+low+close)/3)*(volume) else 0)/TotalSum(if postAnchorDate and postAnchorTime then volume else 0); #anchoredVWAP.setStyle(Curve.Firm);
Marked as spam
|
Please log in to post questions.