PDA

View Full Version : Is there a way to know which side I got the fill ?....


gsmaster
08-05-2007, 02:39 PM
Hello Support,

How can I know if after using EnterLong.... or EnterShort.... I was filled ???

The methods return no value so I have no way to know if I got filled or not... is there a way to know?

Assume I get a given signal and for that signal I might go long or short depending on the market (kind of a straddle)... once that happens I have found no way to know if I got filled long or short... and hence I am not able to manage my strategy correctly ... any ideas?

Related to this there is another issue and that is since I dont know if I am long or short and after certain condition happen I would like to CLOSE my position so at this moment I am trying a Exitlong and Exitshort on the same condition but only the Exitlong get to work... Exitshort does not. (same behaviour as in one of my oldest threads).


Thank you for your help
GS

NinjaTrader_Josh
08-05-2007, 02:47 PM
if(Position.MarketPosition==MarketPosition.Flat)
{
//do something
}


You can do MarketPosition.Flat or .Short or .Long

gsmaster
08-06-2007, 04:34 AM
thank you for your help dear friend :D

will try asap

GS