// Downloaded From https://www.WiseStockTrader.com
period = 45;

//Change the foreign symbol for your own market
C = Foreign("COMPQX", "C");

Trixline=TEMA(TEMA(TEMA(ROC(C, 1), period), period), period);
Plot(Trixline, "TRIX", colorBlue, styleHistogram);

"The bmTRIX is indicating a " +
WriteIf(Trixline > 0, "bullish", "bearish") +
" market environment because it is " +
WriteIf(TrixLine > 0, "above", "below") +
" the zero line.\n";