Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Change colour of Stop market and limit orders to red and green via indicator script

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

    Change colour of Stop market and limit orders to red and green via indicator script

    Hi,

    I am creating an indicator which has an auto position sizing feature and I want orders to be placed with limit orders and stop market orders to be green and red respectively, as if they were placed by an ATM strategy.

    I know I can modify this in the properties of chart trader, but I have to do this every time and I plan to share my indicator with others who don't like pink/blue colours for our exit orders. I want to set these colours as the indicator loads up so that they will be defaulted to green and red regardless of who is using the indicator.

    I'm just not sure how to access these properties via script. Can you help with the code to get this data and overwrite with a new brush?

    Thanks,

    Rapine

    #2
    Hello Rapine Heihei,

    Thank you for your post.

    Unfortunately, there are no documented/supported ways to change the order marker colors of a stop or limit order programmatically. This would need to be changed manually as you've described, by editing the Chart Trader's properties.

    The thread will be open for other community members to share their insights on unsupported code to accomplish this.

    Please let me know if you have further questions.​

    Comment


      #3
      Hello and congratulations for creating such an indicator.

      Comment

      Latest Posts

      Collapse

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