mit dem die Plots rstellt wurden, ist dieser:
Meta:
§Synopsis( "The OCCO separates the price changes respectively contributed by open to close and close to open averaged over the given number of periods. The initial motivation for this plot is to show differences in price movement between regular and after hours (low volume) trading times. Thus the preferred unit period for this plot is the daily." ),
§ShortCode( "OCCO" ),
§SubChart( True );
Inputs:
§Period( 60 );
Variables:
§sumOC(0), sumCO(0), i;
§ sumOC = 0; sumCO = 0; For i = 0 To Period - 1 Begin
§sumOC = sumOC + Close[i] - Open[i];
§sumCO = sumCO + Open[i] - Close[i+1]; End;
sumOC = sumOC / Period; sumCO = sumCO / Period;
DrawLine(sumOC, "OpenToClose", StyleSolid, 1, green); DrawLine(sumCO, "CloseToOpen", StyleSolid, 1, red); DrawLine(sumOC-sumCO, "OpenToClose-CloseToOpen", StyleSolid, 1, black); DrawLine(sumOC+sumCO, "OpenToClose+CloseToOpen", StyleDot, 1, black);
|