Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

How to modify Shapes in Drawing tools to lock to price and time, per details below

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

    How to modify Shapes in Drawing tools to lock to price and time, per details below

    Hi,
    I am using the rectangles drawing tool from shapes. When the chart is resized the rectangle shape remains constant while price and time (at the edges of the rectangle) change per scaling.
    Is it possible to modify shapes.cs such that a toggle to lock / unlock shape is present. When locked the price and time at each corner is maintained I.e. if chart is resized the rectangle changes size to remain locked to price and time. Also how to add feature of being able to enter price and time for each corner and "set lock" - once locked the move function should not respond,
    TIA for pointers on how to do this.

    #2
    Hello suraj,

    Thank you for your post.

    You mentioned that the "rectangle shape remains constant while price and time (at the edges of the rectangle) change per scaling." Please advise what steps you are taking to observe this result. If you double-click on the rectangle to open up the drawing objects window, do you see a difference in the start time, start y, end time, and end y in the "Data" section? If possible, please take a screenshot of the before and after to demonstrate what you are referring to with the changes demonstrated during chart scaling.
    • To send a screenshot with Windows 10 or newer I would recommend using the Windows Snipping Tool.
    • Alternatively to send a screenshot press Alt + PRINT SCREEN to take a screenshot of the selected window. Then go to Start--> Accessories--> Paint, and press CTRL + V to paste the image. Lastly, save it as a jpeg file and send the file as an attachment.
    ​I look forward to your reply.
    Emily C.NinjaTrader Customer Service

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by gustavobp, Today, 03:15 AM
    0 responses
    5 views
    0 likes
    Last Post gustavobp  
    Started by gustavobp, Today, 03:00 AM
    0 responses
    5 views
    0 likes
    Last Post gustavobp  
    Started by nicbizz, Today, 02:14 AM
    0 responses
    5 views
    0 likes
    Last Post nicbizz
    by nicbizz
     
    Started by Ringer13, Today, 01:59 AM
    0 responses
    7 views
    0 likes
    Last Post Ringer13  
    Started by NINZAMANA, 02-06-2025, 09:03 AM
    2 responses
    24 views
    0 likes
    Last Post Fertryd2  
    Working...
    X