Is it possible in Ninjascript to identify if a position has an associated stop loss order? I use a stop loss in some instances and not in some. If I knew whether a particular position has an associated stop loss, I can do things differently. For example, maybe I would like to set a stop limit order at a point when I feel I could get the best price for the position. If the position has an associated stop order, the exit<>stoplimit orders are rejected. Due to the asynchronous nature of the feedback (of rejection of the order), it is too late for me to do anything about it. I tried keeping track of this in global variables, etc., but that is poor programming and source of bugs. Instead, if there was a way to ask the position object itself whether there is an associated stop loss and the stop loss price, one can determine next steps much more easily.
Thanks.
PR

Comment