Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

24 hour chart

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

    24 hour chart

    Is there a way to display a 24 hour chart for say e-mini NQ and have a strategy trade only from 9:00 AM to 4:00PM while still displaying the 24 hour chart?

    Or is there a sample code that tells the strategy to trade only during a certain timeframe while displaying the 24 hour chart?

    Thanks.

    #2
    Hello,

    Yes, you can do this Here is sample:
    DenNinjaTrader Customer Service

    Comment


      #3
      Thank you.

      Comment


        #4
        Is there a way to do this in the strategy wizard. For example if I want to close all positions on every Friday at 5:00 PM EST and begin trading again at 5:00 PM on Sundays. FOREX hours.

        I have tried to copy and paste the code from the example into the strategy I created using the strategy wizard and I am not doing it right, keep getting errors.

        Comment


          #5
          NTWolfe, you could setup time filter rules in the wizard as well -



          Just create a separate conditions for the End of day exit and issue ExitLong and ExitShort commands at this point to get flat (another way is just using ExitOnClose true as you start the strategy and then adjust the session begin / end times as needed).
          BertrandNinjaTrader Customer Service

          Comment

          Latest Posts

          Collapse

          Topics Statistics Last Post
          Started by trilliantrader, Yesterday, 03:01 PM
          3 responses
          30 views
          0 likes
          Last Post NinjaTrader_Clayton  
          Started by cmtjoancolmenero, Yesterday, 03:58 PM
          4 responses
          26 views
          0 likes
          Last Post NinjaTrader_ChelseaB  
          Started by Brevo, Today, 01:45 AM
          1 response
          14 views
          0 likes
          Last Post NinjaTrader_ChelseaB  
          Started by rjbtrade1, 11-30-2023, 04:38 PM
          2 responses
          74 views
          0 likes
          Last Post DavidHP
          by DavidHP
           
          Started by suroot, 04-10-2017, 02:18 AM
          5 responses
          3,022 views
          0 likes
          Last Post NinjaTrader_Gaby  
          Working...
          X