Login Page - Create Account

Support Board


Date/Time: Tue, 14 May 2024 23:22:01 +0000



Post From: Simple question about help with code for study

[2017-03-25 21:07:02]
User62936 - Posts: 64
I am trying to color my bars but having trouble with the code. Right now, I have this simple code to alert me when any 5 second bar is greater than 4 ticks in the ES using the Color Bar Based On Alert Condition study. It works well, and this is how it looks and how its coded. (this is on top of a code that I have to color all the bars white, which is what I like on the charts where I have the Historical Market Depth Graph on like in this example)

The problem I'm having is that I'm wanting now to make the down bars red, and up bars green. When I try to split this code up over 2 studies, one for up and have it color green, and one for down and have it color red, I can't get anything to work. I use the first line as before, and add in =AND(O>C) or switch the greater-than sign to less than, and nothing works. Obviously I haven't got a clue, so please be kind and help if you know. :)
imageSH_ Mar. 25, 2017 13.55.49.jpg / V - Attached On 2017-03-25 21:05:18 UTC - Size: 141.02 KB - 261 views