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 DayTradingDEMON, Today, 09:28 AM
      3 responses
      19 views
      0 likes
      Last Post NinjaTrader_ChelseaB  
      Started by Stanfillirenfro, Today, 07:23 AM
      9 responses
      23 views
      0 likes
      Last Post NinjaTrader_ChelseaB  
      Started by George21, Today, 10:07 AM
      0 responses
      8 views
      0 likes
      Last Post George21  
      Started by navyguy06, Today, 09:28 AM
      1 response
      7 views
      0 likes
      Last Post NinjaTrader_Gaby  
      Started by cmtjoancolmenero, Yesterday, 03:58 PM
      8 responses
      34 views
      0 likes
      Last Post NinjaTrader_ChelseaB  
      Working...
      X