Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Always use NQ data even when running the Strategy on MNQ

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

    Always use NQ data even when running the Strategy on MNQ

    Can someone point me to what I would need to do (correct links/articles) to have my Strategy calculate everything based on NQ data and not based on MNQ when my strategy is running on MNQ?

    I know I need to bring in the NQ data set.....but I need every calculation the strategy makes - every close, high, low, etc....to be based on NQ...not MNQ. Obviously it works fine when run on NQ.

    Unfortunately MNQ often has slightly different data.....so I have times when I am getting stopped out on MNQ but not on NQ....because of 1 point difference in stops, etc....those kind of things.....end up being long on NQ and short on MNQ or vice versa.

    #2
    Hello BigT4X,

    Thank you for your post.

    To pull in the NQ data, you would need to call AddDataSeries() in your strategy:
    From there, you would work with the BarsArray index, BarsInProgress, Opens/Highs/Lows/Closes, etc. in order to reference the NQ data rather than the primary instrument (MNQ in your case). This information is covered in the Multi-Time Frame & Instruments overview here:
    Although the following strategy sample does not use multiple instruments, it is relevant to show how to access and manage multiple series in a script:This idea could be applied to working with NQ data to generate orders on MNQ, for example.

    Please let us know if we may be of further assistance.

    Comment


      #3
      Similar scenario.....

      Could I run a Strategy on a NQ chart.....but all my orders based on NQ data for the Strategy on the NQ chart...... are sent as MNQ orders....including Stops? Targets? etc. Rather than pull in NQ data onto my MNQ chart/Strategy....

      So instead of sending orders for the chart the Strategy is attached to.....I am sending other symbol orders based on the data from the chart....

      So in theory the strategy attached to NQ but send orders for MES MNQ MYM etc....is this possible?
      Last edited by BigT4X; 08-04-2023, 02:31 PM.

      Comment


        #4
        Originally posted by BigT4X View Post
        Similar scenario.....

        Could I run a Strategy on a NQ chart.....but all my orders based on NQ data for the Strategy on the NQ chart...... are sent as MNQ orders....including Stops? Targets? etc. Rather than pull in NQ data onto my MNQ chart/Strategy....

        So instead of sending orders for the chart the Strategy is attached to.....I am sending other symbol orders based on the data from the chart....

        So in theory the strategy attached to NQ but send orders for MES MNQ MYM etc....is this possible?
        Hello BigT4X,

        Thank you for your reply.

        Yes, you could do this in the same way as described in my previous reply. If you apply a strategy to an NQ chart, then NQ would be the primary data series the strategy is running on. You could then use AddDataSeries() to add a series for the instrument you want to submit orders on. You could run calculations based on the primary series (the data from the chart) and then use order methods that submit to the desired BarsInProgress for the added instrument rather than submitting them to the instrument on the chart (in this case, NQ). Again, this information is detailed on the "Multi-Time Frame & Instruments" page here:Please let us know if we may be of further assistance.

        Comment

        Latest Posts

        Collapse

        Topics Statistics Last Post
        Started by NullPointStrategies, Today, 05:17 AM
        0 responses
        39 views
        0 likes
        Last Post NullPointStrategies  
        Started by argusthome, 03-08-2026, 10:06 AM
        0 responses
        124 views
        0 likes
        Last Post argusthome  
        Started by NabilKhattabi, 03-06-2026, 11:18 AM
        0 responses
        64 views
        0 likes
        Last Post NabilKhattabi  
        Started by Deep42, 03-06-2026, 12:28 AM
        0 responses
        41 views
        0 likes
        Last Post Deep42
        by Deep42
         
        Started by TheRealMorford, 03-05-2026, 06:15 PM
        0 responses
        46 views
        0 likes
        Last Post TheRealMorford  
        Working...
        X