Login Page - Create Account

Support Board


Date/Time: Sun, 24 Nov 2024 08:11:05 +0000



Post From: elder impulse 'problem'

[2024-06-21 21:11:17]
Sawtooth - Posts: 4118
I can't find a way to refer to the color of the candlesticks
Convert this spreadsheet example to Alert syntax:
Spreadsheet Example Formulas and Usage: Formula that Matches the Coloring of Up and Down Price Bars

Then use the Spreadsheet Formula study, with this converted formula in its Formula field:
=IF(OR(C>O,AND(O>C[-1],O=C)),1, IF(OR(C<O,AND(O<C[-1],O=C)),-1,ID6.SG1[-1]))
where ID6 is this Spreadsheet Formula study.
(Note: this method deals with dojis.)

Then reference this Spreadsheet Formula study in your Trading System Based On Alert Condition studies' formulas,
where 1 is an up-colored candle, and -1 is a down-colored candle.
Date Time Of Last Edit: 2024-06-21 21:18:24