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


詳細設定
+
ガンマ@駆け出しエンジニア MACD 4C
Python
study(shorttitle = "MACD 4C", title = "4 colour MACD")
fastMA = input(title="Fast moving average", type = integer, defval = 12, minval = 7)
slowMA = input(title="Slow moving average", type = integer, defval = 26, minval = 7)
lastColor = yellow
[currMacd,_,_] = macd(close[0], fastMA, slowMA, 9)
[prevMacd,_,_] = macd(close[1], fastMA, slowMA, 9)
plotColor = currMacd > 0 
    ? currMacd > prevMacd ? lime : green 
    : currMacd < prevMacd ? maroon : red
plot(currMacd, style = histogram, color = plotColor, linewidth = 3)
plot(0, title = "Zero line", linewidth = 1, color = gray)
  • 0
  • 0
anonymous タイトルなし
Python
Hi harigami.jp webmaster, 
 
Getting your site to rank high for popular searches on Google can transform your business and your life. 
Considering that nowadays the most important factor in search engines ranking is original content, you will get on google’s first page in just weeks, using this new plugin: 
 
https://wpnewsranker.customerreviews.biz 
 
WP News Ranker is an AUTOMATED WordPress Plugin that will create original content for your site every day that is on-trend, in the news, unique, and answers what people are actively searching for right now. 
 
Learn more about WP News Ranker here: https://wpnewsranker.freewebinar.live 
 
Best regards
  • 0
  • 0
anonymous タイトルなし
Python
Hello there, 
 
This is Julie from SMS.to, 
 
As a licensed telecom company we can offer you unbeatable prices for SMS messaging in Asia and internationally. 
 
We are having a special offer this month for new customers, 
 
Can you point me to the person responsible for marketing to discuss and share my special offer? 
 
 
Julie Poblador 
Senior Account Manager 
sales@sms.to | julie@sms.to 
http://www.sms.to/ 
+1 (914) 340-0700 
+356 277 610 22 
+357 22 000 522 
+44 8008085314 
SMS.to by Intergo Telecom Ltd
  • 0
  • 0
anonymous testH.264
PlainText
ffmpeg -i ./input.h264 -ss 0 -t 10 -f image2 -vcodec png -r 100 "./test/%05d.png"
  • 0
  • 0
anonymous タイトルなし
Python
//@version=4
study("MTF Donchian Fibonacci", shorttitle="DCF MTF", overlay=true)
//数値
len = input(defval="60", type=input.resolution, title="時間軸")
res = input(defval=false, title="チェック=MTF表示")
len3 = input(defval=37, minval=1, title="期間")
res2 = res ? len : timeframe.period
h = security(syminfo.tickerid, res2, highest(high, len3))
l = security(syminfo.tickerid, res2, lowest(low, len3))
basis = avg(h, l)
len2 = h - l
h2 = h - len2 * 0.236
h1 = h - len2 * 0.382
l1 = h - len2 * 0.618
l2 = h - len2 * 0.786
//カラー
fill(plot(h, title="±3σ"), plot(l), color=color.aqua)
fill(plot(h2, title="±2σ"), plot(l2), color=color.aqua)
fill(plot(h1), plot(l1), title="±1σ", color=color.aqua)
plot(basis, color=color.orange, style=plot.style_cross)
plot(basis, color=color.orange, style=plot.style_cross)

// cross 3σ alert
cross_h = high==h
cross_l = low==l

plotshape(cross_h, "crossover +3σ", shape.arrowdown, location.abovebar, color.red, size=size.normal)
plotshape(cross_l, "crossunder -3σ", shape.arrowup, location.belowbar, color.green, size=size.normal)

alertcondition(cross_h or cross_l, "cross ±3")
  • 0
  • 1
anonymous タイトルなし
Python
//@version=4
study("MTF Donchian Fibonacci", shorttitle="DCF MTF", overlay=true)
//数値
len = input(defval="60", type=input.resolution, title="時間軸")
res = input(defval=false, title="チェック=MTF表示")
len3 = input(defval=37, minval=1, title="期間")
res2 = res ? len : timeframe.period
h = security(syminfo.tickerid, res2, highest(high, len3))
l = security(syminfo.tickerid, res2, lowest(low, len3))
basis = avg(h, l)
len2 = h - l
h2 = h - len2 * 0.236
h1 = h - len2 * 0.382
l1 = h - len2 * 0.618
l2 = h - len2 * 0.786

//カラー
fill(plot(h, title="±3σ"), plot(l), color=color.aqua)
fill(plot(h2, title="±2σ"), plot(l2), color=color.aqua)
fill(plot(h1), plot(l1), title="±1σ", color=color.aqua)
plot(basis, color=color.orange, style=plot.style_cross)
plot(basis, color=color.orange, style=plot.style_cross)

// cross 3σ alert
cross_h = high==h
cross_l = low==l

plotshape(cross_h, "crossover +3σ", title="sell", style=shape.triangledown, text="sell", color=color.red, textcolor=color.red, location=location.abovebar)
plotshape(cross_l, "crossunder -3σ", title="buy", style=shape.triangleup, text="buy", color=color.blue, textcolor=color.blue, location=location.belowbar)

alertcondition(title="sell", message="sell" cross_h, "cross +3σ")
alertcondition(title="buy", message="buy" cross_l, "cross -3σ")
  • 0
  • 0
anonymous タイトルなし
Java
/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */
package repo6.pkg3;

/**
 *
 * @author g1972100
 */
public class Repo63 {

    public static void main(String argv[]) {

        //70kg=X君,60kg=Y君,30kg=Z君,20kg=W君とする
        int x=70,y=60,z=30,w=20;
        int res;    //result
        int px,py,pz,pw;    //power=distance*heavy
        
        for(int i=-3;i<=3;i++){
            px=x*i;
            for(int j=-3;j<=3;j++){
                py=y*j;
                for(int k=-3;k<=3;k++){
                    pz=z*k;
                    for(int l=-3;l<=3;l++){
                        pw=w*l;
                        res=px+py+pz+pw;
                        if(res==0){
                            if(((i!=j)&&(i!=k)&&(i!=l)&&(j!=k)&&(j!=l)&&(k!=l))&&((i!=0)&&(j!=0)&&(k!=0)&&(l!=0))){
                                System.out.println("X=" + i +" Y=" + j+" Z=" + k+" W=" + l + " (-3=A,-2=B-1=C,1=D,2=E,3=Fを指します)");                             
                            }
                        }
                    }
                }
            }
        }
    }
}
  • 0
  • 1
anonymous タイトルなし
Python
We are most delighted in partnering with you, and we intend to maintain a Silent/Financial Position 
on our Business with your Company as we look forward to a prospective business relationship. 
I am Mrs. Suhayba Ammar, wife of Sadiq Al-Bashir the Sudanese president's brother from Sudan to Turkey 
on asylum and now in Belgium. I have important business to discuss with you. Looking forward to hearing 
from you soon sadiq.al-bashir@mail.com 
Regards, 
Mrs. Suhayba Ammar.
  • 0
  • 0
anonymous タイトルなし
C#
sing System;

public class Hello{
  public static void Main(){
    Console.WriteLine("hello world!_test1012");
  }
}
  • 0
  • 1
anonymous タイトルなし
Ruby
# coding: utf-8

class Test
  def initialize(value)
  end

  def transpose(amount)
    "" 
  end
end
  • 0
  • 0