how to identify if an order was closed by take profit

 

hi all,

does anybody knows if there is any parameter to find out if an order was closed by take profit?

I guess the alternative is to do the math calculation, but I rather avoid that due slippage.

I was searching the parameters with no positive result, any help? Thanks

 
pabloschiki wrote >>

hi all,

does anybody knows if there is any parameter to find out if an order was closed by take profit?

I guess the alternative is to do the math calculation, but I rather avoid that due slippage.

I was searching the parameters with no positive result, any help? Thanks

ok, I've found it

OrderComment(), "[tp]" )

thanks to all