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 Stanfillirenfro, Today, 07:23 AM
            1 response
            4 views
            0 likes
            Last Post NinjaTrader_Gaby  
            Started by cmtjoancolmenero, Yesterday, 03:58 PM
            2 responses
            22 views
            0 likes
            Last Post cmtjoancolmenero  
            Started by olisav57, Yesterday, 07:39 PM
            1 response
            9 views
            0 likes
            Last Post NinjaTrader_ChelseaB  
            Started by cocoescala, 10-12-2018, 11:02 PM
            7 responses
            944 views
            0 likes
            Last Post Jquiroz1975  
            Started by oviejo, Today, 12:28 AM
            1 response
            12 views
            0 likes
            Last Post NinjaTrader_Gaby  
            Working...
            X