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 CarlTrading, 05-11-2026, 05:56 AM
      0 responses
      52 views
      0 likes
      Last Post CarlTrading  
      Started by CarlTrading, 05-10-2026, 08:12 PM
      0 responses
      29 views
      0 likes
      Last Post CarlTrading  
      Started by Hwop38, 05-04-2026, 07:02 PM
      0 responses
      194 views
      0 likes
      Last Post Hwop38
      by Hwop38
       
      Started by CaptainJack, 04-24-2026, 11:07 PM
      0 responses
      355 views
      0 likes
      Last Post CaptainJack  
      Started by Mindset, 04-21-2026, 06:46 AM
      0 responses
      274 views
      0 likes
      Last Post Mindset
      by Mindset
       
      Working...
      X