SeattleTrader20
New member
Good morning! Happy labor day! Quick question, has anybody ran into this issue with thinkscript:
I'm trying to AddOrder 1% below the daily open but when I do:
AddOrder(OrderType.BUY_AUTO, (open * 0.99));
It shows that I enter at the open price instead of entering 1% below the open.
However, when I do almost the same thing in studies:
plot line = (open * 0.99); the line gets plotted at the correct price; 1% below the open.
Does anybody know what the issue is? How can I get in 1% below the open?
I'm trying to AddOrder 1% below the daily open but when I do:
AddOrder(OrderType.BUY_AUTO, (open * 0.99));
It shows that I enter at the open price instead of entering 1% below the open.
However, when I do almost the same thing in studies:
plot line = (open * 0.99); the line gets plotted at the correct price; 1% below the open.
Does anybody know what the issue is? How can I get in 1% below the open?