Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Is there a way to know which side I got the fill ?....

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    Is there a way to know which side I got the fill ?....

    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

    #2
    Code:
    if(Position.MarketPosition==MarketPosition.Flat)
    {
          //do something
    }
    You can do MarketPosition.Flat or .Short or .Long
    Josh P.NinjaTrader Customer Service

    Comment


      #3
      thank you for your help dear friend

      will try asap

      GS

      Comment

      Latest Posts

      Collapse

      Topics Statistics Last Post
      Started by charlesugo_1, 05-26-2026, 05:03 PM
      0 responses
      52 views
      0 likes
      Last Post charlesugo_1  
      Started by DannyP96, 05-18-2026, 02:38 PM
      1 response
      142 views
      0 likes
      Last Post NinjaTrader_ChelseaB  
      Started by CarlTrading, 05-11-2026, 05:56 AM
      0 responses
      160 views
      0 likes
      Last Post CarlTrading  
      Started by CarlTrading, 05-10-2026, 08:12 PM
      0 responses
      96 views
      0 likes
      Last Post CarlTrading  
      Started by Hwop38, 05-04-2026, 07:02 PM
      0 responses
      276 views
      0 likes
      Last Post Hwop38
      by Hwop38
       
      Working...
      X