Login Page - Create Account

Support Board


Date/Time: Sun, 24 Nov 2024 08:06:20 +0000



elder impulse 'problem'

View Count: 198

[2024-06-21 17:38:39]
User943096 - Posts: 1
Hello, I would like to create an automatic bot based on the Elder Impulse using the studies 'Trading System based on alert condition' (for simplicity let's say that when the candlestick is green I buy while when it is red I sell). my problem is that I can't find a way to refer to the color of the candlesticks because the latter is on the inputs and not on the subgraph (so I can't refer to it by putting ID*. SG*) and I don't know how to do it. Is there a way to do this without building a custom study? Thank you
[2024-06-21 18:54:40]
John - SC Support - Posts: 36238
Refer to the following:
Study/Chart Alerts And Scanning: Writing Formulas Based On Color Settings

For the Elder Impulse, the definition of the colors is described at the following link:
Elder Impulse
For the most reliable, advanced, and zero cost futures order routing, use the Teton service:
Sierra Chart Teton Futures Order Routing
[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

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

Login

Login Page - Create Account