♥ 0 |
Hello, I wanted to thank you again for the time and effort you put into this forum and your videos. I’m using a version of a T3 moving average that changes color when the slope changes. I’d like to create a simple alert that notifies me when this happens. Here is the code: input indicator = { T1, T2, default T3, T4, T5, T6 }; script _gd { def _t1 = _gd( price[-displace], period, volumeFactor, sign ); plot T3; T3.AssignValueColor(if T3 > T3[1] then Color.White else Color.Red); AddLabel(Label, if T3 > T3[1] then ” T3-10 Up ” else ” T3-10 Down “, if T3 > T3[1] then color.green else color.red); assignPriceColor(if paintbars and T3 <T3[1] then color.red else if paintbars and T3 > T3[1] then color.green else color.CURRENT); Thank you for all your help. I’ll be sure to make a nice donation to your site. Thomas
Marked as spam
|
Please log in to post questions.