justsayok

Mirocana.com V4.20

1113 views
183
1113 1
//@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))/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 )
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)
Remove from Favorite Scripts Add to Favorite Scripts
unfortunately this repaints the buy or sell signal on 20hrs after the event. SCAM
Reply
Home Stock Screener Forex Screener Crypto Screener Economic Calendar How It Works Chart Features Pricing House Rules Moderators Website & Broker Solutions Widgets Charting Solutions Get Help Feature Request Blog & News FAQ Wiki Twitter
Profile Profile Settings Account and Billing Get Help Ideas Published Followers Following Private Messages Chat Sign Out