Code: Select all
input: lambda(0.1);
input: zeropoint(100);
var: Centerpoint(zeropoint);
if currentcontracts <> currentcontracts[1] then begin;
centerpoint = centerpoint * (1-lambda) + lambda * close;
end;
Further, rather than the close price in the above centerpoint formula, more accurately, I want to use the last price I traded at. Is there a keyword that will always generate the very last price that I traded at.
Thanks