Support Board
Date/Time: Wed, 22 Jan 2025 04:16:48 +0000
Post From: Re-color Candle Stick Bars in ACSIL Study based on price comparison
[2018-08-24 15:05:11] |
Tradix10 - Posts: 3 |
Hello, I am new to SC coding Within an ACSIL Study I would like to Re-Color candle Stick bars based on a price comparison. The Idea would be: If "High of last finished bar" > "High of last finised bar -1" then change Color of "last finished bar" to a new color (e.g. yellow). Another Example: If "Close of last finished bar" < "Close of last finised bar -1" then change Color of "last finished bar" to a new color. Im am looking for the ACSIL Code to set the Bar color. -------------------- Additional question: To get the High value of a bar I am planning to use sc.BaseData[SC_HIGH] or sc.High[sc.ArraySize] Would this code return the High of the "last finished bar?" And: sc.BaseData[SC_HIGH] or sc.High[sc.ArraySize-1] Would this code return the High of the "last finished bar -1?" Is this correct? If not, what would be the correct expression? Thank You |