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