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