I got this when trying to use the function: --------- NameError: global name 'order_target_value' is not defined global name 'order_target_value' is not defined
If you are referring to the blueshift platform, before you can use the function, you need to first import it (like any other library functions in Python) from the correct module. At the top of your code, add the following:
from zipline.api import order_target_value
That should fix this error. If it continues to persist, please write to blueshift-support@quantinsti.com with a sample strategy that can reproduce the error.
Thank you for figuring this out even from very little context. It did work.
Didnt debug enough earlier!
btw, shouldnt you have a tag defined in this message board for blueshift postings.
Oh I totally understand - debugging support on blueshift is pretty horrible as it is today. Hopefully this will change in a while.
The idea for a blueshift tag is a great one! Let me check if we can introduce one asap. Thx vm. for your suggestion.