TradingView
L3F03X
5 mai 2020 08:04

Kitsune's Long/Short Support v1.0.0 

Description

After reviewing all feedback and questions I got from the users of my previously published script (Kitsune Indicator Collection), I decided to publish a new one which is easier to interpret and use. Therefore the script is as clean as possible thereby minimizing visual clutter (or at least I tried ).

This script is an evolution of my precious script and is still a combination of the following items:

- High-Low detector
- Parabolic SAR (Stop and Reversal) setups and triggers
- Ehlers Instantaneous Trendline (EIT) indicator
- Range detector
- Support and Resistance detector
- Daily/Weekly/Monthly open visualization

The script uses the SAR and EIT to detect long/short signals.

-----------------------------------------------------------------------------------------------------------------------------------------------

A signal is decided to be STRONG when SAR trigger coincides with trend reversal of the EIT.

A STRONG long signal is painted (i.e. blue label with L+) when:
- SAR long trigger (blue arrow) coincides with an EIT crossover (blue line crosses over the red line).

A STRONG short signal is painted (i.e. red label with S+) when:
- SAR short trigger (red arrow) coincides with an EIT cross-under (blue line crosses under red line).

A STRONG signal will always result in entering (if not in any position) or flipping a long/short position.

-----------------------------------------------------------------------------------------------------------------------------------------------

A signal is decided to be WEAK when not in a long or short position and a SAR trigger appears.

A WEAK long signal is painted (i.e. blue label with L-) when:
- Not in a position (gray bars) and a SAR long trigger (blue arrow) appears but not coinciding with an EIT crossover.

A WEAK short signal is painted (i.e. red label with S-) when:
- Not in a position (gray bars) and a SAR short trigger (red arrow) appears but not coinciding with an EIT cross-under.

A WEAK signal will only result in a long/short position when not in any position.

-----------------------------------------------------------------------------------------------------------------------------------------------

A long/short position is exited on a trend reversal of the EIT.

A short position is exited (i.e. red x-cross) when:
- A crossover of the EIT happens (blue line crosses over the red line).

A long position is exited (i.e. blue x-cross) when:
- A cross-under of the EIT happens (blue line crosses under the red line).

-----------------------------------------------------------------------------------------------------------------------------------------------

Color of the bars are depend on position type:

- Blue = Long position
- Red = Short position
- Gray = No position

-----------------------------------------------------------------------------------------------------------------------------------------------

Enjoy using the script. I hope it is of value to you!

If you have any questions, don't hesitate to contact me.

With kind regards,

Kitsune (L3F03X)

Notes de version

Fixed sudden Pine Script error : "Pine cannot determine the referencing length of a series. Try using max_bars_back in the study or strategy function".

Notes de version

Upgraded script to v 1.2.0
---------------------------------------

Enabled turning on/off all visual elements
Commentaires
cjaybkk
As you stopped working on this script is there any way you could open-source it?
It's still a superb indicator in 2023. Thanks for the work anyways :)
L3F03X
@cjaybkk, Hi there! Nice to see people are still using this little snippet of code ;)
What would you like to be changed or have added?
cjaybkk
@L3F03X, it's superb. Great work. You should come back to Twitter :)

Regarding the open-source question. I am just running some FreqTrade Bots and would love to get this one into a python script. That was the intend of the question.

No changes needed. It works all well quite reliable your script.
L3F03X
@cjaybkk, Cool. How's your experience with FreqTrade bot?

Regarding the open source question, I will think about it, but no active plans as of yet.
Regarding the twitter remark... I do think the bot builder/indicator scene could use some fresh ideas, but It will be difficult to combine with all other things I am working on right now ... So not quite there yet, but I guess I will be back someday ;)
cjaybkk
@L3F03X, FreqTrade is cool. Did you try it? Just need some strategies that don't melt down on days like yesterday :D

Sure no worries. I just thought you maybe done with Crypto. Do you still use your own indicator to trade actively?

What stuff are you working on right now? Anything public?

For Twitter. Yeah whenever you are ready. You got quite some following and you left before the big Bull :)
L3F03X
@cjaybkk, I haven't tried FreqBot myself, mainly because I built something similar myself (inc backtesting, autotuning etc) and have perfected and extended it over the last couple of years.

I am far from done with crypto. Actually started my own company which specializes in automatic crypto trading (with a few other guys) just before I 'left' Twitter. The combined effort was too much to combine at that point.

My company is public, but I do enjoy this semi anon account, so I will not mention its name here.

Are you yourself building your own strategies?
cjaybkk
@L3F03X, understood. Checked when 3 Commas was founded but that can't be it :D was 2017.

Now I am interested, any hints to find that automated crypto trading platform?

Cool stuff guess you built a company from your passion and I bet this script here is used as well.

Yeah building some strategies, I actually started playing around with FreqTrade 2 weeks ago. FreqAI is quite nice and brings me good results (machine learning) just trying out things and I also went into more depth about the indicators you used in this script. Again using your long/short actively to leverage trade cryptos for 2 years now and it has a quite good hit rate with some own brain cells added :)
L3F03X
@cjaybkk, Haha, no it's not 3 Comma's (otherwise It would not have been hacked ;).

Actually we wanted to create something that would be usable for non-coders/trades/IT minded ppl to earn some passive income from trading crypto automatically. So 3 Comma's or similar platforms are not our competitors. We did however develop our own trading automation/execution platform from scratch in order to not be dependent on this kind of platforms. And we also solely trade with our own developed strategies. So yeah nice to built something from passion.

P.s. that's all the hints you get from me at this point ;)
cjaybkk
@L3F03X, thanks will do some Google Research maybe I find your platform :) you would get a new customer :D
L3F03X
@cjaybkk, Although I am currently not actively posting on Twitter, you could always DM me there. Nice to keep in touch one way or the other. Good luck with trading and perhaps talk to you later!
Plus