Login Page - Create Account

Support Board


Date/Time: Sun, 24 Nov 2024 06:07:15 +0000



[User Discussion] - Change chart background color after loss threshold (e.g. -5%)

View Count: 2340

[2013-09-27 21:12:14]
Mack - Posts: 83
Dear community,

I am deeply indebted to the Sierra Chart community; and I absolutely love this software.

I am looking for a way to remind myself to take a break.

This was my day:
- trade01 = 10% up > "nice.."
- trade02 = 20% up > "awesome!!"
- trade03 = 15% up > "hmm"
- trade04 = 5% up > "hmmmm..."
- trade05 = -5% down > "damn!" > Ideally, the daily-loss study would turn my screen RED now, or do something else crazy.
- trade06 = -8% down > "Grr."

It would be really cool if I could change the colors of the candles to a crazy color, just to remind myself, to take a 10 minute break.

Perhaps, I could use the "Color Bar on Alert Condition"?

iBurger
Date Time Of Last Edit: 2013-09-28 10:52:56
[2013-09-27 21:37:39]
Mack - Posts: 83
update: there is a study called "Trading: Profit/Loss" which display is large letters your current profit. I now somehow need to readout the data and use it.
Date Time Of Last Edit: 2013-09-27 21:44:55
[2013-09-27 21:45:19]
Sawtooth - Posts: 4118
You can do this with the Spreadsheet Study study.

Add the Spreadsheet Study study
-give it a name in the Spreadsheet Name field
-set the Chart Region to 1
-check 'Draw Study Underneath Price Graph'
-set the K(SG1) Draw Style to Background, and choose color

On the spreadsheet:
-put this in cell K3:
=$J$10+$J$45<$H$1*(1-$H$2)
-put your acct balance in cell H1
-put your max % loss in cell H2
-format cell H2 for Percentage:
---right click in H2, choose Number Format, choose Percentage, choose 0%.

This will color the chart's background when the Open P/L + Closed Daily P/L is n% less than the acct balance.
[2013-09-27 21:58:10]
Mack - Posts: 83
THANKS! That's AMAZING!

I had no idea you could change the background color like that. Really, really cool! :)


Date Time Of Last Edit: 2013-09-27 22:10:52
imagered.png / V - Attached On 2013-09-27 22:10:19 UTC - Size: 93.84 KB - 543 views
Attachment Deleted.
Attachment Deleted.
[2013-09-29 19:15:14]
vegasfoster - Posts: 444
Awesome work Tom!

To post a message in this thread, you need to log in with your Sierra Chart account:

Login

Login Page - Create Account