Harigami
ログイン
Harigamiは、ログイン不要のコード共有サービスです。コードの投稿後に発行されるURLでコードを共有できます。
PythonやRubyなど一部の言語は、投稿後にオンラインで実行することもできます。
誰でも無料で使えて、広告もありません。コードレビューやスニペットの代わりに使ってみてください。


詳細設定
+
anonymous 課題
CSS
@charset "utf-8";

*,
*::before,
*::after {
  box-sizing: border-box;
}

/* 基本設定
****************************************/
html {
  font-size: 62.5%;
}

body {
  font-size: 16px;
  line-height: 1.7;
  color: #333;
  font-family: "Noto Sans JP", "游ゴシック Medium", "游ゴシック体", "Yu Gothic Medium", YuGothic, "ヒラギノ角ゴ ProN", "Hiragino Kaku Gothic ProN", "メイリオ", Meiryo, "MS Pゴシック", "MS PGothic", sans-serif;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

img {
  max-width: 100%;
  height: auto;
  vertical-align: middle;
}

iframe {
  vertical-align: middle;
}

/* CLEAR-FIX */
.clearfix {
  zoom: 1;
}

.clearfix:after {
  clear: both;
  content: ".";
  display: block;
  height: 0;
  line-height: 0;
  visibility: hidden;
}


/* 共通
****************************************/

.inner {
  width: 1000px;
  margin: 0 auto;
}

.flex {
  display: flex;
}

.fl_between {
  justify-content: space-between;
}

.sec {
  padding: 70px 0;
}

.sec_icon {
  display: block;
  text-align: center;
  font-size: 30px;
  line-height: 1;
  margin-bottom: 10px;
}

.sec_ttl {
  font-size: 24px;
  text-align: center;
  margin-bottom: 50px;
  letter-spacing: 0.075em;
}

.sec_ttl span {
  font-weight: bold;
}

.sec_ttl span::before,
.sec_ttl span::after {
  content: '';
  display: inline-block;
  width: 40px;
  height: 1px;
  background: #333;
  vertical-align: middle;
}

.sec_ttl span::before {
  margin-right: 50px;
}

.sec_ttl span::after {
  margin-left: 50px;
}


/* ヘッダー
****************************************/
.header {
  width: 100%;
  padding: 5px 0;
  background: rgba(255, 255, 255, 0.8);
  position: fixed;
  top: 0;
  left: 0;
  z-index: 10;
}

.header_inner {
  align-items: flex-end;
}

.header_nav li {
  margin-left: 45px;
}

.header_nav a {
  color: #333;
  text-decoration: none;
}

.header_nav a::after {
  content: '';
  display: block;
  width: 0;
  height: 2px;
  background: #333;
  transition: 0.3s;
}

.header_nav a:hover::after {
  width: 100%;
}


/* メインビジュアル
****************************************/
.mv {
  height: 400px;
  background-image: url(../image/mv.jpg);
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  color: #fff;
  text-align: center;
  padding-top: 150px;
}

.mv_ttl {
  font-size: 50px;
  margin-bottom: 40px;
}

.mv_subttl {
  font-size: 20px;
}



/* プロフィール
****************************************/
.profile_cont {
  width: 700px;
  margin: 0 auto;
  align-items: flex-start;
}

.profile_img {
  width: 280px;
  border-radius: 50%;
  overflow: hidden;
}

.profile_textbox {
  width: 380px;
}

.profile_name {
  font-size: 24px;
  font-weight: bold;
  margin-bottom: 15px;
}

/* スキル
****************************************/

.skill {
  background: url(../image/bg_slill.jpg) center / cover no-repeat;
}

.skill_list li {
  width: 220px;
}

.skill_list figure {
  text-align: center;
  margin-bottom: 50px;
}

.skill_list a {
  color: #0ca8cf;
}

/* 実績
****************************************/

.works_cont {
  width: 300px;
}

.works_cont_ttl {
  background: #0ca8cf;
  color: #fff;
  font-size: 18px;
  text-align: center;
  padding: 10px;
  font-weight: normal;
  margin-bottom: 35px;
  position: relative;
}

.works_cont_ttl::before {
  content: '';
  width: 0;
  height: 0;
  border-style: solid;
  border-width: 14px 14px 0 14px;
  border-color: #0ca8cf transparent transparent transparent;
  position: absolute;
  top: 100%;
  left: 50%;
  margin-left: -14px;
}

.works_cont_comennt {
  font-size: 18px;
  margin: 10px 0 5px;
}

.works_cont_link {
  text-align: right;
}

.works_cont_link a {
  color: #333;
  font-size: 14px;
}


/* お問合せ
****************************************/
.contact {
  background: #dbf6fd;
}

.contact_snslist {
  justify-content: center;
}

.contact_snslist li + li {
  margin-left: 75px;
}

.contact_snslist i {
  font-family: "Font Awesome 5 Brands";
  color: #0a86a6;
  font-size: 72px;
}

.contact_snslist a {
  transition: 0.3s;
}

.contact_snslist a:hover {
  opacity: 0.8;
}

.contact_linkbtn {
  width: 300px;
  margin: 65px auto 0;
}

.contact_linkbtn a {
  display: block;
  text-align: center;
  color: #0ca8cf;
  font-size: 24px;
  font-weight: bold;
  line-height: 80px;
  text-decoration: none;
  border: 2px solid #0ca8cf;
  border-radius: 40px;
  transition: 0.3s;
}


/* フッター
****************************************/
.footer {
  background: #0a86a6;
  color: #fff;
  text-align: center;
  font-size: 20px;
}

.contact_linkbtn a:hover {
  background: #0ca8cf;
  color: #dbf6fd;
}

.footer {
  padding: 25px;
}
  • 0
  • 0
anonymous タイトルなし
HTML
Twitterでは、
#クリエイターズファクトリー
#CF課題
などのハッシュタグをつけて投稿してくれると嬉しいです!
  • 0
  • 1
anonymous タイトルなし
Python
//@version=3
study(title="RSI-PO", overlay=false)
src = close, 
len = input(14, minval=1, title="RSI Length")
len2 = input(15, minval=1, title="SMA of RSI Length")
len3 = input(20, minval=1, title="SMA of RSI Length")
len4 = input(35, minval=1, title="SMA of RSI Length")
len5 = input(55, minval=1, title="SMA of RSI Length")
len6 = input(85, minval=1, title="SMA of RSI Length")
len7 = input(120, minval=1, title="SMA of RSI Length")
up = rma(max(change(src), 0), len)
down = rma(-min(change(src), 0), len)
rsi = down == 0 ? 100 : up == 0 ? 0 : 100 - (100 / (1 + up / down))
emarsi = ema(rsi,len2)
emarsi2 = ema(rsi,len3)
emarsi3 = ema(rsi,len4)
emarsi4 = ema(rsi,len5)
emarsi5 = ema(rsi,len6)
emarsi6 = ema(rsi,len7)
showPerfectOrder = input(title="Show Perfect Order?", type=bool, defval=true)

plot(emarsi, title="SMA of RSI", style=line, linewidth=1, color=orange)
plot(emarsi2, title="EMA of RSI", style=line, linewidth=1, color=lime)
plot(emarsi3, title="SMA of RSI", style=line, linewidth=1, color=aqua)
plot(emarsi4, title="EMA of RSI", style=line, linewidth=1, color=purple)
plot(emarsi5, title="SMA of RSI", style=line, linewidth=1, color=yellow)
plot(emarsi6, title="EMA of RSI", style=line, linewidth=1, color=red)
band1 = hline(70, title="Upper Line", linestyle=dashed, linewidth=1, color=gray)
band0 = hline(30, title="Lower Line", linestyle=dashed, linewidth=1, color=gray)

perfectOrderByUpTrend = emarsi[1] > emarsi2[1] and emarsi3[1] > emarsi4[1] and emarsi5[1] > emarsi6[1] ? true : false
perfectOrderByDownTrend = emarsi[1] < emarsi2[1] and emarsi3[1] < emarsi4[1] and emarsi5[1] < emarsi6[1] ? true : false
bgcolor(perfectOrderByUpTrend and showPerfectOrder ? green : white, transp=90, offset=-1)
bgcolor(perfectOrderByDownTrend and showPerfectOrder ? red : white, transp=90, offset=-1)

switch = 0
setA = 0
setB = 0


if (perfectOrderByUpTrend and (switch[1] == 0))
    switch := 1
    setA := 1
    setB := 0
else    
    if (perfectOrderByDownTrend and (switch[1] == 1))
        switch := 0
        setA := 0
        setB := 1
    else
        switch := nz(switch[1],0)
        setA := 0
        setB := 0
        
      

alertcondition(setA, title="trend+", message="TREND UP")
alertcondition(setB, title="trend-", message="TREND DOWN")
  • 0
  • 0
anonymous タイトルなし
HTML
<p><strong>👇雑談や質問が気軽にできる♪&nbsp;ジャパカジ掲示板</strong></p>
<p>ユーザー同士の交流や雑談、ジャパカジスタッフへの<a href="/forum" target="_blank" title="">お問い合わせ</a>、なんでも大歓迎!</p>
<div><a href="/forum" title=""><img alt="ジャパカジ掲示板はじめました!詳細ページへ" class="full hidden-xs" src="/images/home/images/casino-forum-ad-pc_1502x192.jpg" style="" /><img alt="ジャパカジ掲示板はじめました!詳細ページへ" class="full visible-xs" font-size:10px="" src="/images/home/images/casino-forum-ad-mobile_702x178.jpg" style="" /></a></div>
  • 0
  • 0
anonymous タイトルなし
Python
<p><strong>👇雑談や質問が気軽にできる♪&nbsp;ジャパカジ掲示板</strong></p>
<p>ユーザー同士の交流や雑談、ジャパカジスタッフへの<a href="/forum" target="_blank" title="">お問い合わせ</a>、なんでも大歓迎!</p>
<div><a href="/forum" title=""><img alt="ジャパカジ掲示板はじめました!詳細ページへ" class="full hidden-xs" src="/images/home/images/casino-forum-ad-pc_1502x192.jpg" style="" /><img alt="ジャパカジ掲示板はじめました!詳細ページへ" class="full visible-xs" font-size:10px="" src="/images/home/images/casino-forum-ad-mobile_702x178.jpg" style="" /></a></div>
  • 0
  • 0
anonymous タイトルなし
Python
//@version=3
study(title="DMI ADX TREND", shorttitle="ADX TREND", overlay = true)

//数値
adxlen = input(14, title="ADX Smoothing")
dilen = input(14, title="DI Length")
thold = input(20, title="Threshold")

threshold = thold

//ADX±DI
dirmov(len) =>
    up = change(high)
    down = -change(low)
    truerange = rma(tr, len)
    plus = fixnan(100 * rma(up > down and up > 0 ? up : 0, len) / truerange)
    minus = fixnan(100 * rma(down > up and down > 0 ? down : 0, len) / truerange)
    [plus, minus]
    
adx(dilen, adxlen) => 
    [plus, minus] = dirmov(dilen)
    sum = plus + minus
    adx = 100 * rma(abs(plus - minus) / (sum == 0 ? 1 : sum), adxlen)
    [adx, plus, minus]

[sig, up, down] = adx(dilen, adxlen)

osob=input(40,title="Exhaustion Level for ADX, default = 40")
col = sig >= sig[1] ? green : sig <= sig[1] ? red : gray 

//アラート
trender = (sig >= up or sig >= down) ? 1 : 0
tru = (sig >= up or sig >= down) 
trd = (sig <= up and sig <= down) 

switch = 0
setA = 0
setB = 0

if (tru and (switch[1] == 0))
    switch := 1
    setA := 1
    setB := 0
else    
    if (trd and (switch[1] == 1))
        switch := 0
        setA := 0
        setB := 1
    else
        switch := nz(switch[1],0)
        setA := 0
        setB := 0
        
 //カラー&シグナル
bgcolor(trender>0?blue:aqua, transp=93)       
plotshape(setA,title="TRENDUP",style=shape.triangleup,text="TUP",color=green,textcolor=green,location=location.belowbar)
plotshape(setB,title="TRENDDOWN",style=shape.triangledown,text="TDOWN",color=red,textcolor=red,location=location.abovebar)
alertcondition(setA, title="trend+", message="TREND UP")
alertcondition(setB, title="trend-", message="TREND DOWN")
  • 0
  • 0
anonymous タイトルなし
Python
//@version=3
study(title="GBP/USD TREND", shorttitle="GUT")

//GBP/USD
hline(50)
gbpaud = security("GBPAUD", period, rsi(close, 26))
gbpcad = security("GBPCAD", period, rsi(close, 26))
gbpchf = security("GBPCHF", period, rsi(close, 26))
gbpjpy = security("GBPJPY", period, rsi(close, 26))
gbpeur = security("GBPEUR", period, rsi(close, 26))
gbpnzd = security("GBPNZD", period, rsi(close, 26))
gbpusd = security("GBPUSD", period, rsi(close, 26))

usdaud = security("USDAUD", period, rsi(close, 26))
usdcad = security("USDCAD", period, rsi(close, 26))
usdchf = security("USDCHF", period, rsi(close, 26))
usdjpy = security("USDJPY", period, rsi(close, 26))
usdeur = security("USDEUR", period, rsi(close, 26))
usdgbp = security("USDGBP", period, rsi(close, 26))
usdnzd = security("USDNZD", period, rsi(close, 26)) 
//ADX TREND
adxlen = input(14, title="ADX")
dilen = input(14, title="DI")
thold = input(20, title="Threshold")

threshold = thold

dirmov(len) =>
    up = change(high)
    down = -change(low)
    truerange = rma(tr, len)
    plus = fixnan(100 * rma(up > down and up > 0 ? up : 0, len) / truerange)
    minus = fixnan(100 * rma(down > up and down > 0 ? down : 0, len) / truerange)
    [plus, minus]
    
adx(dilen, adxlen) => 
    [plus, minus] = dirmov(dilen)
    sum = plus + minus
    adx = 100 * rma(abs(plus - minus) / (sum == 0 ? 1 : sum), adxlen)
    [adx, plus, minus]

[sig, up, down] = adx(dilen, adxlen)

osob=input(40,title="Exhaustion Level for ADX, default = 40")


col = sig >= sig[1] ? green : sig <= sig[1] ? red : gray 

//coler&signal
plot(avg(gbpaud, avg(gbpcad, gbpchf, gbpjpy, gbpeur, gbpnzd, gbpusd)), "GBP", blue)
plot(avg(usdaud, avg(usdcad, usdchf, usdjpy, usdeur, usdgbp, usdnzd)), "USD", orange)
trender = (sig >= up or sig >= down) ? 1 : 0
bgcolor(trender>0?purple:na, transp=93)
  • 0
  • 0
anonymous タイトルなし
Python
//@version=3
study(title="DMI ADX TREND", shorttitle="ADX TREND")

adxlen = input(14, title="ADX Smoothing")
dilen = input(14, title="DI Length")
thold = input(20, title="Threshold")

threshold = thold

//数値
dirmov(len) =>
    up = change(high)
    down = -change(low)
    truerange = rma(tr, len)
    plus = fixnan(100 * rma(up > down and up > 0 ? up : 0, len) / truerange)
    minus = fixnan(100 * rma(down > up and down > 0 ? down : 0, len) / truerange)
    [plus, minus]
    
adx(dilen, adxlen) => 
    [plus, minus] = dirmov(dilen)
    sum = plus + minus
    adx = 100 * rma(abs(plus - minus) / (sum == 0 ? 1 : sum), adxlen)
    [adx, plus, minus]

[sig, up, down] = adx(dilen, adxlen)

osob=input(40,title="Exhaustion Level for ADX, default = 40")


col = sig >= sig[1] ? green : sig <= sig[1] ? red : gray 

//カラー
p1 = plot(sig, color=col, title="ADX")
p2 = plot(sig, color=col,   title="ADX")
p3 = plot(up, color=blue, linewidth = 1, title="+DI")
p4 = plot(up, color=blue, style=circles, linewidth=1, title="+DI")
p5 = plot(down, color=fuchsia, linewidth = 1, title="-DI")
p6 = plot(down, color=fuchsia, style=circles, linewidth=1, title="-DI")
h1 = plot(threshold, color=black, linewidth =1, title="Threshold")


trender = (sig >= up or sig >= down) ? 1 : 0
bgcolor(trender>0?blue:aqua, transp=93)

//アラート
Up_Cross = crossover(up, threshold)
alertcondition(Up_Cross, title="DMI+ cross", message="DMI+ cross")
Down_Cross = crossover(down, threshold)
alertcondition(Down_Cross, title="DMI- cross", message="DMI- cross")
  • 0
  • 0
anonymous タイトルなし
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)
  • 0
  • 0
anonymous タイトルなし
Python
//@version=3
strategy("Stochastic Slow Strategy", overlay=false)
length = input(14, minval=1)
OverBought = input(80)
OverSold = input(20)
smoothK = 3
smoothD = 3

k = sma(stoch(close, high, low, length), smoothK)
d = sma(k, smoothD)

if (not na(k) and not na(d))
    if (crossover(k,d) and k < OverSold)
        strategy.entry("StochLE", strategy.long, comment="LONG")
    if (crossunder(k,d) and k > OverBought)
        strategy.entry("StochSE", strategy.short, comment="SHORT")

plot(OverBought,color=red,style=3)
plot(OverSold,color=lime,style=3)
plot(k,color=aqua)
plot(d,color=purple)
  • 0
  • 0