• If this is your first visit, you will have to register before you can post. To view messages, please scroll below and select the forum that you would like to visits. Questions? Be sure to check out the Forum FAQ.

Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Drawing horizontal lines above/below price

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

    Drawing horizontal lines above/below price

    Hey traders,

    How would I go about developing a strategy that would draw a horizontal line at a certain amount of ticks above or below the current price, that moves/trails along with the price? I've played with the Strategy builder quite a bit and searched through the forums but couldn't come up with anything. To be even more specific, I'm using Renko bars, and would like to draw a horizontal line at a predefined amount of ticks above the current bar when the price is falling, and below the bars when the price is rising. Example, if I have a Renko bar that is set at 55 ticks, and the price is rising (the bars are green), I would want a horizontal line at precisely -55 ticks below the low of the current bar, and vise versa, Renko bar falling (red bars) with a horizontal line at +55 above the high of the current bar. In this example, the 55 tick above or below would be the point at when the Bars would reverse and print. That's about as clear as I can be about that. Hope this makes sense and any help would be much appreciated. Is this something that I can build with the strategy builder or does this require coding? If it's something I need to code then I'm poop out of luck. Thanks!

    #2
    Hello Sh00tHerMcGavin,

    In the Condition builder select Misc > Falling on the left, Equals in the center, and Misc > True on the right. (Falling will also be in the Misc section for the reverse condition)
    For the action select Drawing > Horizontal Line > Click set for the Y value > select Price > select Close, in the Offset select Ticks from the drop-down, type -55 in the value input field above.

    Below I am also including a public link to a video that explores the tools available in the Strategy Builder.
    https://youtu.be/HCyt90GAs9k
    Chelsea B.NinjaTrader Customer Service

    Comment


      #3
      It worked! Thank you ChelseaB! I was doing it the other way around, with True on the left = Rising/Falling on the right. Works like a charm, much appreciated.

      Comment

      Latest Posts

      Collapse

      Topics Statistics Last Post
      Started by Stefan1982, Today, 09:26 AM
      1 response
      15 views
      0 likes
      Last Post NinjaTrader_Kate  
      Started by ArmKnuckle, Today, 03:08 PM
      0 responses
      6 views
      0 likes
      Last Post ArmKnuckle  
      Started by Mykro, Today, 02:51 PM
      1 response
      4 views
      0 likes
      Last Post NinjaTrader_BrendanC  
      Started by 5element, Today, 02:46 PM
      0 responses
      8 views
      0 likes
      Last Post 5element  
      Started by darkgreen, Today, 09:36 AM
      1 response
      6 views
      0 likes
      Last Post NinjaTrader_Kate  
      Working...
      X