Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Adding more Slippage

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

    Adding more Slippage

    Hello and good afternoon,

    Im asking for your help regarding slippage.

    I see that in the defaultfilltype you are referencing:

    FillPrice = Math.Min(NextHigh, NextOpen + SlippagePoints);

    Is there a possibility to choose not the nexthigh or nextlow.
    Maybe the next 2 bars.

    Im testing with renko bars and want to add more slippage than the available nextbar.

    Thank You

    #2
    Hello hliboi,

    Thank you for your post.

    I am not familiar with any available doubles for the Open, High, Low or Close after next. However, I will look into this further and follow up with you when I have additional information.

    Comment


      #3
      Thank You Patrick

      Comment


        #4
        Hello hliboi,

        Thank you for your patience.

        The FillType Class is not documented and therefore neither are the functions or methods available. There is also not much that can be obtained from the Intellisense here either. This area is unsupported, and there would not be any outlets I am aware of for this information.

        However, I was able to test and confirm that using Strategy.Closes[0][-2] will work to pull the close after next. So the low after the next would be Strategy.Lows[0][-2].

        An example of using the close after next:
        Code:
        			if (order.OrderType == OrderType.Market)
        			{
        				FillPrice = Strategy.Closes[0][-2];
        			}

        Comment


          #5
          Hello Patrick,

          First of all thanks.

          As my problem with slippage was the time issue i also played with the settings of delay in the options menu giving me more slippage. Now it doesnt need a price to fill at that entry bar.

          Thanks

          Comment

          Latest Posts

          Collapse

          Topics Statistics Last Post
          Started by CarlTrading, 03-31-2026, 09:41 PM
          1 response
          67 views
          0 likes
          Last Post NinjaTrader_ChelseaB  
          Started by CarlTrading, 04-01-2026, 02:41 AM
          0 responses
          36 views
          0 likes
          Last Post CarlTrading  
          Started by CaptainJack, 03-31-2026, 11:44 PM
          0 responses
          59 views
          1 like
          Last Post CaptainJack  
          Started by CarlTrading, 03-30-2026, 11:51 AM
          0 responses
          62 views
          0 likes
          Last Post CarlTrading  
          Started by CarlTrading, 03-30-2026, 11:48 AM
          0 responses
          53 views
          0 likes
          Last Post CarlTrading  
          Working...
          X