Heikin Ashi Double EMA Strategy [Krypt]

Based on "Heikin Ashi Strategy v2" by breizh29. Adds stop loss and optional log-transform
Remove from Favorite Scripts Add to Favorite Scripts


Does this repaint or not? Can it be used to trade safely?
+25 Reply
It will repaint (and it does), since it uses a bigger timeframe to get data from.
+9 Reply
@fr0zn, the atep is final after the period in that case 180 min, the step is the average of 180 min, try smaller step, like 15 at 5 min chart, the calculation is then based of just 3, 5 min candels
+7 Reply
sadnc2020 MrMister88
@MrMister88, would you plz send me a shot from ur settings? or kindly write the desired inputs here. ty.
@fskrypt you able to add an alert condition to the code?
+8 Reply
What does log-tranform do for this script?
+2 Reply
Hi, I would like to check with you does this signal sometimes come and disappear? Thanks
Hello looks really good, do you have a python script of it ? thanks mate (i can pay for it)
Love this script! Anyone know how to set up alerts with this script?
walshie124 flowcandy
@flowcandy, //@version=2
// Based on Heikin Ashi Strategy v2 by breizh29

//strategy("Heikin Ashi Strategy ", shorttitle="HA Strategy ", overlay=true)
study("Heikin Ashi Strategy ", shorttitle="HA Strategy ", overlay=true)

res = input(title="Heikin Ashi Candle Time Frame", type=resolution, defval="60")
hshift = input(1,title="Heikin Ashi Candle Time Frame Shift")
res1 = input(title="Heikin Ashi EMA Time Frame", type=resolution, defval="180")
mhshift = input(0,title="Heikin Ashi EMA Time Frame Shift")
fama = input(1,"Heikin Ashi EMA Period")
test = input(1,"Heikin Ashi EMA Shift")
sloma = input(30,"Slow EMA Period")
slomas = input(1,"Slow EMA Shift")
logtransform = input(false, "Log Transform")
stoploss = input(true, "Stop Loss")
showplots = input(true, "Show Plots")

ha_t = heikinashi(tickerid)
ha_close = security(ha_t, res, logtransform ? log(close) : close)
mha_close = security(ha_t, res1, logtransform ? log(close) : close)

fma = ema(mha_close, fama)
sma = ema(ha_close, sloma)

plot(showplots ? (logtransform ? exp(fma) : fma) : na, title="MA", color=#0094ff, linewidth=2, style=line)
plot(showplots ? (logtransform ? exp(sma) : sma) : na, title="SMA", color=#ff6a00, linewidth=2, style=line)

golong = crossover(fma, sma)
goshort = crossunder(fma, sma)

//strategy.entry("Buy", strategy.long, when=golong, stop=(stoploss ? high+syminfo.mintick : na))
//strategy.entry("Sell", strategy.short, when=goshort, stop=(stoploss ? low-syminfo.mintick : na))

plotchar(golong, char = "L", color = green)
plotchar(goshort, char = "S", color = red)

alertcondition(golong, "long", "long")
alertcondition(goshort, "short", "short")
+1 Reply
Home Stock Screener Forex Screener Crypto Screener Economic Calendar How It Works Chart Features Pricing Refer a friend House Rules Help Center Website & Broker Solutions Widgets Charting Solutions Lightweight Charting Library Blog & News Twitter
Profile Profile Settings Account and Billing Referred friends Coins My Support Tickets Help Center Ideas Published Followers Following Private Messages Chat Sign Out