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 CaptainJack, 05-29-2026, 05:09 AM
      0 responses
      163 views
      0 likes
      Last Post CaptainJack  
      Started by CaptainJack, 05-29-2026, 12:02 AM
      0 responses
      81 views
      0 likes
      Last Post CaptainJack  
      Started by charlesugo_1, 05-26-2026, 05:03 PM
      0 responses
      125 views
      0 likes
      Last Post charlesugo_1  
      Started by DannyP96, 05-18-2026, 02:38 PM
      1 response
      206 views
      0 likes
      Last Post NinjaTrader_ChelseaB  
      Started by CarlTrading, 05-11-2026, 05:56 AM
      0 responses
      184 views
      0 likes
      Last Post CarlTrading  
      Working...
      X