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 CaptainJack, 05-29-2026, 05:09 AM
    0 responses
    237 views
    0 likes
    Last Post CaptainJack  
    Started by CaptainJack, 05-29-2026, 12:02 AM
    0 responses
    152 views
    0 likes
    Last Post CaptainJack  
    Started by charlesugo_1, 05-26-2026, 05:03 PM
    0 responses
    163 views
    1 like
    Last Post charlesugo_1  
    Started by DannyP96, 05-18-2026, 02:38 PM
    1 response
    246 views
    0 likes
    Last Post NinjaTrader_ChelseaB  
    Started by CarlTrading, 05-11-2026, 05:56 AM
    0 responses
    199 views
    0 likes
    Last Post CarlTrading  
    Working...
    X