Login Page - Create Account

Support Board


Date/Time: Sat, 04 May 2024 22:03:19 +0000



Post From: Help with Alert Formula on Engulfing Candle Crossing Horizontal Line or w/in 1% of line

[2021-07-27 22:29:01]
Sawtooth - Posts: 3993
I think this is what you want:

=OR(
AND(H>=ID7.SG1*0.99,L<=ID7.SG1*1.01,ID6.SG1=3,CROSSFROMBELOW(C,ID7.SG1)),
AND(H>=ID7.SG1*0.99,L<=ID7.SG1*1.01,ID6.SG2=4,CROSSFROMABOVE(C,ID7.SG1)))

This will alert when any part of the bar is within the 1% +/- band of the Horizontal Lines SG1 line,
and the Close has crossed above or below the Horizontal Lines SG1 line,
and the Candlestick Pattern is either Bullish Engulfing or Bearish Engulfing.

You would need to replicate this formula for each horizontal line, combining them with another OR(
There is a character limit to Simple Alert formulas, which you would probably exceed with multiple lines.

Since you have multiple lines, this would be much easier to do with the Spreadsheet System/Alert study.
Date Time Of Last Edit: 2021-07-27 23:39:46