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)
    
    
    
98,8% profitable and no repaint?
wow.
Reply
It does repaint. General rule you see this kind of profitability on a Tradingview strategy it's due to a repaint.
+1 Reply
Gonna run this through some testing, thanks for sharing!
Reply
My chart looks nothing like that, yet the script is exactly the same...what gives?
Reply
He actually left multiple scripts running on the chart when he published, which is why here you can see BB's and candle pattern indications. You should only see the entries and the background colouration as a result of adding this strategy script.
Reply
@pilotgsms Does it DO Alerts ?
Reply
karabogerald karabogerald
this is some impressive mathematics, right here. Dope, Stuff.
Reply
pilotgsms, could you please explain your MIROCANA strategy?
+1 Reply
You are looking at today's close, which is future data.
+4 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.
+2 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 PRO 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
looks good
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. :)
+4 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.
+3 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.
+7 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)


Reply
Ideas Scripts Chart
United States
United Kingdom
India
España
France
Italia
Polska
Brasil
Россия
Türkiye
Indonesia
日本
한국
Home Stock Screener Forex Signal Finder 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 Account and Billing Sign Out