♥ 0 |
Hi Pete After watching your video on Strategy and semi-auto videos, I wanted to use it to conditionally close a sell order purchased earlier, if by the end of the day, the ROC < 50 or if there was a small profit . I have the following code. I do not get the AddOrder text on the chart. Funny thing is the AddLabels are only displayed if the AddOrders are commented out. If I code the AddOrders are coded, the AddLabels are not displayed. So I think there is something wrong with my AddOrder but I cannot figure out, despite my AddLabels showing that it should work. Below is my code and I have attached a screen shot of the chart Thanks … Ratilal
<pre> input ROClength = 5; def roc = RateOfChange(ROClength, Roclength, price); # for debugging purpose only # stock is ENZ #AddOrder(OrderType.BUY_TO_CLOSE, buyswitch, price, quantity, Color.ORANGE, Color.ORANGE,”Sample buy @ ” + price);
</pre>
Marked as spam
|
Please log in to post questions.