Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Backtesting strategy on futures

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

    Backtesting strategy on futures

    Hello,
    I made a strategy myself that includes some sort of position sizing algorithm. When running the strategy on stocks everything works perfect using Close[0] as current price, but when I run it on futures, I woud have to know the margin and not the real value of the contract.
    Is there any way to check if the traded contract is a future and if it is, to access its margin?

    #2
    xToast,

    You can use : Instrument.MasterInstrument.InstrumentType

    http://www.ninjatrader.com/support/h...trument_in.htm

    MasterInstrument.Margin and MasterInstrument.Margin2 are unsupported, but you are free to try them out.
    Adam P.NinjaTrader Customer Service

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by Stanfillirenfro, Today, 03:41 AM
    2 responses
    15 views
    0 likes
    Last Post Stanfillirenfro  
    Started by trader3000a, Today, 04:16 AM
    1 response
    3 views
    0 likes
    Last Post NinjaTrader_Marco  
    Started by itsthefriz, Yesterday, 09:16 PM
    0 responses
    9 views
    0 likes
    Last Post itsthefriz  
    Started by schmidtbc16, Yesterday, 03:36 PM
    1 response
    13 views
    0 likes
    Last Post NinjaTrader_ChelseaB  
    Started by RT001, Yesterday, 03:25 PM
    2 responses
    20 views
    0 likes
    Last Post RT001
    by RT001
     
    Working...
    X