531 18 49
// //////////////// Attempt to Reduce ReDraw version /////////////////////
//
// Microcana.com strategy by pilotgsms - version 4.20b <<<< Edited by Seaside420 >>>> special thanks to 55cosmicpineapple
// Hull_MA_cross added to script
Remove from Favorite Scripts Add to Favorite Scripts
//@version=2
//                   //////////////// Attempt to Reduced ReDraw version /////////////////////
//
//                         Microcana.com strategy by pilotgsms - version 4.20b <<<< Edited by Seaside420 >>>> special thanks to 55cosmicpineapple
//                            Hull_MA_cross added to script
strategy("M&H_v420b", overlay=true, default_qty_type=strategy.percent_of_equity, default_qty_value=100, calc_on_order_fills= true, calc_on_every_tick=true, pyramiding=0)
dt = input(defval=0.0010, title="Decision Threshold", type=float, step=0.0001)
dd = input(defval=1, title="Post Signal Bar Delay", type=float, step=1)
df = input(defval=5, title="Close Position Bar Delay", type=float, step=1)
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)
openlong=prediction[dd] and n1>n2 and strategy.opentrades<1
if (openlong)
    strategy.entry("Long", strategy.long)
openshort=not prediction[dd] and n2>n1 and strategy.opentrades<1
if (openshort)
    strategy.entry("Short", strategy.short)
closeshort=prediction and close<low[df]
if (closeshort)
    strategy.close("Short")
closelong=not prediction and close>high[df]  
if (closelong)
    strategy.close("Long")
m99rn
7 months ago
it repaint the signals?
Reply
SeaSide420 PRO m99rn
7 months ago
https://gyazo.com/ac5d7cafcf77ebc26523be868a9fc054
+1 Reply
vaicru PRO
7 months ago
Any timeframe ? ( Mirocana only 1h )
Reply
SeaSide420 PRO vaicru
7 months ago
15M backtested well for this one
Reply
Entity PRO
7 months ago
Nice update! Is it possible to add alerts for this strategy?

I normally create a second script for alerts but the script doesn't work with any strategy commands i.e. strategy.opentrades

Any ideas?
Reply
SeaSide420 PRO Entity
7 months ago
i will look into adding alert function, never tried before but sounds like a good idea
Reply
Entity PRO SeaSide420
7 months ago
Thank you! Much appreciated.
Reply
Entity PRO Entity
7 months ago
Look at the following to help out: That's how I do it. Keep me posted :)

New Video On How To Create Alerts w/ Any Custom Indicator!!!


http://videos.tradingview.com/video/114269353
Reply
tickwatch PRO
7 months ago
If you use "close" - it's always going to redraw/repaint and all results from Strategy Tester output are inaccurate, right?
Reply
SeaSide420 PRO tickwatch
7 months ago
no
Reply
mynmi16
7 months ago
Does this strategy repaint signals?
Reply
SeaSide420 PRO mynmi16
7 months ago
yes
Reply
cryptoview PRO SeaSide420
7 months ago
So what's the real use of it if it repaints and gives false signals? This always puzzles me
Reply
SeaSide420 PRO cryptoview
7 months ago
if stop repaint, then it just does heaps of buy and sell in a bunch, as the Decision Threshold is crossed.
just use it in addition to your current strategy of trading, to help confirm or deny,
like, 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.
Reply
SeaSide420 PRO SeaSide420
7 months ago
just refresh the page to see if its changed its mind or not, after a few bars and price change, it signal stay
Reply
131970aetos
7 months ago
Is it possible to add alerts to private email ?
Reply
SeaSide420 PRO 131970aetos
7 months ago
unknown.
I might look into publishing a new version with alert.
But I am busy making a fully automated system for MT4 (EA)
which will be available here once completed: https://www.mql5.com/en/signals/author/seaside420
Reply
131970aetos SeaSide420
7 months ago
it is ok to add alerts to email in EA , I'm waiting for your EA.
Reply
Ideas Scripts Chart
United States
United Kingdom
India
España
Italia
Brasil
Россия
Türkiye
日本
한국
Home Stock Screener Economic Calendar How It Works Chart Features House Rules Moderators For the WEB Widgets Stock Charting Library Priority Support Feature Request Blog & News FAQ Help & Wiki Twitter
Private Messages Chat Ideas Published Followers Following Priority Support Public Profile Profile Settings Billing Sign Out