I just cannot find a way to create a symbol dynamically say
order_target_percent(symbol(get_current_symbol_str()), 1.0)
It seems the symbol and sid are macro functions and cannot used as normal python functions?
that also means we have to pre-define all symbols we might use? so the idea of scanner then trade based on the result is out of question?
The only way around the problem above I found so far would be
context.str_to_symbols = {
"MUX":symbol("MUX"),
"NFLX":symbol("NFLX"),
}
and the the get_current_symbol woulr return the symbol instead of str
Am I right?