Support Board
Date/Time: Sat, 23 Nov 2024 03:37:56 +0000
Post From: Automatically change background color based on position?
[2024-09-20 13:13:08] |
John - SC Support - Posts: 36238 |
That actually is the harder one to do. But, to do it, you need the following studies (note that you will need to repeat this process for each chart you want to change color): - Trading: Position Quantity - 2 copies of the Color Background Based on Alert Condition - Spreadsheet Study Do the following: - Add the studies to the chart. You can hide the "Trading: Position Quantity" and "Spreadsheet Study". - In the "Color Background Based on Alert Condition" studies set the following conditions (just one condition per study): =ID1.SG1 < 0 [to color background on a short] =ID1.SG1 > 0 [to color background on a long] where ID1 is the ID of the "Spreadsheet Study" study. - In the Spreadsheet Study enter the following in cell K3: =ID2.SG1@$3 Where ID2 is the ID of the "Trading:Position Quantity" study For the most reliable, advanced, and zero cost futures order routing, use the Teton service: Sierra Chart Teton Futures Order Routing |