Moxie Indicator (Simpler Trading / TG Watkins) Scam
The Moxie Indicator just plots the MacD Histogram from a higher timeframe, except that it plots it as a line graph instead of a histogram. For example, the Daily chart plots the Weekly MacD Histogram, the 1hr Chart plots the Daily MacD Histogram, etc. The stair stepping comes from the fact that it is plotting a higher time. All you have to do is look at the MacD Histogram from the higher time frame and it gives you exactly what the "Moxie Indicator" is. For example, if you look at the Moxie indicator on Daily chart, all you have to do is look at MacD Histogram (as a line chart) on the Weekly Chart. The only thing the Moxie indicator does is that it puts it on the same chart for you and in doing so, lines up the dates. But it is easy to write code for that yourself.
I wrote some easy code for it just to prove a point. NOTE: I did not write this code to fully replace the Moxie Indicator. It is only to prove my point. In the code below, you have to change the aggregation period manually. If you want to make it exactly like the Moxie Indicator, code would need to be written that would automatically change the aggregation period. I could do it, but I just wanted to prove a point, not replace the indicator. Also, the Moxie Indicator uses two MacD Histograms for the 15m chart and has a 15m HIGH (for long term trades) and a 15m LOW (for shorter term/Day trades). The chart correlations are:
Weekly Chart - Use Monthly MacD HistogramDaily Chart - Use Weekly MacD HistogramHourly Chart - Use Daily MacD Histogram15m HIGH Chart - Use 1 Hour and 2 hour MacD Histograms15m LOW Chart - Use 30m and 1 hour MacD Histograms
So, to make it act like the Moxie indicator, you'd also need to modify it for 15m high and 15m low. But it can be done just hack this code to do whatever you want.
I have included pictures to show you that it does work. I colored my Magenta and Cyan to illustrate the difference, but it looks like the Moxie Indicator just uses Color.Downtrend and Color.Uptrend
################################
## The chart correlations are:
## Weekly Chart - Use Monthly MacD Histogram
## Daily Chart - Use Weekly MacD Histogram
## Hourly Chart - Use Daily MacD Histogram
## 15m HIGH Chart - Use 1 Hour and 2 hour MacD Histograms
## 15m LOW Chart - Use 30m and 1 hour MacD Histograms
declare lower;
input Aggregation_Period = AggregationPeriod.DAY ;
## you can make these inputs if you want the ability to change them on the fly
def fastLength = 12;
def slowLength = 26;
def MacD_Length = 9;
## create zero line
declare zerobase;
plot ZeroLine = 0;
ZeroLine.SetDefaultColor(Color.LIGHT_GRAY);
ZeroLine.SetStyle(Curve.Firm);
## Define MacD Lines
def MacD_Line = ExpAverage(close(period = Aggregation_Period), fastLength) - ExpAverage(close(period = Aggregation_Period), slowLength);
def Avg_Line = ExpAverage(MacD_Line, MacD_Length);
## Plot the MacD Histogram as a line
plot Histogram_Line = (MacD_line - Avg_Line);
Histogram_Line.SetStyle(Curve.FIRM);
Histogram_Line.SetLineWeight(2);
## Determine if Histogram_Line is going up or down
def trend = { default init, long, short};
switch (trend[1]) {
case init:
if (Histogram_Line < Histogram_Line[1]) then {
trend = trend.short;
}
else {
trend = trend.long;
}
case long:
if (Histogram_Line < Histogram_Line[1]) then {
trend = trend.short;
}
else {
trend = trend.long;
}
case short:
if (Histogram_Line < Histogram_Line[1]) then {
trend = trend.short;
}
else {
trend = trend.long;
}
}
## I made the colors different than the Moxie Indicator to prove a point.
## But I believe the Moxie indicator colors are just color.DOWNTICK and color.UPTICK
Histogram_Line.AssignValueColor(if trend == trend.short then color.MAGENTA else color.CYAN);
################################
Posted Jul 6, 2025, 7:24 PM UTC