OPEN-SOURCE SCRIPT

Spread Entry Balance of Power

已更新
This is a bar chart showing the strength of a potential option spread entry using 8 conditions for each side of a trade, bull or bear.

In theory, if the SE Strength (Spread Entry Strength) is at one of the extremes of the Bear or Bull side, then a spread is prime for entry.

To calculate this, the 8 conditions receive a 1 or zero dependent on whether the condition is true (1) or false (0), and then all of those are summed. The primary gist of the strength comes from Nishant's book, or my interpretation thereof, with some additives that limits what I need to review (such as condition 8 below.)

The 8 Bull Conditions are:
1) Bollinger Bands are outside of the Keltner Channels
2) ADX is trending up
3) RSI is trending up
4) -DI is trending down
5) RSI is under 30
6) Price is below the lower Keltner Channel
7) Price is between the lower Bollinger Band and the Bollinger basis.
8) Price at one point within the last 5 bars was below the lower Bollinger Band

The 8 Bear Conditions are the inverse conditions (except the first), and the conditions are given a negative disposition (meaning they sum to -8 :)):
1) Bollinger Bands are outside of the Keltner Channels
2) ADX is trending down
3) RSI is trending down
4) +DI is trending up
5) RSI is over 70
6) Price is above the upper Keltner Channel
7) Price is between the upper Bollinger Band and the Bollinger basis.
8) Price at one point within the last 5 bars was above the upper Bollinger Band

版本注释
Updated with quite a bit, and to version 5 of pinescript.

Updates include:
  • Use of Synthetic VIX in algo
  • Projection of spread with using a "bars to expiry" setting
  • Historical trade table, only allows 1 trade at time
  • Other stuff, here and there. :)
Bollinger Bands (BB)Keltner Channels (KC)

开源脚本

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

想在图表上使用此脚本?


There is no market.

免责声明