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, 03-31-2026, 09:41 PM
      1 response
      78 views
      1 like
      Last Post NinjaTrader_ChelseaB  
      Started by CarlTrading, 04-01-2026, 02:41 AM
      0 responses
      40 views
      0 likes
      Last Post CarlTrading  
      Started by CaptainJack, 03-31-2026, 11:44 PM
      0 responses
      63 views
      2 likes
      Last Post CaptainJack  
      Started by CarlTrading, 03-30-2026, 11:51 AM
      0 responses
      63 views
      0 likes
      Last Post CarlTrading  
      Started by CarlTrading, 03-30-2026, 11:48 AM
      0 responses
      54 views
      0 likes
      Last Post CarlTrading  
      Working...
      X