Share Code Quickly

What is Harigami?

Harigami is a simple source code sharing service. You can share source code by an URL which is issued after submission.
You can also run your source code online such as Python, Ruby, JavaScript and so on.
For free.Use for code review.
Preferences
ガンマ@駆け出しエンジニア Parabolic SAR Strategy
Python
//@version=3
strategy("Parabolic SAR Strategy", overlay=true)
start = input(0.02)
increment = input(0.02)
maximum = input(0.2)
psar = sar(start, increment, maximum)
if (psar >= high)
    strategy.entry("ParLE", strategy.long, stop=psar, comment="LONG")
else
    strategy.cancel("ParLE")
if (psar <= low)
    strategy.entry("ParSE", strategy.short, stop=psar, comment="SHORT")
else
    strategy.cancel("ParSE")
plot(psar,color=lime,style =circles,linewidth = 2)

ガンマ@駆け出しエンジニア BBMA-PO
Python
//@version=3
study(title = "BBMA-PO")
source = hlc3
length = input(20, minval=1), mult = input(2.0, minval=0.001, maxval=50)
len = input(15, minval=1, title="FASTMA")
len2 = input(20, minval=1, title="FASTMA2")
len3 = input(35, minval=1, title="FASTMA3")
len4 = input(55, minval=1, title="SLOWMA")
len5 = input(85, minval=1, title="SLOWMA2")
len6 = input(120, minval=1, title="SLOWMA3")
hiline = input(0.8, "HL")
lowline = input(0.2, "LL")
showPerfectOrder = input(title="Show Perfect Order?", type=bool, defval=true)
//RSI
rsi1 = rsi(source, length)
// BB of RSI
basis = sma(rsi1, length)
dev = mult * stdev(rsi1, length)
upper = basis + dev
lower = basis - dev
br = (rsi1 - lower)/(upper - lower)
//MA OF RSI
er = ema(br,len)
er2 = ema(br,len2)
er3 = ema(br,len3)
er4 = ema(br,len4)
er5 = ema(br,len5)
er6 = ema(br,len6)
//COLOR
plot(er, title="FMA", style=line, linewidth=1, color=lime,transp=10)
plot(er2, title="FMA2", style=line, linewidth=1, color=red,transp=10)
plot(er3, title="FMA3", style=line, linewidth=1, color=yellow,transp=10)
plot(er4, title="SMA", style=line, linewidth=1, color=purple,transp=10)
plot(er5, title="SMA2", style=line, linewidth=1, color=aqua,transp=10)
plot(er6, title="SMA3", style=line, linewidth=1, color=orange,transp=10)
plot(hiline, title="HL",color=gray,style =circles,linewidth = 1)
plot(lowline, title="LL",color=gray,style =circles,linewidth = 1)
perfectOrderByUpTrend = er[1] > er2[1] and er3[1] > er4[1] and er5[1] > er6[1] ? true : false
perfectOrderByDownTrend = er[1] < er2[1] and er3[1] < er4[1] and er5[1] < er6[1] ? true : false
bgcolor(perfectOrderByUpTrend and showPerfectOrder ? green : white, transp=90, offset=-1)
bgcolor(perfectOrderByDownTrend and showPerfectOrder ? red : white, transp=90, offset=-1)
ガンマ@駆け出しエンジニア 20MTF
Python
study("EMA/SMA MTF BAND and PRICEACTION", overlay=true)
//Maband
A2 = security(tickerid, "1", sma(close, 100))//title='SMA5M'
B2 = security(tickerid, "1", sma(close, 300))//title='SMA15M'
C2 = security(tickerid, "1", sma(close, 600))//title='SMA30M'
D2 = security(tickerid, "1", sma(close, 1200))//title='SMA1H'
E2 = security(tickerid, "1", sma(close, 4800))//title='SMA4H'
A3 = security(tickerid, "1", ema(close, 100))//title='EMA5M'
B3 = security(tickerid, "1", ema(close, 300))//title='EMA15M'
C3 = security(tickerid, "1", ema(close, 600))//title='EMA30M'
D3 = security(tickerid, "1", ema(close, 1200))//title='EMA1H'
E3 = security(tickerid, "1", ema(close, 4800))//title='EMA4H'
//Mabandcolor
AL=plot(A2 , title='5MSMA', color=yellow,linewidth=1,transp=98)
BL=plot(A3 , title='5MEMA', color=yellow, linewidth=1,transp=98)
CL=plot(B2 , title='15MSMA', color=aqua, linewidth=1,transp=98)
DL=plot(B3 , title='15MEMA', color=aqua, linewidth=1,transp=98)
EL=plot(C2 , title='30MSMA', color=orange, linewidth=1,transp=98)
FL=plot(C3 , title='30MEMA', color=orange, linewidth=1,transp=98)
GL=plot(D2 , title='1HSMA', color=lime, linewidth=1,transp=98)
HL=plot(D3 , title='1HSMA', color=lime, linewidth=1,transp=98)
IL=plot(E2 , title='4HSMA', color=red, linewidth=1,transp=98)
JL=plot(E3 , title='4HEMA', color=red, linewidth=1,transp=98)
fill(AL,BL , title='5MBAND',color=yellow,transp=70)
fill(CL,DL , title='15MBAND',color=aqua,transp=70)
fill(EL,FL , title='30MBAND',color=orange,transp=70)
fill(GL,HL , title='1HBAND',color=lime,transp=70)
fill(IL,JL , title='4HBAND',color=red,transp=70)
//Priceaction
pctP = input(60, minval=1, maxval=99, title="カラカサ/トンカチの設定値")
pblb = input(2, minval=1, maxval=100, title="カラカサ/トンカチの期間")
pctS = input(5, minval=1, maxval=99, title="坊主の設定値")
spb = input(true, title="カラカサ/トンカチ")
ssb = input(true, title="坊主")
sib = input(true, title="はらみ足")
sob = input(true, title="包み足")
//PBar Percentages
pctCp = pctP * .01
pctCPO = 1 - pctCp
//Shaved Bars Percentages
pctCs = pctS * .01
pctSPO = pctCs
range = high - low
///PinBars
pBarUp() => spb and open > high - (range * pctCPO) and close > high - (range * pctCPO) and low <= lowest(pblb) ? 1 : 0
pBarDn() => spb and open < high - (range *  pctCp) and close < high-(range * pctCp) and high >= highest(pblb) ? 1 : 0
//Shaved Bars
sBarUp() => ssb and (close >= (high - (range * pctCs)))
sBarDown() => ssb and close <= (low + (range * pctCs))
//Inside Bars
insideBar() => sib and high <= high[1] and low >= low[1] ? 1 : 0
outsideBar() => sob and (high > high[1] and low < low[1]) ? 1 : 0
//PinBars
barcolor(pBarUp() ? lime : na,title="カラカサ/トンカチ上")
barcolor(pBarDn() ? red : na,title="カラカサ/トンカチ下")
plotshape(pBarUp(),title="カラカサ/トンカチ上2",style=shape.triangleup,text="PB",color=blue,textcolor=blue,location=location.belowbar)
plotshape(pBarDn(),title="カラカサ/トンカチ下2",style=shape.triangledown,text="PB",color=red,textcolor=red,location=location.abovebar)
//Shaved Bars
plotshape(sBarUp(),title="坊主上",style=shape.triangleup,color=aqua,location=location.belowbar)
plotshape(sBarDown(),title="坊主下",style=shape.triangledown,color=purple,location=location.abovebar)
//Inside and Outside Bars
barcolor(insideBar() ? yellow : na ,title="はらみ足")
barcolor(outsideBar() ? orange : na ,title="包み足")
//Alert
alertcondition(pBarUp() , title = "PU", message = "↑")
alertcondition(pBarDn() , title = "PD", message = "↓")
alertcondition(sBarUp() , title = "SU", message = "↑")
alertcondition(sBarDown() , title = "SD", message = "↓")
alertcondition(insideBar() , title = "IB", message = "転換")
alertcondition(outsideBar() , title = "OB", message = "転換")
anonymous No title
Python
//@version=4
strategy(title="MTF MACD strategy", overlay=false)

// Getting inputs
len = input(title='時間軸', type=input.resolution, defval="60")
res = input(defval=true, title="チェック=MTF表示")
res2 = res ? len : timeframe.period
fast_length = input(title="Fast Length", type=input.integer, defval=12)
slow_length = input(title="Slow Length", type=input.integer, defval=26)
src = input(title="Source", type=input.source, defval=close)
signal_length = input(title="Signal Smoothing", type=input.integer, minval = 1, maxval = 50, defval = 9)
sma_source = input(title="Simple MA(Oscillator)", type=input.bool, defval=false)
sma_signal = input(title="Simple MA(Signal Line)", type=input.bool, defval=false)

// Plot colors
col_grow_above = #26A69A
col_grow_below = #FFCDD2
col_fall_above = #B2DFDB
col_fall_below = #EF5350
col_macd = #0094ff
col_signal = #ff6a00

// Calculating
fast_ma = sma_source ? sma(src, fast_length) : ema(src, fast_length)
slow_ma = sma_source ? sma(src, slow_length) : ema(src, slow_length)
macd = fast_ma - slow_ma
signal = sma_signal ? sma(macd, signal_length) : ema(macd, signal_length)
hist = macd - signal

outMacD = security(syminfo.tickerid, res2, macd)
outSignal = security(syminfo.tickerid, res2, signal)
outHist = security(syminfo.tickerid, res2, hist)

if (crossover(outHist, 0))
    strategy.entry("MacdLE", strategy.long, comment="MacdLE")

if (crossunder(outHist, 0))
    strategy.entry("MacdSE", strategy.short, comment="MacdSE")

plot(outHist, title="Histogram", style=plot.style_columns, color=(hist>=0 ? (hist[1] < hist ? col_grow_above : col_fall_above) : (hist[1] < hist ? col_grow_below : col_fall_below) ), transp=0 )
plot(outMacD, title="MACD", color=col_macd, transp=0)
plot(outSignal, title="Signal", color=col_signal, transp=0)
anonymous No title
Python
今日は。. 
 
できるダウンロードXEvilで無料ですか? 
あなたのサポートから情報を得た。 XEvilは本当にcaptcha解決のための最高のプログラムですが、私はそれの最新バージョンが必要です。 
 
ありがとう!.
anonymous No title
Python
# coding: utf-8
import sys, os
sys.path.append(os.pardir)  # 親ディレクトリのファイルをインポートするための設定
import numpy as np
from dataset.mnist import load_mnist
from PIL import Image


def img_show(img):
    pil_img = Image.fromarray(np.uint8(img))
    pil_img.show()

(x_train, t_train), (x_test, t_test) = load_mnist(flatten=True, normalize=False)

img = x_train[0]
label = t_train[0]
print(label)  # 5

print(img.shape)  # (784,)
img = img.reshape(28, 28)  # 形状を元の画像サイズに変形
print(img.shape)  # (28, 28)

img_show(img)
anonymous No title
Python
Dearest in mind, 
 
I would like to introduce myself for the first time. My name is Barrister David Gomez Gonzalez, the personal lawyer to my late client. 
Who worked as a private businessman in the international field. In 2012, my client succumbed to an unfortunate car accident. My client was single and childless. 
He left a fortune worth $12,500,000.00 Dollars in a bank in Spain. The bank sent me message that I have to introduce a beneficiary or the money in their bank will be confiscate. My purpose of contacting you is to make you the Next of Kin. 
My late client left no will, I as his personal lawyer, was commissioned by the Spanish Bank to search for relatives to whom the money left behind could be paid to. I have been looking for his relatives for the past 3 months continuously without success. Now I explain why I need your support, I have decided to make a citizen of the same country with my late client the Next of Kin. 
 
I hereby ask you if you will give me your consent to present you to the Spanish Bank as the next of kin to my deceased client. 
I would like to point out that you will receive 45% of the share of this money, 45% then I would be entitled to, 10% percent will be donated to charitable organizations. 
 
If you are interested, please contact me at my private contact details by Tel: 0034-604-284-281, Fax: 0034-911-881-353, Email: amucioabogadosl019@gmail.com 
I am waiting for your answer 
Best regards, 
 
Lawyer: - David Gomez Gonzalez
monkukui No title
C++
50 149
45 47 8
36 44 2
27 34 10
47 9 9
9 45 1
4 9 5
29 24 4
28 3 6
10 7 1
9 33 2
29 25 1
35 20 1
47 4 10
49 24 5
16 35 1
39 23 9
7 26 1
45 33 1
19 43 8
11 25 4
17 26 1
23 18 8
28 18 9
24 31 1
40 1 6
17 20 9
42 5 10
39 28 4
10 40 5
9 22 2
4 33 1
17 7 1
6 27 1
24 49 5
40 2 6
48 28 6
4 33 1
23 28 1
37 25 5
12 23 9
5 44 6
45 22 3
18 48 1
16 20 1
19 1 8
39 14 10
37 49 8
33 47 7
24 25 2
39 32 2
43 1 1
36 8 1
44 8 7
37 39 2
23 3 6
44 36 2
6 27 1
32 3 2
32 14 6
11 30 6
14 32 6
22 9 2
25 31 1
9 15 10
48 30 5
29 38 9
11 31 9
4 22 8
17 26 1
38 39 1
47 22 2
21 14 6
1 40 6
38 23 8
12 7 8
1 43 1
30 18 7
1 19 8
36 6 9
44 46 3
31 25 1
38 11 9
47 22 2
48 23 6
37 14 6
48 18 1
48 30 5
17 10 3
13 42 3
48 28 6
46 4 8
32 38 4
4 44 4
10 40 5
25 38 6
8 27 6
23 32 10
28 38 2
16 50 9
1 2 5
39 25 7
19 35 8
7 17 1
36 8 1
44 46 3
4 44 4
8 18 10
29 11 2
18 27 9
18 27 9
29 37 10
3 38 9
35 19 8
33 44 8
38 28 2
37 31 6
26 12 4
17 35 10
46 5 1
28 32 6
31 49 8
45 9 1
4 36 6
4 8 10
24 31 1
38 39 1
26 10 6
41 21 10
39 32 2
46 5 1
39 37 2
3 12 6
26 12 4
8 6 6
11 29 2
31 29 2
37 24 7
50 16 9
23 28 1
22 33 4
35 20 1
32 37 4
39 3 7
33 45 1
3 32 2
40 19 9
25 37 5
45 4 2
37 38 4
monkukui No title
C++
50 100
47 3 6
42 36 9
45 19 10
46 15 5
13 41 2
7 49 9
8 14 9
3 42 3
11 12 5
15 30 2
24 11 4
33 46 10
8 43 7
12 35 4
22 27 10
10 18 2
11 39 6
45 16 1
32 48 4
39 16 6
25 44 7
48 28 4
29 49 3
15 12 5
1 31 3
37 24 8
27 9 2
15 27 6
16 15 9
15 35 5
7 17 8
11 19 4
10 32 10
28 38 8
32 3 4
33 9 8
5 23 7
48 39 7
30 6 5
23 18 7
46 9 2
38 49 8
41 27 9
22 38 3
47 2 4
23 21 6
16 43 8
32 23 2
39 28 10
33 40 4
2 17 2
13 26 3
25 13 10
4 16 1
3 20 4
41 40 3
40 10 10
37 3 10
20 34 3
33 17 7
24 20 6
32 14 9
37 31 10
14 33 5
49 16 7
31 34 8
38 18 9
7 36 2
23 43 9
3 49 4
50 38 10
40 20 8
2 37 1
43 42 7
11 25 7
3 1 4
43 29 4
1 48 7
10 13 6
8 12 8
24 4 3
18 42 5
35 46 5
45 30 10
27 21 4
29 39 8
33 50 7
17 15 9
19 34 3
8 32 3
38 8 8
18 43 4
5 24 6
31 16 1
49 9 5
13 47 6
42 46 10
26 49 7
26 22 6
12 1 5
monkukui No title
C++
50 150
42 43 2
37 49 8
41 26 10
10 13 1
9 33 6
19 4 6
43 23 8
49 3 10
8 38 4
16 10 7
34 24 4
43 18 5
28 6 8
23 32 9
30 15 6
22 38 10
49 9 3
33 40 1
18 25 2
11 39 7
17 15 10
25 16 2
16 19 1
38 24 9
1 31 9
16 15 5
9 7 1
28 39 2
10 36 7
10 40 9
48 46 10
9 32 4
7 17 1
46 24 8
43 2 10
28 38 5
4 24 4
34 20 3
26 30 2
13 47 8
50 7 2
20 24 3
16 49 5
33 14 7
3 2 6
14 44 8
38 41 10
35 46 3
47 23 3
48 31 6
37 2 9
46 9 5
9 28 4
40 38 8
47 3 3
36 42 6
14 8 8
20 3 5
13 41 2
12 15 8
26 13 3
10 32 5
26 49 6
18 10 7
29 39 1
29 48 8
12 28 5
5 24 2
15 46 1
50 38 7
40 20 4
13 25 5
47 2 9
34 21 8
8 43 4
3 1 4
16 39 4
48 1 6
8 12 6
46 42 7
44 25 4
43 12 3
45 19 3
26 22 1
32 14 9
45 16 10
47 30 7
11 12 7
31 13 4
49 29 2
6 25 2
32 48 10
3 44 4
11 25 7
26 33 8
9 27 10
21 23 1
27 41 6
15 35 10
12 1 5
26 39 4
17 33 10
20 8 4
9 20 8
40 41 6
6 26 10
42 9 4
11 19 7
16 31 4
16 43 2
29 43 2
42 3 5
18 38 1
50 33 4
33 28 1
45 30 7
13 49 9
32 16 2
7 36 10
28 48 9
37 31 7
10 23 9
5 23 3
4 16 6
22 27 10
48 39 5
24 11 10
27 19 3
46 33 2
49 7 6
37 46 8
17 2 3
19 12 9
8 32 3
35 12 5
46 29 3
37 24 7
15 27 10
21 27 2
34 19 10
18 23 9
34 31 2
3 37 5
34 46 10
32 3 4
18 42 9
36 24 8
6 30 1
49 38 7
5 37 6
年末年始は機械学習・深層学習を勉強しませんか?
広告
未経験から最短でエンジニアへの転職を目指すなら