SeaSide420

Mirocana.com V4.20

Mirocana.com strategy by pilotgsms - version 4.20 <<<< Edited by Seaside420 >>>> special thanks to 55cosmicpineapple
changes: strategy settings tweaked and Hull_MA_cross added to script
Remove from Favorite Scripts Add to Favorite Scripts
//@version=2
//                         Microcana.com strategy by pilotgsms - version 4.20 <<<< Edited by Seaside420 >>>> special thanks to 55cosmicpineapple
//                            Hull_MA_cross added to script
strategy("Mirocana.com V4.20", overlay=true, default_qty_type=strategy.percent_of_equity, default_qty_value=100)
dt = input(defval=0.0010, title="Decision Threshold", type=float, step=0.0001)
keh=input(title="Double HullMA Cross",type=integer,defval=7, minval=1)
confidence=(security(tickerid, 'D', close)-security(tickerid, 'D', close[1]))/security(tickerid, 'D', close[1])
prediction = confidence > dt ? true : confidence < -dt ? false : prediction[1]
n2ma=2*wma(close,round(keh/2))
nma=wma(close,keh)
diff=n2ma-nma,sqn=round(sqrt(keh))
n2ma1=2*wma(close[2],round(keh/2))
nma1=wma(close[2],keh)
diff1=n2ma1-nma1,sqn1=round(sqrt(keh))
n1=wma(diff,sqn)
n2=wma(diff1,sqn)
if (prediction and n1>n2)
    strategy.exit("Close", "Short")
    strategy.entry("Long", strategy.long)
if (not prediction and n2>n1)
    strategy.exit("Close", "Long")
    strategy.entry("Short", strategy.short)
Hi, thanks for the effort. Just wondering why the long signal was on for a while and then it disappear after?
Reply
SeaSide420 JayJasonLau
@JayJasonLau, hi, yes you are seeing repaint.
try this instead
HullMA cross Strategy

which still has repaint problem but less so, just refresh page, if signal remains after 1 or 2 bars, then all good.
HullMA-cross-Strategy EA for MT4 available:
Save your time by having a robot trade for you, http://ss420fx.blogspot.co.nz FREE 1 month demo to make sure it works with your broker and chosen pairs.
Reply
How can i use this in a live chart what do i need to do with the code? :/
Reply
GOOD JOB ALL I CAN SAY IS THAT YOU HAVE TRIED YOUR BEST BETTER ....I RESPECT YOU HARDWORK & DEDICATION THAT YOU HAVE PUT IN MAKING THIS WONDERFUL INDICATOR WHICH IS NEAR TO PERFECTION ..SALUTE AND FOLLOWING ...REGARDS FROM INDIA ....MAY YOU ALWAYS BE BLESSED & MAY YOU ALWAYS PROSPER
Reply
SS420FX


basically the new version
Reply
Justin PRO SeaSide420
@seaslide420 how do we get alerts with this. I have tried to write one but am getting plotting errors on my last line.

dt = input(defval=0.0010, title="Decision Threshold", type=float, step=0.0001)
keh=input(title="Double HullMA Cross",type=integer,defval=3, minval=1)
confidence=(security(tickerid, 'D', close)-security(tickerid, 'D', close))/security(tickerid, 'D', close)
prediction = confidence > dt ? true : confidence < -dt ? false : prediction
n2ma=2*wma(close,round(keh/2))
nma=wma(close,keh)
diff=n2ma-nma,sqn=round(sqrt(keh))
n2ma1=2*wma(close,round(keh/2))
nma1=wma(close,keh)
diff1=n2ma1-nma1,sqn1=round(sqrt(keh))
n1=wma(diff,sqn)
n2=wma(diff1,sqn)

plot(prediction and n1>n2? 1 : 0, color=lime, linewidth=1)
Reply
Please ingore the last comment I found the newer version you released. Is there an alert for that one?
Reply
confidence=(security(tickerid, 'D', close)-security(tickerid, 'D', close))/security(tickerid, 'D', close)
Sup! My name is repainnnnnnnnnnnnnnnnnt
Reply
the is important (by the way)

hey,
why does everyone cry about the repaint?
if stop repaint, then it just does heaps of buy and sell in a bunch, as the Decision Threshold is crossed.
why not just use it in addition to your current strategy of trading, to help confirm or deny,
like, what about, when it says sell for example, let the price drop and not panic, then when some sort of retractment happens (use fib etc), then enter a sell,
and it wont be repainting as some bars will have passed, and the price will be permanently on one side of the threshold.
hopefully this answer all questions of repaint.
:-)
Reply
United States
United Kingdom
India
Deutschland
España
France
Italia
Polska
Brasil
Россия
Türkiye
Indonesia
Malaysia
日本
한국
简体
繁體
Home Stock Screener Forex Signal Finder Cryptocurrency Signal Finder Economic Calendar How It Works Chart Features House Rules Moderators Website & Broker Solutions Widgets Stock Charting Library Priority Support Feature Request Blog & News FAQ Help & Wiki Twitter
Profile Profile Settings Account and Billing Priority Support Ideas Published Followers Following Private Messages Chat Sign Out