Gesundheit

Starting Template

This script sets defaults that I like to start with:
  • Trade commission set to 0.25%
  • Allow multiple buys before sells
  • Fixed trade size

Also included are setting a minimum desired gain (change gain_protection to 0 if you want to sell regardless of your gain), and buying only if it will reduce your average bought price (change avg_protection to 0 to turn this feature off).

This strategy only takes long positions since Gunbot does not make short positions.

We also start the backtesting at a specific time, to avoid going over the maximum of 2000 trades. Especially helpful when trying to tune a high frequency strategy, or when comparing the efficacy of a strategy on candlesticks with different time periods (this is why I did not use max bars back).

Cheers!
オープンソーススクリプト

TradingViewの精神に則り、このスクリプトの作者は、トレーダーが理解し検証できるようにオープンソースで公開しています。作者に敬意を表します!無料で使用することができますが、このコードを投稿で再利用するには、ハウスルールに準拠する必要があります。 お気に入りに登録してチャート上でご利用頂けます。

免責事項

これらの情報および投稿は、TradingViewが提供または保証する金融、投資、取引、またはその他の種類のアドバイスや推奨を意図したものではなく、またそのようなものでもありません。詳しくは利用規約をご覧ください。

チャートでこのスクリプトを利用したいですか?