OPEN-SOURCE SCRIPT
已更新 Super Guppy Strategy

CM Super Guppy with Long/Short signals, backtesting, and additional options. Updated for PineScript v4.
BTCUSD
Features 2 primary modes, depending on your risk profile. These options are available in the settings:

"Early Signals" ON (default):

"Early Signals" OFF
Additionally:
In development: alerts
Features 2 primary modes, depending on your risk profile. These options are available in the settings:
"Early Signals" ON (default):
- Prints a "long" on grey to green transitions AND red to gray transitions.
- Prints a "short" on green to grey transitions AND gray to red transitions.
- Will not print back-to-back repeated positions (i.e. green → grey → red will only print the first green → gray "short" signal and not print "short" twice).
- Rotates long and short positions with no delay.
"Early Signals" OFF
- Will close trades, but never open new ones, when guppy transitions to from any color to gray.
- Open long: guppy transitions gray to green.
- Close long: guppy transitions green to gray.
- Open short: guppy transitions gray to red.
- Close short: guppy transitions red to gray.
- Does not rotate long and short positions back to back.
Additionally:
- Can toggle on/off the 200EMA. Default is off.
- Can toggle on/off short positions. Default is on.
In development: alerts
版本注释
Release notes:minor aesthetic update for opening and closing shorts with "Early Signal" mode disabled to be consistent with the rest of the labels. Removed some redundant comments.
Additional Notes:
Original post also mistakenly had "100%" for position size. Here are some additional results:
2% position size:
15% position size:
30% position size:
版本注释
Ignore that last update, the screencaps did not publish the way I expected them to. I do advise playing around with position size while backtesting, and never go all in :). Also small grammatical fix to the original post, since we can't edit in TV: "when guppy transitions to from any color to gray" should instead say "when guppy transitions from any color to gray"
Happy trading!
开源脚本
本着TradingView的真正精神,此脚本的创建者将其开源,以便交易者可以查看和验证其功能。向作者致敬!虽然您可以免费使用它,但请记住,重新发布代码必须遵守我们的网站规则。
免责声明
这些信息和出版物并不意味着也不构成TradingView提供或认可的金融、投资、交易或其它类型的建议或背书。请在使用条款阅读更多信息。
开源脚本
本着TradingView的真正精神,此脚本的创建者将其开源,以便交易者可以查看和验证其功能。向作者致敬!虽然您可以免费使用它,但请记住,重新发布代码必须遵守我们的网站规则。
免责声明
这些信息和出版物并不意味着也不构成TradingView提供或认可的金融、投资、交易或其它类型的建议或背书。请在使用条款阅读更多信息。