Code Monkey home page Code Monkey logo

futu-scripts's Introduction

futu-scripts

This repo holds the scripts developed for 富途牛牛

Developers 开发者

Please fill in your Slack username, Github username, and skill level:

  • good: expert in at least another coding language and can work with pine script documentation
  • average: can modify pine script and make small changes
  • starting: just learning to code

请填写你的Slack用户名、Github用户名和技术水平:

  • 好:至少是另一种编码语言的专家,并能使用pine script文档
  • 一般:会修改pine script,并能做小的改动
  • 起始:刚开始学代码
Slack Name Github Name Skill Level
@Toby Zhou - 数据攻城狮 lisangzhou good
XXX YYY ZZZ

FUTU

PC和MOB区别:由于手机查看的时候线条太多,MOB方案去掉了SMA线。建议使用文件的方式。

富途可以通过两种方式自定义指标;

  • 自行添加代码;

    1. 复制过去需要自行添加变量:P1,P2,P3,P4;
    2. 需要添加P1...P4的最大值,不然Win平台会有bug(仅影响修改,不影响显示,version:10.8.7958.08071518);
    3. 注意软件的提示。
  • 文件导入;

    1. 下载自定义的指标文件(链接见下方);
    2. 导入自定义的指标文件即可;

参数设置(均线)

如何你会一点编程建议使用变量的形式来替代数字(5,20,60,120)

参数名 默认值 最大值 最小值
P1 5 1000 0
P2 20 1000 0
P3 60 1000 0
P4 120 1000 0

文件导入

GLL 乖离率

CS:(CLOSE-MA(CLOSE,20))/MA(CLOSE,20)*100,LINETHICK1,COLORFF8D1E;
SM:(MA(CLOSE,20)-MA(CLOSE,60))/MA(CLOSE,P2)*100,LINETHICK1,COLOR0CAEE6;
ML:(MA(CLOSE,60)-MA(CLOSE,120))/MA(CLOSE,P3)*100,COLORSTICK;

双均线

W1:=REF(CLOSE,20);
W2:=REF(CLOSE,60);
W3:=REF(CLOSE,120);

{K线颜色 5 20 60 120}
{价在线上,线向上;价在线下,线向下。所见即所得。FROM: HTTPS://YOUTU.BE/PE04VSHLE1G?T=337}
STICKLINE(C<W1,H,L,0.71,0),COLORLIGRAY;
STICKLINE(C<W2,H,L,0.71,0),COLORGRAY;
STICKLINE(C>W1,O,C,0.71,0),COLORGREEN;

{黄色点 5 20 60 120}
DRAWICON(CURRBARSCOUNT=5+1,L,41);
DRAWICON(CURRBARSCOUNT=20+1,L,41);
DRAWICON(CURRBARSCOUNT=60+1,L,41);
DRAWICON(CURRBARSCOUNT=120+1,L,41);

{SMA 20 60 120}
MA2:MA(CLOSE,20), COLORB6B1B1, DOTLINE;
MA3:MA(CLOSE,60), COLORD751A8, DOTLINE;
MA4:MA(CLOSE,120), COLOR94B8C4, DOTLINE;

{EMA 5 20 60 120}
EMA1:EMA(CLOSE,5), COLORRED;
EMA2:EMA(CLOSE,20), COLOR69F6EB;
EMA3:EMA(CLOSE,60), COLORFFAEC9;
EMA4:EMA(CLOSE,120), COLORBLUE;

PC

futu-scripts's People

Contributors

kentio avatar lisangzhou avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

futu-scripts's Issues

download 後,前幾行是否有bugs.

download 後,前幾行是否有bugs.
thank you.
-moonnonk

P1?@%zD-
P2?A%zD-
P3pB%zD-
P4?B%zD-
OFFSET??%zD-???????????????*?W1:=REF(CLOSE,P1);
W2:=REF(CLOSE,P2);
W3:=REF(CLOSE,P3);

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.