TradingView
FX365_Thailand
2020年11月28日午後2時6分

3MA with Perfect Order Alert / 移動平均線パーフェクトオーダー 

British Pound/Japanese YenFXCM

詳細

Japanese below / 日本語説明は下記

This indicator shows 3 sets of MA(Moving Average) and perfect order alert.

What is Perfect Order?
Perfect order means that multiple MA(s) are in ascending order from short term MA to long term MA in upward trend and in descending order from long term MA to short term MA.

e.g. Let’s say you set 3 MA like;
MA1(short term): 5MA
MA2(mid term): 20MA
MA3(long term): 50MA
and if these MA are in ascending order from 5MA to 50M in upward trend, this is perfect order.
Likewise if 3MA get in descending order from 50MA to 5MA in downward trend, this is perfect order.


What does Perfect Order mean in trading?
Perfect order means that markets move with strong trend and good opportunities to trade following trends.


Specifications
-You can set 3 MA on this indicator, however, have to set periods of MA according to the label of each MA: short term, mid term and long term or the indicators cannot judge perfect order.
-Each MA can select SMA or EMA.
-If 3MA become perfect order(PO), then signal will be shown on the chart with green triangle for ascending perfect order which suggests potential buying opportunity and red triangle for descending perfect order which suggests potential selling opportunity.
-You can control display of the signal ticking/unticking the checkbox at parameter.


Sample chart with the indicator



——————————————————————————————

3本の移動平均線(MA)とパーフェクトオーダーのシグナルを表示するインジケーターです。

パーフェクトオーダーとは?
パーフェクトオーダーとは複数の移動平均線が、以下の順番に並んだ状態のことを指します。
・上昇トレンドの場合
移動平均線が上から短期・中期・長期の順番に並んだ状態
・下降トレンドの場合
移動平均線が上から長期・中期・短期の順番に並んだ状態


パーフェクトオーダーが意味するものは?
パーフェクトオーダーが発生した状態とはマーケットが非常に強いトレンドを伴って動いていることを示します。トレーダーにとってはトレンドフォローでトレードするチャンスとなります。


機能概要
・このインジケーターでは3本の移動平均線を設定することができます。ただしパラメーター設定画面で指定された、短期・中期・長期に合うように、それぞれの移動平均線の期間を設定する必要があります。
例えば5,20,50期間の3本の移動平均線を設定する場合、短期欄に5,中期欄に20,長期欄に50と設定する必要があります。(それ以外の場合はパーフェクトオーダーのシグナルが表示されません。)
・それぞれの移動平均線はSMAかEMAを設定することができます。
・移動平均線がパーフェクトオーダーとなった場合、ローソク足の近くにシグナルが表示されます。緑が上昇パーフェクトオーダー、赤が下降パーフェクトオーダーです。
・シグナルの表示有無をチェックボックスで制御できます。


チャート表示例

リリースノート

Added alert notifications with the conditions below;
-Ascending perfect order
-Descending perfect order
You can set these alerts same as built-in alerts.

通知型アラートを追加しました。
-上昇パーフェクトオーダー
-下降パーフェクトオーダー
発生時にアラートを設定することが可能です。

リリースノート

Added background color when Perfect Order occurs. Hope it helps you easily tell when PO occurs.
パーフェクトオーダー発生時に背景色を付ける機能を追加しました。

リリースノート

Bug fixed for MA type selection.
MAタイプ(sma/ema)の選択のバグを修正。

リリースノート

Organized inputs screen, using new parameter "group".

Pine scriptの新しいコマンド"Group"を使用してパラメータ設定画面のデザインを更新しました

リリースノート

Added MA type; SMMA(aka RMA/MMA), WMA, VWMA

MAタイプにSMMA(またはRMA/MMA), WMA, VWMAを追加

リリースノート

Bug fixed for PO background coloring.
Before: Background color of ascending PO and descending PO was overlapped when both options ticked.
After: Removed the duplication.

パーフェクトオーダー発生時のバグを修正
Before: 上昇PO,下降PO発生時の背景色塗りつぶしが重複してしまう
After: 重複を修正

リリースノート

Fixed offset setting issue.
Note: Offset MA does not identify perfect orders. This setting is only for plotting MA.
コメント
MORISHIN
お疲れ様です。すみませんが、移動平均線を増やしたいので出来てばPineコードが欲しいです。
genki100
こんばんわ、MA typeに、SMMAを追加いただけると、うれしいです。有料でも欲しいくらいです。
FX365_Thailand
@genki100, 返信遅くなりましたが、SMMAを追加しました。
genki100
@FX365_Thailand, ありがとうございます。早速、使わせてもらいます!
Ueue-san
はじめまして。
素敵なインジケータをありがとうございます。
私の環境だけかもしれませんが、Offsetにて移動平均線をずらすことができません。

教えていただけませんか。
FX365_Thailand
@Ueue-san, ご指摘ありがとうございます。Offsetの問題を修正したバージョンをリリースしました。
ただ、技術的な問題からoffsetした移動平均線ではパーフェクトオーダーを検知することができません。この設定は移動平均線の描画だけに適用される旨ご了承ください。
Ueue-san
@FX365_Thailand,
素早い対応ありがとうございます。
パーフェクトオーダーの件了解です。
これからも応援しています。
tyokorisu2
便利なインジケーターありがとうございます。
「パーフェクトオーダー発生時に背景色を変更する」のチェックをONにしている際、下降PO中に下降の背景色だけではなく、上昇の背景色も表示されてしまっているように思います。
お手数ですがこちら修正していただけませんでしょうか?

なお、上昇PO時は正常だと思います。
FX365_Thailand
@tyokorisu2, コメントありがとうございます。

背景色は、
上昇PO発生なら、上昇PO発生時の色で、
下降PO発生なら、下降PO発生時の色で塗りつぶすようにしています。

頂いたコメントにある、
”下降PO中に下降の背景色だけではなく、上昇の背景色も表示”
というのは、下降PO中に発生する一時的な戻しの上昇のことでしょうか?

もしそうであれば、インジケーターは移動平均線の並びが下降POになっている限りは下降PO発生時の色で塗りつぶされます。これは移動平均線がPOになっている状態を可視化するという目的に沿ったものであり、仮に下降PO中に発生する一時的な戻しの上昇は背景色設定から除外という話だと目的とずれたものになってしまいます。

ご指摘されているのが別の点だという場合は、チャートと移動平均線のパラメーター設定をこちらに添付していただければ確認します。
詳細