TradingView
StanleyBostich
2020년 9월 21일 오후 10시 43분

Super Guppy Strategy 

Bitcoin / United States DollarCoinbase

설명

CM Super Guppy with Long/Short signals, backtesting, and additional options. Updated for PineScript v4.

COINBASE:BTCUSD

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!
코멘트
JavJav13
Does this only work for BTC or any other coins? Looks cool btw!!!!
StanleyBostich
@JavJav13, Glad you like it man! Thanks for checking it out :).

This indicator works for alts as well as stocks. Here are some results:

Crypto:
BNB -

ADA -

YFI (lower tf)-

THETA -

XTZ -


Stocks:
Ford -

Target -

Intel -

Pfizer -
marksein
Should line 154 be `strategy.close("short", when=long and useShorts and isWithinTimeBounds and useEarlySignals)`?
Wraps1981
Is it possible to get study version? Tnx!
CashAthletes
heikin ashi candles or regular candles for best results
silvermerlion
This look great.
I am new to this scripting, I have a basic question.
How do I trigger the real trade?
The below scripts did not say how much to long.

strategy.entry("LONG", long=true, when=long and isWithinTimeBounds and useEarlySignals)
strategy.close("LONG", when=short and isWithinTimeBounds and useEarlySignals)
StanleyBostich
@silvermerlion, thanks brotha! So there are a number of ways to trigger a real trade. A common way to do it is using a third party service like 3commas (recommended) or Zignaly. Afaik, most of these bots require you to send an alert with a special JSON object via the "webhooks" option in the alerts. That said, with back-testable strategies like this, TradingView/Pine Script do not allow you do use alerts with "buy" or "sell" signals, those can only be done in studies. I have a study for this indicator with those alerts in Beta right now. If you are interesting in testing it and providing feedback, message me! I'd love some help to make sure it's air tight.
dkrypto85
@StanleyBostich, Hi Stanley, I'd very much like to try the study beta. Have spent all day looking for a good script with both entry and exit alerts!
더보기