TradingView
AIZEN_MT
2019年7月3日午後2時19分

Linear Regression Channel with Alert 

Bitcoin / DollarBitfinex

詳細

Note: I use Google Translate.

Added alert function to "Linear regression" of built-in indicator.
I use Pine script version 4.

The basic behavior is the same as the built-in indicator,
The following points are different.

1. Fills between line objects are only lines because they do not correspond in Version 4.
2. The "Use Deviation" switch can not be reproduced, so it is displayed or hidden.
3. Line color and line width can not be changed.
4. You can use 3 types of alerts: "upper and lower channel line", "center line" and "all lines".
I get a warning of repainting, but I think there is no problem.

Please contact me if there is something wrong.



内臓インジケーターの「線形回帰」にアラート機能を追加しました。
Pineスクリプト Version4を使用しています。

基本的な挙動は内臓インジケーターと変わりませんが、
以下の点が異なります。

1.ラインオブジェクト間の塗りつぶしは、Version4で対応していないようなので線のみです。
2.「偏差を使う」の切り替えは再現できていないので、表示か非表示かになっています。
3.線色、線の太さの変更はできません。
4.「上下のチャネルライン」、「センターライン」、「すべてのライン」の3種類のアラートを使うことができます。
リペイントのWarningが出ますが、特に問題ないと思います。

何か問題があればご連絡ください。

リリースノート

Note: I use Google Translate.

Script has been updated. It is version 1.1.

【Additional function】
I was able to change the line color and line width.
Set "Line Edit" in the lower half of the setting dialog,
You can specify the line color and line width of the channel line, and the line color and line width of the center line.
The line width is 1 to 4 and the line color is 17 built-in types.
Unfortunately, color code input is not supported.

Please contact me if there is something wrong.



スクリプトを更新しました。version1.1です。

【追加機能】
線色と線幅を変更できるようにしました。
設定ダイアログの下半分に「Line Edit」を設け、
チャネルラインの線色と線幅、センターラインの線色と線幅を指定できます。
線幅は1~4で、線色は内臓されている17種類です。
残念ながらカラーコード入力には対応できていません。

何が不具合があればご連絡ください。

リリースノート

Script has been updated. It is version 1.2.

【Additional function】
-Made Pearson's R visible. Up to 3 significant digits are displayed.
You can switch using the checkbox of "Pearson's R".

・ We made it possible to change to the channel which does not use the deviation (the channel minus the high price low farthest from the linear regression line).
You can use the checkboxes for "Use Upper Deviation" and "Use Lower Deviation".

【Change】
"Show Upper Deviation"-> "Show Upper Channel"
"Show Lower Deviation"-> "Show Lower Channel"
Changed to and moved into "Line Edit".

Please contact me if there is something wrong.



スクリプトを更新しました。version1.2です。

【追加機能】
・Pearson's Rを表示可能にしました。有効数字3桁まで表示します。
 「Pearson's R」のチェックボックスでを切り替えできます。

・偏差を使わないチャネル(線形回帰線から最も離れた高値安値に引いたチャネル)に変更可能にしました。
 「Use Upper Deviation」「Use Lower Deviation」のチェックボックスで切り替えできます。

【変更】
「Show Upper Deviation」→「Show Upper Channel」
「Show Lower Deviation」→「Show Lower Channel」
に変更し、「Line Edit」内に移動しました。

何が不具合があればご連絡ください。

リリースノート

The script was updated. It is version1.3.

[Additional functions]
Added alert types.
"Top line" "Bottom line" "Crossover center" "Crossunder center"
There are four types.

Please contact me if there is something wrong.
(Google Translate)


スクリプトを更新しました。version1.3です。

【追加機能】
アラートの種類を追加しました。
「上ライン」「下ライン」「センターを上回った時」「センターを下回った時」
の4種類です。

何が不具合があればご連絡ください。

リリースノート

Bug fix

リリースノート

Updated the script. It is version 1.4.

[Additional functions]
The line color can now be selected from the color palette.

Please contact us if you have any problems.
(Google Translate)


スクリプトを更新しました。version1.4です。

【追加機能】
線色がカラーパレットから選択できるようになりました。

何が不具合があればご連絡ください。

リリースノート

Updated the script. It is version 1.5.

[Additional functions]
Added alert types.
"When closed outside the upper line" "When closed outside the lower line" "When closed outside either the top or bottom"
There are three types.

Please contact us if you have any problems.
(Google Translate)


スクリプトを更新しました。version1.5です。

【追加機能】
アラートの種類を追加しました。
「上ラインの外で閉めたとき」「下ラインの外で閉めたとき」「上下どちらかの外で閉めたとき」
の3種類です。

何が不具合があればご連絡ください。
コメント
loidsam86
Hi Can you please add alerts when,

-Touch Top Linear Regression
-Touch Bottom Linear Regression
-Crossunder Middle Linear Regression
-Crossover Middle Linear Regression

Thanks
AIZEN_MT
@loidsam86,
I'm sorry, I'm late to notice.
Added desired alerts.
Please let me know if there is a problem.
Thanks.
(Google Translate)
loidsam86
@AIZEN_MT, Thank you very much.
Eebeezza
@AIZEN_MT, Hello! How about adding a "Top and Bottom Only" alert?
AIZEN_MT
@Swatchwatch,
Hello!
If you select "1. Channel", you will get an alert when you touch either TOP or BOTTOM.
Eebeezza
@AIZEN_MT, yes, Thank you. I found already.
arechamp
Would it please be possible to open source this script? It's amazing to have alerts with this and I would love to play with some of my own adjustments.

Thanks for a great script anyway!
AIZEN_MT
@arechamp,
Thank you for watching.
Unfortunately, I haven't written it for publication so there is no plan for now.
(Google Translate)
tracya6d33
Hi Could you pls Add 3 more linear channel? I need to use them according to my strategy.
morejunkmailhuh
Can you PLEASE make this into a stock screener so we can scan for stocks that, as an example, have penetrated the top regression line within the last 1 minute ? I would very much appreciate it.
詳細