我需要做的是将 Tradingview 警报系统绑定到加密货币交易所的 api。我知道 Tradingview 提供可以通过短信或电子邮件发送的警报 - 但是 - 我如何转换此信息,以便我可以调用加密货币交易所的 API。
例如,如果我创建一个以指定价格购买某个 ICO 的警报,那么我需要某种方法来触发 ~something~(PHP 脚本或其他内容),然后继续执行 REST 命令将在 Binance 或 Bittrex 或 .... 上创建订单
任何关于如何做到这一点的信息、技巧或想法将不胜感激。如果有更好的东西可以使用,也请告诉我。
TIA
我正在尝试在 Tradingview 下使用 Pine 语言编写一个简单的 if-then-else 语句。代码的作用基于用户输入。
\n\n如果选中该框,则绘制线条。
\n\n如果未选中该框,则不绘制该线。
\n\n这是我的代码:
\n\nnotPlot = -2000\nvar ch382= input(true, ".382")\nif ch382\n plot( ch382? bottom + diff * .382: noPlot, title="fib-.236", linewidth=3, color=color.orange )\nRun Code Online (Sandbox Code Playgroud)\n\n我怎样才能以正确的方式写这个?
\n\n如果我尝试运行它,我得到:\xe2\x80\x9ccannot use \'plot\' in a local scope\xe2\x80\x9d
\n\n任何帮助将不胜感激。
\n\n预计到达时间:我在下面找到了这个帖子
\n\n\n\n我需要做的是如果选中该框则绘制,如果未选中该框则〜不绘制〜。
\n我在 Eclipse 中有一个项目,与 Gitlab 中的旧存储库相关联。正在使用的分支称为 Test。
我在 Gitlab 中创建了一个新的存储库(其中只有 README.md 文件)。它只有一个分支:master。
我需要更改 Eclipse 项目,以便它不再引用旧存储库(和旧分支),而是引用新存储库(带有主分支)。
如何才能做到这一点?
TIA
更新
@Rizwan - 感谢您提供的信息。我做了以下事情:
cd to the directory with the code
#initialize the repository
git init
#add reference to the repository I needed
git remote add origin "git@myrepo.com:WORK/<my-repository>.git"
#got what was currently in the repository
git pull origin master
#added code (not in the repository)
git add -A
#commit the code
git commit -m "first commit with code"
#sent it up
git push origin …Run Code Online (Sandbox Code Playgroud) Gitlab 服务器不再运行。输入时
系统永远不会回来,我收到一个connection timed out错误
我尝试运行以下命令:
574 sudo strace -tt -T -f -s 1024 -p 4332 -o /tmp/unicorn.txt
575 sudo strace -tt -T -f -s 1024 -p 8080 -o /tmp/unicorn.txt
Run Code Online (Sandbox Code Playgroud)
作为故障排除的一部分,请按照此处的步骤操作:https : //docs.gitlab.com/ce/administration/troubleshooting/debug.html
结果总是一样的,比如:
dgmufasa@mycomputer:~$ sudo strace -tt -T -f -s 1024 -p 4332 -o /tmp/unicorn.txt
strace: attach: ptrace(PTRACE_ATTACH, ...): No such process
Run Code Online (Sandbox Code Playgroud)
以下是更多信息。我能做些什么来解决问题?
TIA
须藤 gitlab-ctl 显示配置
{
"gitlab": {
"gitlab-shell": {
"secret_token": "secret_token",
"auth_file": "/var/opt/gitlab/.ssh/authorized_keys"
},
"gitlab-rails": {
"gitlab_default_theme": 4,
"backup_upload_connection": {
"provider": "AWS", …Run Code Online (Sandbox Code Playgroud) 我试图确保 .ssh 目录的内容不会进入 Git 存储库:
执行S:~$ git diff --stat --cached origin/master
.gitignore | 7 ------
.ssh/.gitignore | 2 ++
.ssh/authorized_keys | 1 +
.ssh/id_rsa | 51 ++++++++++++++++++++++++++++++++++++++
.ssh/id_rsa.pub | 1 +
.ssh/known_hosts | 2 ++
.viminfo | 123 +++++++++++++++++++++++++++++++++++++++++++++++++++-----------------------------------------
Run Code Online (Sandbox Code Playgroud)
然后我将它们取出如下:
executeS:~$ git rm --cached .ssh/authorized_keys
rm '.ssh/authorized_keys'
executeS:~$ git rm --cached .ssh/id_rsa
rm '.ssh/id_rsa'
executeS:~$ git rm --cached .ssh/id_rsa.pub
rm '.ssh/id_rsa.pub'
executeS:~$ git rm --cached .ssh/known_hosts
Run Code Online (Sandbox Code Playgroud)
我有以下 .gitignore 文件
executeS:~/.ssh$ pwd
/home/dockcclubdjango/.ssh
executeS:~/.ssh$ cat .gitignore
.*
!/.gitignore
Run Code Online (Sandbox Code Playgroud)
但如果我这样做,“git add . …
我正在尝试创建一个Model-Driven Angular template应该注册新用户的。为此,我创建了 2 个主要用途的文件:
admin-register.component.html admin-register-form.component.ts
尝试转到显示注册表单的页面时,我在控制台中得到以下信息
ERROR TypeError: Cannot read property 'valid' of undefined
Run Code Online (Sandbox Code Playgroud)
我究竟做错了什么?
TIA
admin-register.component.html
<div class="container">
<div class="row">
<div class="col"></div>
<div class="col-md-8 ">
<form [formGroup]="userForm" (ngSubmit)="onSubmit()" >
<div class="row">
<div class="col-xs-12 col-sm-6 col-md-6">
<!-- set up first name -->
<div class="form-group">
<div class="input">
<label>First Name</label>
<input type="text" id="firstname" formControlName="firstname" class="form-control input-lg" name="firstname" tabindex="1" />
</div>
</div>
</div>
<div class="col-xs-12 col-sm-6 col-md-6">
<!-- set up last name -->
<div class="form-group">
<div class="input">
<label>Last …Run Code Online (Sandbox Code Playgroud) 我试图让DB以与它在机场相同的方式显示日期.例如,如果您在德克萨斯州并且需要乘坐飞机前往东海岸,机场侯爵将在您当地时间显示起飞时间和着陆时间.因此,例如从达拉斯飞往纽约的航班将显示该地区当地时间的时间.
Marquis in Dallas : Takeoff time : 8AM Landing time: 10AM
Marquis in New York: Takeoff time : 9AM Landing time: 11AM
Run Code Online (Sandbox Code Playgroud)
为了做到这一点,我认为数据库会以UTC格式存储时间.我知道TIMESTAMP没有与之关联的区域 - 但是 - 它确实允许人们将时间安排到附加了区域的数据库- 所以 - 我的想法是,已经执行了某种计算以将其转换为世界标准时间.但是,根据我在下面的小测试,这似乎没有发生.无论我将SESSION TIME ZONE设置为什么,日期都保持不变.
TIA
SQL> create table toast ( t timestamp );
Table created.
SQL> insert into toast values ( TIMESTAMP '2019-09-23 16:03:11 US/Eastern');
1 row created.
SQL> select dbtimezone from dual;
DBT
---
UTC
SQL> select sessiontimezone from dual;
SESSIONTIMEZONE
---------------------------------------------------------------------------
-04:00
SQL> …Run Code Online (Sandbox Code Playgroud) 我在为Angular运行“ ng serve”时遇到错误。我看到了其他一些消息编号相同的问题,但它们是针对Angular 2,Angular 4.x等的。
我该怎么办才能解决问题?
以下是app.module.ts文件
TIA
更新仍然存在问题
I believe I marked the message resolved too early :) I am getting the following errors when running `ng serve` under Angular 5:
ERROR in src/app/app.module.ts(24,24): error TS2307: Cannot find module 'https'.
src/app/pages/auth-admin/admin-model/user.ts(1,35): error TS2307: Cannot find module 'constants'.
src/app/pages/auth-admin/admin-services/admin-services/admin-services.service.ts(5,25): error TS2307: Cannot find module 'cluster'.
webpack: Failed to compile.
Run Code Online (Sandbox Code Playgroud)
如果保存文档,则将编译“ webpack”。我曾考虑过升级系统(希望这可以解决问题),但不确定是否会这样。
感谢您提供有关如何解决此问题的帮助。
TIA
更新-发现了什么问题 基本上,我不理解错误消息:-|
我认为这与我的Angular 5版本有关-因此-我使用以下信息进行了升级:
消息来源:https : //github.com/angular/angular-cli/issues/4391
[updating globally]
npm uninstall -g angular-cli
npm …Run Code Online (Sandbox Code Playgroud) 我使用 Docker 安装了 Zipline 和 Jupyter:https : //github.com/quantopian/zipline/blob/master/Dockerfile
我现在正在尝试在 Jupyter 下运行以下 Zipline 代码
%%zipline --bundle quantopian-quantl --start 2008-1-1 --end 2012-1-1 -o strat.pickle
from zipline.api import symbol, order, record
def initialize(context):
pass
def handle_data(context, data):
order(symbol('AAPL'), 10)
record(AAPL=data[symbol('AAPL')].price)
Run Code Online (Sandbox Code Playgroud)
我收到的错误消息是:
**JSONDecodeError: Expecting value: line 1 column 1 (char 0)**
Run Code Online (Sandbox Code Playgroud)
同样,当我尝试运行程序时会发生这种情况。
可能是什么问题?任何帮助、提示或建议~非常~感谢!
TIA
附录: 我也试过这个:https : //docs.google.com/document/d/1mvZO_JDirbJNXJfM0bTS9uMipHE5cfSGFj0sUpJicsw/edit?usp=sharing
I am trying to generate SQL statements "on-the-fly".
EDIT: I needed to make the following as well:
THE OUTPUT CAN LOOK LIKE
sql_cols => DESCRIPTION, FIRSTNAME, LASTNAME
sql_vals => :1,:2,:3
Run Code Online (Sandbox Code Playgroud)
OR
sql_cols => FIRSTNAME, LASTNAME
sql_vals => :1,:2
Run Code Online (Sandbox Code Playgroud)
OR ANY OF THE OTHERS BELOW
sql_cols => FIRSTNAME
sql_vals => :1
sql_cols => DESCRIPTION, LASTNAME
sql_vals => :1,:2
sql_cols => LASTNAME
sql_vals => :1
Run Code Online (Sandbox Code Playgroud)
I pretty much have it together. The only thing is that some code has to be repeated. …