SeaSide420

M&H_v420b

661 18 63
// //////////////// 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")
Is it possible to add alerts to private email ?
Reply
SeaSide420 131970aetos
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
it is ok to add alerts to email in EA , I'm waiting for your EA.
Reply
Does this strategy repaint signals?
Reply
SeaSide420 mynmi16
yes
Reply
cryptoview SeaSide420
So what's the real use of it if it repaints and gives false signals? This always puzzles me
Reply
SeaSide420 cryptoview
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 SeaSide420
just refresh the page to see if its changed its mind or not, after a few bars and price change, it signal stay
Reply
If you use "close" - it's always going to redraw/repaint and all results from Strategy Tester output are inaccurate, right?
Reply
SeaSide420 tickwatch
no
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