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 arvidvanstaey, Today, 02:19 PM
      4 responses
      11 views
      0 likes
      Last Post arvidvanstaey  
      Started by samish18, 04-17-2024, 08:57 AM
      16 responses
      60 views
      0 likes
      Last Post samish18  
      Started by jordanq2, Today, 03:10 PM
      2 responses
      9 views
      0 likes
      Last Post jordanq2  
      Started by traderqz, Today, 12:06 AM
      10 responses
      18 views
      0 likes
      Last Post traderqz  
      Started by algospoke, 04-17-2024, 06:40 PM
      5 responses
      47 views
      0 likes
      Last Post NinjaTrader_Jesse  
      Working...
      X