Row with zero value dropped in screener

Hi all, newbie here testing things out.

Given, Close(0) = @AllTimeHigh (i.e. the stock closed at ATH),

why does the screener simply not show zero for @drawdown? But instead completely drops the ticker.

@drawdown:(Close(0)/@AllTimeHigh-1)

(I couldn't find a similar problem posted in the forum)

Thanks!

@drawdown:(Close(0)/@AllTimeHigh-1) 

An assignment returns the value of the assignment - zero here (since Close(0) = @AllTimeHigh) - which is also false for rules. So the rule fails.

Try this instead,

@drawdown:(Close(0)/@AllTimeHigh-1) | True 
1 Like

Thanks for clarifying that WalterW!

1 Like

Note that both SetVar() and ShowVar() always return true and therefore won't behave like @var:

1 Like