pilotgsms

Mirocana Strategy

Check out this strategy.
for more information: mirocana.com
Remove from Favorite Scripts Add to Favorite Scripts
//@version=2
strategy("Mirocana.com", overlay=true, currency=currency.USD, initial_capital=10000)
dt = input(defval=0.0010, title="Decision Threshold", type=float, step=0.0001)

confidence=(security(tickerid, 'D', close)-security(tickerid, 'D', close[1]))/security(tickerid, 'D', close[1])
prediction = confidence > dt ? true : confidence < -dt ? false : prediction[1]

bgcolor(prediction ? green : red, transp=93)

if (prediction)
    strategy.exit("Close", "Short")
    strategy.entry("Long", strategy.long, qty=10000*confidence)

if (not prediction)
    strategy.exit("Close", "Long")
    strategy.entry("Short", strategy.short, qty=-10000*confidence)
    
    
    
Hello, I'm interested in the news indicator at the bottom of the graph, as it is called, you can get the script because it looks like in the picture? Thank you.
Reply
version 3 does not repaint(https://www.tradingview.com/wiki/Pine_Script:_Release_Notes). So with some change, it does not repaint:

//@version=3
strategy("Mirocana.com", overlay=true, currency=currency.USD, initial_capital=10000)
dt = input(defval=0.0010, title="Decision Threshold", type=float, step=0.0001)

confidence=(security(tickerid, 'D', close)-security(tickerid, 'D', close))/security(tickerid, 'D', close)
prediction = confidence > dt ? 1 : confidence < -dt ? 0 : -1

//bgcolor(prediction ? green : red, transp=93)

if (prediction == 1)
strategy.exit("Close", "Short")
strategy.entry("Long", strategy.long, qty=10000*confidence)

if (prediction == 0)
strategy.exit("Close", "Long")
strategy.entry("Short", strategy.short, qty=-10000*confidence)


+6 Reply
It's fake... Signals are put at the past candles when the actual price turned around and walked a few candles)... Really is a good picture, which is based on history, but it is not a strategy.
I think that the principles of such strategies should be disclosed in the description, or people should be warned that the signals are put on a few candles ago.
+9 Reply
Tradingview should do an analysis on the source code to determine if a script will repaint & then warn unsuspecting users of the issues with repainting. Otherwise someone might go out and mortgage their house and lose everything thinking they're going to be 98.78% (or 100%) profitable. :)
+5 Reply
tickwatch tickwatch
I mean on all strategies. Maybe an option "disable_repaint_warning=true" or "enable_unrealistic_outcomes=true" with a popup to warn users the the script is using values that will probably render the strategy performance report as (very) unreliable.
+4 Reply
looks good
Reply
This seems to good to be true but I have been following it for about a week now and although it seems to repaint on smaller time frames (still remaining profitable) on the 1hr TF it has been pretty accurate. It might come in a few candles later but that's fine. Still busy watching this system closely to understand it better and see if it can be used as confirmation on other systems.

Trying to create an alert for this system is a nightmare as that would be the best way to test and validate historical signals.
+3 Reply
ALERT SCRIPT

////////////////////////////////

//@version=2
study("Mirocana.com", overlay=false)
dt = input(defval=0.0010, title="Decision Threshold", type=float, step=0.0001)

confidence=(security(tickerid, 'D', close)-security(tickerid, 'D', close))/security(tickerid, 'D', close)
prediction = confidence > dt ? true : confidence < -dt ? false : prediction

bgcolor(prediction ? green : red, transp=93)

long = prediction

plot(long, "long", color=green, linewidth=3)

short = prediction != true

plot(short, "short", color=red, linewidth=3)

////////////////////////////////////

Cheers :)
Reply
Entity peonminer
Thanks! That shows the same results as the background colour of the script. If you set an alert where buy signal > 1 then it will go off on every candle.

Here is a similar one but still doesn't work due to the repaint unfortunately :/

///////////////////////////////////////////////////////////////////////

study("Mirocana.com Alert")
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)

plot(prediction and n1>n2? 1 : 0 , color=lime, style = histogram, title="BuyArrow", linewidth=10)

/////////////////////////////////////////////////////////////////////////////////////////////

still a good indicator to use imho
Reply
You are looking at today's close, which is future data.
+4 Reply
English
English (UK)
English (IN)
Deutsch
Français
Español
Italiano
Polski
Türkçe
Русский
Português
Bahasa Indonesia
Bahasa Melayu
ภาษาไทย
Tiếng Việt
日本語
한국어
简体中文
繁體中文
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 Feature Request Blog & News FAQ Help & Wiki Twitter
Profile Profile Settings Account and Billing My Support Tickets Contact Support Ideas Published Followers Following Private Messages Chat Sign Out