TradingView
Dreadblitz
Aug 9, 2019 12:16 PM

Moving Average Color Direction Detection  

Australian Dollar/U.S. DollarFXCM

描述

Moving Average Color Direction Detection, possibility to configure:


- Type: SMA, EMA, WMA, VWMA, SMMA, DEMA, TEMA, HULLMA, ZEMA, TMA, SSMA
- Lenght
- Source
- Colour direction



版本注释

Alert Change Direction MA

版本注释

Message Alert

版本注释

IMMEDIATE REACTION OPTION (Disabled by default): This mode reacts immediately, does not have filtering, can generate false signals in the change of direction but can anticipate the change more quickly.

版本注释

Remove the immediate reaction, and now you can configure the reaction to your need, by default it is 3 you get a very good result and filtered, 1 would be the most violent reaction that quickly detects a change of direction but gets more amount of false changes of direction, Try it and configure it to your need.
评论
z3r0day
hi DB

great script been using for a while. I was wondering if there is a way to add the direction of the change (Up/Down) to the alert?

i tried adding this

direction_string = direction > 0 ? "UP" : direction < 0 ? "DOWN" : "NA"
alertcondition(change_direction, message = direction_string)

but received compiler errors in several iterations. any thoughts?

TIA!
AbhinavAsthana
Hi blitz,

Does this indicator repaint?
z3r0day
@AbhinavAsthana, i've been using it for about a year and never seen it "repaint" after the candle has closed
HermesReis
PARABENS AMIGO!! CONGRATULATIONS!! VERY VERY NICE JOB!! THANK YOU SO MUCH!!!
更多