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 DJ888, Yesterday, 10:57 PM
        0 responses
        6 views
        0 likes
        Last Post DJ888
        by DJ888
         
        Started by MacDad, 02-25-2024, 11:48 PM
        7 responses
        158 views
        0 likes
        Last Post loganjarosz123  
        Started by Belfortbucks, Yesterday, 09:29 PM
        0 responses
        7 views
        0 likes
        Last Post Belfortbucks  
        Started by zstheorist, Yesterday, 07:52 PM
        0 responses
        7 views
        0 likes
        Last Post zstheorist  
        Started by pmachiraju, 11-01-2023, 04:46 AM
        8 responses
        151 views
        0 likes
        Last Post rehmans
        by rehmans
         
        Working...
        X