OPEN-SOURCE SCRIPT

robotrading trendweek

The blue line is the closing price of the week.

Strategy

If the price is above the blue line - this is uptrend.
If the price is below the blue line - it is downtrend.

If the low candlestick is above the line - you should open a long position (and close a short position, if open).
If the high candle is below the line - you should open a short position (and close a long position, if open).
Reverse trading.

Crossing

A crossing is defined as an event, when the whole candle is above the line (high > line), or below the line (low < line). This method greatly reduces the number of false signals.
Trend Analysis

开源脚本

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

想在图表上使用此脚本?


更多:

免责声明