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



    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 llanqui, Today, 03:53 AM
    0 responses
    6 views
    0 likes
    Last Post llanqui
    by llanqui
     
    Started by burtoninlondon, Today, 12:38 AM
    0 responses
    10 views
    0 likes
    Last Post burtoninlondon  
    Started by AaronKoRn, Yesterday, 09:49 PM
    0 responses
    15 views
    0 likes
    Last Post AaronKoRn  
    Started by carnitron, Yesterday, 08:42 PM
    0 responses
    11 views
    0 likes
    Last Post carnitron  
    Started by strategist007, Yesterday, 07:51 PM
    0 responses
    14 views
    0 likes
    Last Post strategist007  
    Working...
    X