Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Problem with Strategies over indexes

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

    Problem with Strategies over indexes

    Hello,

    I am testing some strategies over forex and futures and they work good.
    However they don't work over indexes ( DJIA, SP500, NDX, ...), only plotting.
    (I have tested standard strategies like SampleMACrossOver)

    pls, any idea ?

    Thanks very much.
    Attached Files

    #2
    If you run a modified version of SampleMACrossOver with TraceOrders = true you will see the reason.

    You should get this message: 4/18/2008 12:58:00 PM Ignored PlaceOrder() method: Action=Buy OrderType=Market Quantity=1 LimitPrice=0 StopPrice=0 SignalName='' FromEntrySignal='' Reason='You can not place order for index instruments'
    Josh P.NinjaTrader Customer Service

    Comment


      #3
      Thanks Josh

      Comment


        #4
        I found a workaround for this issue. Create a new instrument for your index. I created one named "SPX" and set the instrument to be a Stock type and setup the Yahoo symbol for the index (^GSPC) on the "virtual stock". Then, when downloading the data for the instrument, it gets the index data from Yahoo, but NT treats it as a stock, so it allows "trading the index" for backtesting purposes. I needed this because I had to compare trading the "pure index" to several derivatives that track it.

        Comment

        Latest Posts

        Collapse

        Topics Statistics Last Post
        Started by Haiasi, 04-25-2024, 06:53 PM
        2 responses
        16 views
        0 likes
        Last Post Massinisa  
        Started by Creamers, Today, 05:32 AM
        0 responses
        4 views
        0 likes
        Last Post Creamers  
        Started by Segwin, 05-07-2018, 02:15 PM
        12 responses
        1,785 views
        0 likes
        Last Post Leafcutter  
        Started by poplagelu, Today, 05:00 AM
        0 responses
        3 views
        0 likes
        Last Post poplagelu  
        Started by fx.practic, 10-15-2013, 12:53 AM
        5 responses
        5,407 views
        0 likes
        Last Post Bidder
        by Bidder
         
        Working...
        X