san francisco, ca
Posts: 1 since Oct 2014
Thanks Given: 0
Thanks Received: 0
|
I'm having trouble formulating exit order for Thinkscript strategy. I have entry using RSI, which is fairly straightforward:
AddOrder(OrderType.BUY_TO_OPEN, rsi crosses above over_bought, tickColor = GetColor(0), open[-1], arrowColor = GetColor(0), name = "Long Entry");
but I would like add a Buy_to_close order once the bid price passes a certain number of points above the price at which the Buy_to_open order was entered. I can't seem to figure out how to reference the buy_to_order price.
Any thoughts? Thanks.
|