Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Help with Moving Anchor

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

    Help with Moving Anchor

    I have found an risk to reward indicator that functions much in the way I want it to, and added some tweaks and changes.
    For the most part it does what I want it to do, which is when I draw a rectangle using the rectangle drawing tool, it creates a box that would be my risk portion.

    What I would like it to do is, after setting the rectangle, adjust the box by a given offset to price, so the Y axis, in this case, and offset of 1 tick. I am able to create the results via the boxes and adjusting the lines, but the anchor points are now inside the box, where the original points were. Is there a way to adjust the anchor points? I've tried using r1.EndAnchor.MoveAnchor(),but I couldn't figure out how to get that to work.

    #2
    Hello rockmanx00,

    Rather than moving the anchor you likely will need to use that as a basis for an offset and then use that in custom rendering to render from the initial anchor position.

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by CarlTrading, 03-31-2026, 09:41 PM
    1 response
    153 views
    1 like
    Last Post NinjaTrader_ChelseaB  
    Started by CarlTrading, 04-01-2026, 02:41 AM
    0 responses
    89 views
    1 like
    Last Post CarlTrading  
    Started by CaptainJack, 03-31-2026, 11:44 PM
    0 responses
    133 views
    2 likes
    Last Post CaptainJack  
    Started by CarlTrading, 03-30-2026, 11:51 AM
    0 responses
    127 views
    1 like
    Last Post CarlTrading  
    Started by CarlTrading, 03-30-2026, 11:48 AM
    0 responses
    107 views
    0 likes
    Last Post CarlTrading  
    Working...
    X