Strategy: DNSAlarmDay
Downloaded: 20220816
Stoploss: -0.99
The DNSAlarmDay strategy is designed to identify bullish and bearish engulfing candlestick patterns and generate alarms when certain conditions are met. Here is a breakdown of what the strategy does: The strategy populates indicators based on the provided dataframe and metadata. It calculates the previous range based on the open and close prices of the previous candle.

It calculates the bullish engulfing green line and bearish engulfing green line based on the previous range and dataframe.

If the run mode is "backtest" or "plot," it shifts the calculated green lines one candle forward.

It retrieves the ongoing close price of the selected pair. It creates lists of the most recent bullish and bearish engulfing green line values. It checks if an alarm has already been emitted for each green line price and calculates the distance percentage between the ongoing close price and the green line price. If the price is within the alert range, it checks if an alarm has already been emitted for that price. If not, it emits an alarm and builds an alert message. If the green line price is below the ongoing close price, it triggers an audible beep and prints a TradingView chart URL for manual analysis. It also checks if the price is within the restart alert range and resets the alarm if necessary. If the run mode is "live" or "dry_run," it returns the original dataframe without any modifications. Otherwise, it returns the populated short dataframe. The strategy includes additional methods to populate indicators for bullish and bearish engulfing patterns, calculate the minimum low to the end, and calculate the maximum high to the end. Lastly, it appends a dummy row to the dataframe for a specific date. There are also methods to determine if the distance percentage is within the alert or restart alert range and to build the alert message. The strategy further includes methods to populate the buy and sell trends in the dataframe. Overall, the strategy aims to identify and generate alarms for bullish and bearish engulfing patterns based on specific criteria and provides flexibility for backtesting or live trading modes.

stoploss: -0.99
timeframe: 1d
hash(sha256): 8cbbcb619248670b2a07b32f2edb98f64132867e7121fb5502e7aefd7b8f86f9
high max_high_to_end altcoins_restart_alert_percentage close last
open low min_low_to_end altcoins_alert_percentage btc_eth_alert_percentage

No similar strategies found. (based on used indicators)

last change: 2024-01-28 08:31:07