♥ 0 |
I came across another user trying to add an alert via the Condition Wizard on Renko charts, and the repsonse was that it’s not possible. I’ve also noticed through my own efforts that it also can’t be done on tick charts. The condition wizard only allows alerts to be set on time charts. Fair enough. My question is, I am using the built-in TRIX indicator and would simply like an *audible* alert when the signal/average line cross eachother…on the tick chart. I had no issue accomplishing this on the time chart. I’ve tried meshing the original TRIX code with the alert coding that Condition Wizard gave me, but no luck. Any takers? Here’s the original TRIX code: # # TD Ameritrade IP Company, Inc. (c) 2007-2019 #
declare lower;
input length = 9; input colorNormLength = 14; input price = close; input signalLength = 3;
def tr = ExpAverage(ExpAverage(ExpAverage(Log(price), length), length), length);
plot TRIX = (tr – tr[1]) * 10000; plot Signal = ExpAverage(TRIX, signalLength); plot ZeroLine = 0;
TRIX.DefineColor(“Highest”, Color.YELLOW); TRIX.DefineColor(“Lowest”, Color.LIGHT_RED); TRIX.AssignNormGradientColor(colorNormLength, TRIX.color(“Lowest”), TRIX.color(“Highest”)); Signal.setDefaultColor(GetColor(3)); ZeroLine.SetDefaultColor(GetColor(5)); #END
And here’s the code the condition wizard gave me for the time alert: TRIX(“length” = 15, “color norm length” = 100, “signal length” = 6).”TRIX” crosses TRIX(“length” = 15, “color norm length” = 100, “signal length” = 6).”Signal”
Love this forum and thank you to all the contributors here! Seriously amazing work. RESOLVED
Marked as spam
|
Please log in to post questions.