allanster

Grahn Gyllene Kors [Alerts]

allanster Wizard Updated   
Grahn Gyllene Kors is the companion study for the Grahn Gyllene Kors strategy...

This is an EMA / Trend Explorer & Strategy useful for identifying trends before EMA's cross and also identifying and experimenting with various EMA lengths and candle trends. There is also a companion Alerts study for this in which trend signals may be sent to the user via sms or email AND/OR buy and sell alerts may be sent to bots for automated trading of this strategy. Once you have optimized your settings and backtested with this strategy, apply your same settings into the Alerts study and create your alerts.

NOTICE: This script does not require access from me, simply open Indicators on chart and search for "Grahn". By accessing this script you acknowledge that you have read and understood that this is for research purposes only and I am not responsible for any financial losses you may incur by using this script!

EMA Fast and EMA Slow - may be adjusted in length and color.

Bullish F>S % - controls what percentage the EMA Fast should be above EMA Slow before considered bullish and is represented by the Green band on the chart. 

Neutral <S> % - is what percentage surrounding the EMA Slow should be considered neutral and is represented by the Yellow band on the chart. 

Bearish F<S % - controls what percentage the EMA Fast should be below EMA Slow before considered bearish and is represented by the Red band on the chart. 

Enable Trend - determines whether Trend Strength is enforced in strategy in addition to EMA divergence. 

Bull Candles # - is the number of candles ranging from 0 (off) to 5 that should be consecutively higher in value before considered to be a trend. 

Neut Candles # - is the number of candles that should consecutively remain in the Neutral yellow band before considered to be trending neutral for signal alerts (has no impact on strategy).

Bear Candles # - is the number of candles ranging from 0 (off) to 5 that should be consecutively lower in value before considered to be a trend.

Pump Increase % - is the rise in price that should be considered a pump for signal alerts (has no impact on strategy).

Pump Candles # - is the number of candles over which Pump Increase % should be considered (has no impact on strategy).

Dump Decrease % - is the rise in price that should be considered a pump for signal alerts (has no impact on strategy).

Dump Candles # - is the number of candles over which Dump Decrease % should be considered (has no impact on strategy).

Show EMA Fast & Slow - their display may be turned on or off.

Enable Range - may be enabled for backtesting (in strategy) a specific range of time (disabled uses default range based on period).




Release Notes:
NOTE: There is a typo in description above for Dump Decrease %, should read:

Dump Decrease % - is the fall in price that should be considered a dump for signal alerts (has no impact on strategy).

-----
Changes: Cosmetic only, staggered height of signal arrows/label types to reduce occurrences of them overlapping.
Release Notes:
Improved logic on awareness of last state.
Release Notes:
Further refinement of state awareness logic into 2 state buy/sell and 5 state pump/bear/neutral/bull/dump so that no state prevents another from occurring.
Release Notes:
Fixed error where when Enable Date Range was enabled it was not applying the range of dates. Thanks @RobertEmm!

Further refinement of state awareness logic into 2 state buy/sell, 2 state pump/dump, and 3 state bear/neutral/bull.
Release Notes:
Added Stop Loss (does not require extra alert, it uses sell alert).

Adjusted Default values.

Added ability to hide Strategy and/or Signal Alerts (hiding disables both the display on screen AND the alerts).

Added simple error checking to date ranges to prevent going higher than Month 12 or Day 31.

Added ability to change Source for candle prices.

lux ex tenebris • deuro mea umbra absens • Telegram: t.me/allanster
Protected script
This script is published closed-source but you may use it freely. You can favorite it to use it on a chart. You cannot view or modify its source code.
Disclaimer

The information and publications are not meant to be, and do not constitute, financial, investment, trading, or other types of advice or recommendations supplied or endorsed by TradingView. Read more in the Terms of Use.

Want to use this script on a chart?