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 fx.practic, 10-15-2013, 12:53 AM
            5 responses
            5,403 views
            0 likes
            Last Post Bidder
            by Bidder
             
            Started by Shai Samuel, 07-02-2022, 02:46 PM
            4 responses
            94 views
            0 likes
            Last Post Bidder
            by Bidder
             
            Started by DJ888, Yesterday, 10:57 PM
            0 responses
            6 views
            0 likes
            Last Post DJ888
            by DJ888
             
            Started by MacDad, 02-25-2024, 11:48 PM
            7 responses
            158 views
            0 likes
            Last Post loganjarosz123  
            Started by Belfortbucks, Yesterday, 09:29 PM
            0 responses
            8 views
            0 likes
            Last Post Belfortbucks  
            Working...
            X