I think I am having a little problem with my static var code. I expected to
see in an exploration with the variable "onshort" a value of 1 when a short
trade is on. Instead all I see is zeros in the exploration. I am not sure
why. there are two parts to the code. If anyone can tell me what is  wrong
with this code it would be appreciated.  thanks

///part a--
StaticVarGet("onshort");



if( IsNull(  StaticVarGet("onshort"))) StaticVarSet("onshort",0);

Onshort= StaticVarGet("onshort");



//part b---

if (LastValue(Short))



{StaticVarSet("onshort",1);}

if (LastValue(Cover))



{StaticVarSet("onshort",0);}



StaticVarGet("onshort");

Reply via email to