no qualifying symbols when using open price as qualifier

Hello,
one of the conditions I am using in 'is_symbol_qualified' is :
md.L1.open >= 3
when script is run, no symbol qualifies (content of symbol universe tab is empty).
If I disable this conditions, I get symbols qualifying.
Please advise.
Best,
Itay
Tagged:
Comments
You should try to use market data objects that are static through the day in your
is_symbol_qualified()
. More than likely, your strategy is being deployed prior to market open and at that pointmd.L1.open
is initialized to anan
.md.stat.prev_close
would be more appropriate for your use case.Thanks Memo,
makes sense.
I also tried
md.L1.last
and it doesn't work,do you think its also gets a
nan
value ?Best,
Itay
That is correct. You should use values that are static during the trading day in your
is_symbol_qualified()
method.Thanks Memo