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 SalmaTrader, 07-07-2026, 10:26 PM
    0 responses
    30 views
    0 likes
    Last Post SalmaTrader  
    Started by CarlTrading, 07-05-2026, 01:16 PM
    0 responses
    17 views
    0 likes
    Last Post CarlTrading  
    Started by CaptainJack, 06-17-2026, 10:32 AM
    0 responses
    9 views
    0 likes
    Last Post CaptainJack  
    Started by kinfxhk, 06-17-2026, 04:15 AM
    0 responses
    16 views
    0 likes
    Last Post kinfxhk
    by kinfxhk
     
    Started by kinfxhk, 06-17-2026, 04:06 AM
    0 responses
    19 views
    0 likes
    Last Post kinfxhk
    by kinfxhk
     
    Working...
    X