Hello Q-World,
I want to get prices from history().
history() has a parameter called bar_count.
If I set bar_count=4 then I get 4 bars.
I want to pass the value of bar_count in a variable.
When I try to do that, I see an error:
history() parameter "bar_count" must be an int.
My enhancement request is:
Please allow me to set the value of bar_count with a variable rather than a hard-coded int.
In Python I can do this:
prices = history(bar_count=4, frequency='1d', field='price')
In Python I want to be able to do this:
is_rowcount = 4
prices = history(bar_count=is_rowcount, frequency='1d', field='price')
Dan