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

Place Order at Top of the BAR

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

    Place Order at Top of the BAR

    Hi,
    I have been trying to place long and short order at the top and bottom of the bars . Long at bottom of the green bar (shown on attached photo) and short at the top of the red bar (shown on attached photo). I have been trying to do this for long time, I have tried with stop, limit, MIT everything. But it does not work. I have tried with market playback, nothing happens. If anyone could guide me or advise me on this pls, will be appreciated.
    Attached Files

    #2
    Hello asmmbillah,

    Thank you for your note.

    From your screen shot this looks like a barstype which is not an accurate representation of price action, likley leading to the issue. What bar type is that?

    If you attempt what you're looking to do on a 1 minute chart, are you successful?

    I look forward to your reply.
    Alan P.NinjaTrader Customer Service

    Comment


      #3
      hi,

      Thanks for your reply. This is a renko bar. I am attaching a screenshot for ref. When I enable my strategy it shows like the screenshot for previous bars, bar after I enable it, it's a different story. I am trying to achieve placing the long and short orders like the screenshot. brick size 60 and trend threshold 120. Please advise.
      Attached Files

      Comment


        #4
        Hello asmmbillah,

        This would be expected because Renko Bars are not an accurate representation of price behavior.

        Renko Bars are manipulated for display and because the open of the renko bar appears on the chart at that price, that is not really where the market may be trading.

        This would be the same as Heiken Ashi bars, which I have attached a chart highlighting that point.

        If you wanted to run a strategy off Renko Bars, it would be important to add a secondary tick series to submit orders to, so historically you will get realistic historical prices and the entries will be correctly plotted on the chart. You can see the following example for adding a secondary series,

        You can submit orders to different Bars objects. This allows you the flexibility of submitting orders to different timeframes. Like in live trading, taking entry conditions from a 5min chart means executing your order as soon as possible instead of waiting until the next 5min bar starts building. You can achieve this by


        Please let us know if you need further assistance.
        Attached Files
        Alan P.NinjaTrader Customer Service

        Comment

        Latest Posts

        Collapse

        Topics Statistics Last Post
        Started by bortz, 11-06-2023, 08:04 AM
        47 responses
        1,602 views
        0 likes
        Last Post aligator  
        Started by jaybedreamin, Today, 05:56 PM
        0 responses
        8 views
        0 likes
        Last Post jaybedreamin  
        Started by DJ888, 04-16-2024, 06:09 PM
        6 responses
        18 views
        0 likes
        Last Post DJ888
        by DJ888
         
        Started by Jon17, Today, 04:33 PM
        0 responses
        4 views
        0 likes
        Last Post Jon17
        by Jon17
         
        Started by Javierw.ok, Today, 04:12 PM
        0 responses
        12 views
        0 likes
        Last Post Javierw.ok  
        Working...
        X