Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Forex - Profit Gain

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

    Forex - Profit Gain

    Hello, I'm relatively new to using NinjaTrader, and I've been experimenting with the NinjaScript strategy editor, and I have a question regarding the usage of the Profit Gain function when back testing a Forex strategy.

    Does Profit Gain automatically take into consideration the Bid-Ask Spread in Forex or should I incorporate a few extra ticks/pips into my Profit Gain settings so that it covers the spread?

    Thank you.

    #2
    Hello,

    Thanks for the forum post and welcome to the NinjaTrader forums.

    You will be filled on the Ask price if going long and the bid price is going short in realtime.

    However in the backtest it always run on the price data you run into it. So if you set it to Last price it will fill at the last price in the backtester. So if you are backtesting you would need to add a tick or two if you want to account for this.

    I look forward to assisting you further.
    BrettNinjaTrader Product Management

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by Geovanny Suaza, 02-11-2026, 06:32 PM
    0 responses
    633 views
    0 likes
    Last Post Geovanny Suaza  
    Started by Geovanny Suaza, 02-11-2026, 05:51 PM
    0 responses
    364 views
    1 like
    Last Post Geovanny Suaza  
    Started by Mindset, 02-09-2026, 11:44 AM
    0 responses
    105 views
    0 likes
    Last Post Mindset
    by Mindset
     
    Started by Geovanny Suaza, 02-02-2026, 12:30 PM
    0 responses
    567 views
    1 like
    Last Post Geovanny Suaza  
    Started by RFrosty, 01-28-2026, 06:49 PM
    0 responses
    568 views
    1 like
    Last Post RFrosty
    by RFrosty
     
    Working...
    X