Ronin13
Member
hi all
i have an order set as such:
it works, but crudely.
because the closing price naturally overshoots my set stop point (typically set at 10 futures points), triggers my stop addorder stop and closes out my position a some points either above or below my actual intended stop.
is there a way i can refine my stoploss addorders to close me at exactly 10 points above or below my entry?
thanks!
i have an order set as such:
Ruby:
AddOrder(OrderType.BUY_AUTO, RSI crosses above oversold, close, quantity, Color.GREEN, Color.GREEN, name = "BTO");
AddOrder(OrderType.SELL_AUTO, RSI crosses below overbought, close, quantity, Color.RED, Color.RED, name = "STO");
AddOrder(OrderType.SELL_TO_CLOSE, useStopLoss and close < EntryPrice() - stoploss_pts, open[-1], name = "BTO_STP");
AddOrder(OrderType.BUY_TO_CLOSE, useStopLoss and close > EntryPrice() + stoploss_pts, open[-1], name = "STO_STP");
it works, but crudely.
because the closing price naturally overshoots my set stop point (typically set at 10 futures points), triggers my stop addorder stop and closes out my position a some points either above or below my actual intended stop.
is there a way i can refine my stoploss addorders to close me at exactly 10 points above or below my entry?
thanks!