ragnarok628

Ichimoku Cloud LONG and SHORT indicators

ragnarok628 已更新   
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.
版本注释:
This update makes the indicators respect any changes in the displacement value in the Inputs.
版本注释:
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)
版本注释:
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.
版本注释:
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
版本注释:
now considering touches as crosses for determining entry eligibility for the cloud and the conversion/base pair
版本注释:
using ATR instead of stdDev, tweaking initial paramaters, tweaking colors for better visibiliity
开源脚本

本着真正的TradingView精神,该脚本的作者将其开源发布,以便交易者可以理解和验证它。为作者喝彩!您可以免费使用它,但在出版物中重复使用此代码受网站规则的约束。 您可以收藏它以在图表上使用。

免责声明

这些信息和出版物并不意味着也不构成TradingView提供或认可的金融、投资、交易或其它类型的建议或背书。请在使用条款阅读更多信息。

想在图表上使用此脚本?

相关观点