Type/to search
0
Follow
0
Followers
Stratégie écrite par PINE, marché réel de Binance, toujours signalé GetRecords : 429 : {"code":-1003,"msg": "Trop de requêtes ; limite actuelle d'IP
Help
Created 2023-01-28 14:39:34  
 4
 1076

long_in = ta.crossover(mafast, maslow) and maslow > nbEma
long_out = ta.crossunder(mafast, maslow) and maslow > nbEma

short_in = ta.crossunder(mafast, maslow) and maslow < nbEma
short_out = ta.crossover(mafast, maslow) and maslow < nbEma

if long_in
strategy.entry("MA2CrossLE", strategy.long, comment="MA2CrossLE")
if long_out
strategy.close("MA2CrossLE", strategy.long, comment="MA2CrossLE")

if long_in
strategy.entry("MA2CrossLE", strategy.short, comment="MA2CrossLE")
if short_out
strategy.close("MA2CrossLE", strategy.short, comment="MA2CrossLE")

Dans le code, il a simplement écrit la ligne de base, rien d'autre, il a consulté la feuille de travail, il a dit que c'était dû à trop de sondages. Mais Pine n'a pas défini de temps de sondage, il a demandé aux dieux de répondre.

Related Recommendations
Comment
All comments (4)

    模板参数轮询时间改为了15s,我就只跑了一个实盘。不知道是不是因为我用的托管是公用导致的。。

    3 years ago

    跑实盘最好使用私有托管者,公共托管者可能使用的用户比较多。访问交易所频率比较高。

    3 years ago

    好的,感谢感谢

    3 years ago

    策略上有模板参数,「Pine语言交易类库」模板参数里有设置轮询的,影响访问频率,另外检查是不是一个服务器上跑了很多操作这个交易所账户的实盘。交易所统计频率看IP地址的。

    3 years ago
  • 1
iPhone Download
Forums
PINE Language
© 2015 - ∞ INVENTOR PTE LTD (SG)