Renko_Ranger
Member
mod note: the rest of this chart set up can be found at https://usethinkscript.com/threads/renko-matrix-chart-setups-strategies-for-thinkorswim.13164/
I've modified the Moxie indicator thinkscript found in this thread to work with Renko: https://usethinkscript.com/threads/moxie-indicator-for-thinkorswim.369/
declare lower;
script Moxie {
input priceC = close;
def vc1 = ExpAverage(priceC , 12) - ExpAverage(priceC , 26);
def va1 = ExpAverage(vc1, 9);
plot sData = (vc1 - va1) * 3;
}
def price = close;
def s2 = Moxie(price);
plot ZeroLine = 0;
plot pMoxie = s2;
pMoxie.SetLineWeight(2);
pMoxie.DefineColor("Positive and Up", Color.GREEN);
pMoxie.DefineColor("Positive and Down", Color.DARK_GREEN);
pMoxie.DefineColor("Negative and Down", Color.RED);
pMoxie.DefineColor("Negative and Up", Color.DARK_RED);
pMoxie.AssignValueColor(if pMoxie >= 0 then if pMoxie > pMoxie[1] then pMoxie.color("Positive and Up") else pMoxie.color("Positive and Down") else if pMoxie < pMoxie[1] then pMoxie.color("Negative and Down") else pMoxie.color("Negative and Up"));
AddCloud(ZeroLine,pMoxie,COLOR.RED,COLOR.GREEN);
I've modified the Moxie indicator thinkscript found in this thread to work with Renko: https://usethinkscript.com/threads/moxie-indicator-for-thinkorswim.369/
declare lower;
script Moxie {
input priceC = close;
def vc1 = ExpAverage(priceC , 12) - ExpAverage(priceC , 26);
def va1 = ExpAverage(vc1, 9);
plot sData = (vc1 - va1) * 3;
}
def price = close;
def s2 = Moxie(price);
plot ZeroLine = 0;
plot pMoxie = s2;
pMoxie.SetLineWeight(2);
pMoxie.DefineColor("Positive and Up", Color.GREEN);
pMoxie.DefineColor("Positive and Down", Color.DARK_GREEN);
pMoxie.DefineColor("Negative and Down", Color.RED);
pMoxie.DefineColor("Negative and Up", Color.DARK_RED);
pMoxie.AssignValueColor(if pMoxie >= 0 then if pMoxie > pMoxie[1] then pMoxie.color("Positive and Up") else pMoxie.color("Positive and Down") else if pMoxie < pMoxie[1] then pMoxie.color("Negative and Down") else pMoxie.color("Negative and Up"));
AddCloud(ZeroLine,pMoxie,COLOR.RED,COLOR.GREEN);
Last edited by a moderator: