Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Enter within Strategy based off of drawn indicator

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

    Enter within Strategy based off of drawn indicator

    I am using a RiskReward indicator that draws lines based off of a rectangle that you draw manually. I'm using it mainly as a way to backtest my ideas, but I was wondering if there would be a way to enter using these drawn objects? My current strategy uses a lot of buttons, so I was thinking I could draw with the indicator and one of my buttons could detect if I a rectangle was drawn and enter based off that information?
    Does that make sense? Is there a way to pull that off? Or is there something within the indicator that I would need in order to make it work?

    #2
    Hello rockmanx00,

    Thank you for your post.

    You can loop through the DrawObjects collection in your strategy to identify the drawing objects created by the indicator.

    Below is a Help Guide for the DrawObjects collection which also has sample code demonstrating how to loop through the collection.

    Comment


      #3
      ok. I'll give that a look. Thank you.

      Comment

      Latest Posts

      Collapse

      Topics Statistics Last Post
      Started by argusthome, 03-08-2026, 10:06 AM
      0 responses
      116 views
      0 likes
      Last Post argusthome  
      Started by NabilKhattabi, 03-06-2026, 11:18 AM
      0 responses
      61 views
      0 likes
      Last Post NabilKhattabi  
      Started by Deep42, 03-06-2026, 12:28 AM
      0 responses
      40 views
      0 likes
      Last Post Deep42
      by Deep42
       
      Started by TheRealMorford, 03-05-2026, 06:15 PM
      0 responses
      43 views
      0 likes
      Last Post TheRealMorford  
      Started by Mindset, 02-28-2026, 06:16 AM
      0 responses
      82 views
      0 likes
      Last Post Mindset
      by Mindset
       
      Working...
      X