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 Mindset, 04-21-2026, 06:46 AM
    0 responses
    52 views
    0 likes
    Last Post Mindset
    by Mindset
     
    Started by M4ndoo, 04-20-2026, 05:21 PM
    0 responses
    71 views
    0 likes
    Last Post M4ndoo
    by M4ndoo
     
    Started by M4ndoo, 04-19-2026, 05:54 PM
    0 responses
    38 views
    0 likes
    Last Post M4ndoo
    by M4ndoo
     
    Started by cmoran13, 04-16-2026, 01:02 PM
    0 responses
    99 views
    0 likes
    Last Post cmoran13  
    Started by PaulMohn, 04-10-2026, 11:11 AM
    0 responses
    60 views
    0 likes
    Last Post PaulMohn  
    Working...
    X