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 CarlTrading, 03-31-2026, 09:41 PM
    1 response
    67 views
    0 likes
    Last Post NinjaTrader_ChelseaB  
    Started by CarlTrading, 04-01-2026, 02:41 AM
    0 responses
    36 views
    0 likes
    Last Post CarlTrading  
    Started by CaptainJack, 03-31-2026, 11:44 PM
    0 responses
    59 views
    1 like
    Last Post CaptainJack  
    Started by CarlTrading, 03-30-2026, 11:51 AM
    0 responses
    62 views
    0 likes
    Last Post CarlTrading  
    Started by CarlTrading, 03-30-2026, 11:48 AM
    0 responses
    53 views
    0 likes
    Last Post CarlTrading  
    Working...
    X