PDA

View Full Version : Profit Target and Flag


Agamenon
11-08-2007, 01:23 PM
How i know when a SetProfitTarget (x) has been executed in my program? How could I trace SetProfitTarget Orders to change another var o change my strategy? It is possible? :confused:

NinjaTrader_Ray
11-08-2007, 01:41 PM
In 6.0, you can monitor the Position.Quantity property to see if that changes from bar to bar. Others then also check the PnL to see if a target or stop was hit.

In 6.5 this is a lot more straightforward in that you can monitor the OnOrderUpdate() method. Unfortunately, we do not have any reference samples showing this at this time. If you are an experienced programmer, you could Print() data within this method to see the output and work your way through it. We should have reference samples shortly.