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 Geovanny Suaza, 02-11-2026, 06:32 PM
      0 responses
      602 views
      0 likes
      Last Post Geovanny Suaza  
      Started by Geovanny Suaza, 02-11-2026, 05:51 PM
      0 responses
      347 views
      1 like
      Last Post Geovanny Suaza  
      Started by Mindset, 02-09-2026, 11:44 AM
      0 responses
      103 views
      0 likes
      Last Post Mindset
      by Mindset
       
      Started by Geovanny Suaza, 02-02-2026, 12:30 PM
      0 responses
      559 views
      1 like
      Last Post Geovanny Suaza  
      Started by RFrosty, 01-28-2026, 06:49 PM
      0 responses
      558 views
      1 like
      Last Post RFrosty
      by RFrosty
       
      Working...
      X