Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Slippage in current price percents.

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

    Slippage in current price percents.

    Hello.
    I saw that slippage normally is set in ticks.
    How to set the slippage as a percent?

    #2
    Hello Czarek,

    Thank you for your post.

    Which slippage are you referring to? I suspect you might mean the slippage property used for calculations during backtests, though I would like to confirm to make sure we are discussing the same thing.

    If this is not what you mean, please provide a link to the page you saw or send a screenshot so I may better understand and assist you.
    • To send a screenshot with Windows 10 or newer I would recommend using the Windows Snipping Tool.
    • Alternatively to send a screenshot press Alt + PRINT SCREEN to take a screenshot of the selected window. Then go to Start--> Accessories--> Paint, and press CTRL + V to paste the image. Lastly, save it as a jpeg file and send the file as an attachment.
    ​I look forward to your reply.

    Comment


      #3
      Yes I mean slippage property and I already got it. Problem is that even i set very big slippage order is placed not lower than candle low.
      O would like to backtest scenario like on the image. I'm not sure I can set entry price outside the real prices range??


      Click image for larger version

Name:	image.png
Views:	119
Size:	65.8 KB
ID:	1254836

      Comment


        #4
        Hello Czarek,

        Thank you for your reply.

        As described on the page for historical fill processing, "Slippage can be added to your order fills to help mimic real market conditions. The value is expressed in "ticks", the minimum value of fluctuation for an instrument, and is only applied to market, stop-market and Market-if-touched orders. NinjaTrader will add the slippage to each order however you cannot have more slippage then the high/low price of the next bar."


        The way that the algorithm works for historical order fills, you are not able to get an entry price that extends beyond the high or low price of the next bar.

        Please let us know if we may be of further assistance.

        Comment


          #5
          Thanks for your reply.
          In this case I'm going to use StopLimit orders and entry position if price goes to my desired level.
          I would like to save to variable entry signal bar bar and then count number of bars to exit. How to save the entry signal bar to variable?

          Comment


            #6
            Hello Czarek,

            You would need to make an int variable and then assign the CurrentBar at the time of the event. To find the number of bars you would subtract your variable from the CurrentBar variable to get a number of bars.

            Comment

            Latest Posts

            Collapse

            Topics Statistics Last Post
            Started by NullPointStrategies, Today, 05:17 AM
            0 responses
            44 views
            0 likes
            Last Post NullPointStrategies  
            Started by argusthome, 03-08-2026, 10:06 AM
            0 responses
            124 views
            0 likes
            Last Post argusthome  
            Started by NabilKhattabi, 03-06-2026, 11:18 AM
            0 responses
            65 views
            0 likes
            Last Post NabilKhattabi  
            Started by Deep42, 03-06-2026, 12:28 AM
            0 responses
            42 views
            0 likes
            Last Post Deep42
            by Deep42
             
            Started by TheRealMorford, 03-05-2026, 06:15 PM
            0 responses
            46 views
            0 likes
            Last Post TheRealMorford  
            Working...
            X