ragnarok628

Ichimoku Cloud LONG and SHORT indicators

ragnarok628 Telah dikemas kini   
This simple script uses 4 rules from Ichimoku Cloud indicator to marks position entry points.

The idea is that by entering a long position just when these 4 criteria are met, you can capture a 2-3% plus move within the next few days:
1. The conversion line is above the base line
2. The price is above the clouds
3. The lagging span is above the clouds
4. The rightmost cloud is green

The same 4 criteria but inverted will indicate a short entry.

In order to avoid 'stale' entries which can lead to chasing, we want the price and conversion line crossovers to be recent, within the past few days. Ideally we want to enter before close on the day the entry signal is given so that we can capture any potential gap up (or down if short). Often the price will make a nice move the next day or day after. If any of the criteria become invalidated, or if after 4-5 days there hasn't been significant movement, then it was a false alarm.

This script will show the basic Ichimoku Cloud indicators, plus labels for bearish and bullish price and conversion line crossovers as well as LONG and SHOT indicators to show when the entry criteria have been met.
Nota Keluaran:
This update makes the indicators respect any changes in the displacement value in the Inputs.
Nota Keluaran:
Pretty significant update:

added visual indicators to facilitate an exit strategy described below
removed price/cloud crossover labels as they are not very useful and this chart has more than enough clutter as is

the exit strategy is also documented in the code, but here it is:

1: set STOP LOSS at 1 std. dev. below close (RED DASHED LINE)
2: activate TRAILING STOP when price hits 1/2 std. dev. above close (BLUE DASHED LINE)
3: use 1/4 std. dev. as the TRAILING STOP value (GREEN DASHED LINE shows minimum expected profit in cases where blue line is reached)
4: after 5 more bars, exit trade if price is still between red and blue lines (no visual indicator for this at this time)
Nota Keluaran:
The main point of this update is to fix an edge case caused by the crossover function counting touches as crossovers.

I've also removed the SHORT callouts until such time as I have enough data to indicate this is a viable strategy.

Additionally I've updated the default plotting styles to reflect my preferences.
Nota Keluaran:
Some incremental improvements:
*updated initial defaults to reflect current strategy
*added ability to limit signals to long only
*added ability to display the standard deviation over the selected number of periods as a percentage of current price
Nota Keluaran:
now considering touches as crosses for determining entry eligibility for the cloud and the conversion/base pair
Nota Keluaran:
using ATR instead of stdDev, tweaking initial paramaters, tweaking colors for better visibiliity
Skrip sumber terbuka

Dalam semangat TradingView yang sebenar, penulis skrip ini telah menerbitkannya dengan menggunakan sumber terbuka supaya pedagang-pedagang dapat memahami dan mengesahkannya. Sorakan kepada penulis! Anda dapat menggunakannya secara percuma tetapi penggunaan semula kod ini dalam penerbitan adalah dikawalselia oleh Peraturan Dalaman. Anda boleh menyukainya untuk menggunakannya pada carta.

Penafian

Maklumat dan penerbitan adalah tidak dimaksudkan untuk menjadi, dan tidak membentuk, nasihat untuk kewangan, pelaburan, perdagangan dan jenis-jenis lain atau cadangan yang dibekalkan atau disahkan oleh TradingView. Baca dengan lebih lanjut di Terma Penggunaan.

Ingin menggunakan skrip ini pada carta?

Idea Berkaitan