Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Spread

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

    Spread

    Hi all,
    The backtest I found that SetProfitTarget does not spread, how to resolve this issue in FX markets?Thank you for your answer.

    #2
    rastotrader, welcome to the forums! Correct this is expected for backtesting (using the bid price), in realtime forward testing you would see the current bid / ask used - just include then the spread as slippage in your backtesting settings to gauge system quality then.
    BertrandNinjaTrader Customer Service

    Comment


      #3
      Bertrand thank you for the welcome, your answer is not good for me. When I use the sleep, the result will be correct?. How then Set.Profit.Target kept in reeal market, profit calculated price plus profit, or net profit?

      Comment


        #4
        rastotrader,

        Unfortunately I don't quite understand your question. When you add slippage, the idea is to mimic the spread in backtesting.
        Josh P.NinjaTrader Customer Service

        Comment


          #5
          I understand that the sleep model before the backtest. I wonder how Set.Profit.Target actually works. Calculating the real difference between profit or Average.Price + ProfitTarget only.

          Comment


            #6
            Sorry I am still not quite following you. SetProfitTarget() works by adding to your average entry price whatever target amount you defined out. If you wanted a 10% target, you get 10% on top of your entry price. If you wanted 10 tick target, you get 10 ticks on top.
            Josh P.NinjaTrader Customer Service

            Comment

            Latest Posts

            Collapse

            Topics Statistics Last Post
            Started by cls71, Today, 04:45 AM
            0 responses
            1 view
            0 likes
            Last Post cls71
            by cls71
             
            Started by mjairg, 07-20-2023, 11:57 PM
            3 responses
            213 views
            1 like
            Last Post PaulMohn  
            Started by TheWhiteDragon, 01-21-2019, 12:44 PM
            4 responses
            544 views
            0 likes
            Last Post PaulMohn  
            Started by GLFX005, Today, 03:23 AM
            0 responses
            3 views
            0 likes
            Last Post GLFX005
            by GLFX005
             
            Started by XXtrader, Yesterday, 11:30 PM
            2 responses
            12 views
            0 likes
            Last Post XXtrader  
            Working...
            X