OPEN-SOURCE SCRIPT

Relative Returns Strategy

已更新
Looks like an ultimate strategy for buy and hold investors.

This is designed based on the indicator :
Stock-Index-Relative-Returns


Converting that into strategy with little optimization yield this. One change here is, instead of using the return percentage directly, we are using moving averages on both of them.

Buy condition : Moving Average on stock return crosses over that of index return.
Sell condition : Moving Average on stock return crosses under that of index return.
版本注释
Remove calc_on_order_fills
Trend Analysis

开源脚本

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

想在图表上使用此脚本?

免责声明