Announcement

Collapse

Looking for a User App or Add-On built by the NinjaTrader community?

Visit NinjaTrader EcoSystem and our free User App Share!

Have a question for the NinjaScript developer community? Open a new thread in our NinjaScript File Sharing Discussion Forum!
See more
See less

Partner 728x90

Collapse

How to auto exit in Renko bar chart?

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

    How to auto exit in Renko bar chart?

    Hi,
    My strategy uses renko bar for entries and calculateonbarclose set to true is a necessary requirement for the strategy to work, I want my strategy to start entering trades at 9:15 AM and exit all open positions at 3:15 PM, trade entries are working flawlessly but since renko bars can take any amount of time to complete, my exits are exceeding the time limit if current bar does not closes prior to 3:15 PM. Any body have any suggestions??

    Thanks in advance!!!

    #2
    Hello RC007,

    This would mean you are wanting to trigger actions intra-bar before the bar closes.

    For this I would recommend adding a 1 tick series to the script. Then trigger the action on the first tick received after 9:15 AM.

    Below is a link to a forum post with details about intra-bar granularity.


    As well as an example of a time filter.


    With the time filter, the tick received may not have an exact time 9:15:00. I would recommend triggering on only the first tick received with a time stamp greater than 9:15:00.
    Chelsea B.NinjaTrader Customer Service

    Comment


      #3
      Thanks

      Thanks ChelseaB,

      I added a 5 minute bar series and wrote the exit all trade strategy under that context and during backtest its working fine, I will have to check it once the market opens today and verify it works in real time or not?

      I followed these to figure it out:
      1: https://ninjatrader.com/support/foru...d.php?t=107044
      2: https://ninjatrader.com/support/foru...ead.php?t=5787

      Thanks again for your help!!!

      Comment

      Latest Posts

      Collapse

      Topics Statistics Last Post
      Started by LawrenHom, Today, 10:45 PM
      0 responses
      3 views
      0 likes
      Last Post LawrenHom  
      Started by love2code2trade, Yesterday, 01:45 PM
      4 responses
      28 views
      0 likes
      Last Post love2code2trade  
      Started by funk10101, Today, 09:43 PM
      0 responses
      7 views
      0 likes
      Last Post funk10101  
      Started by pkefal, 04-11-2024, 07:39 AM
      11 responses
      37 views
      0 likes
      Last Post jeronymite  
      Started by bill2023, Yesterday, 08:51 AM
      8 responses
      44 views
      0 likes
      Last Post bill2023  
      Working...
      X