Hi friends! I'm learning to script and wanted to create a script that I think might be useful, however I can't seem to find anywhere for TOS.
It's a SMI aka Smart Money Index (https://en.m.wikipedia.org/wiki/Smart_money_index) popularized by Bloomberg.
I'm not looking for someone to do it for me, although that would be fine too as I could study it and backwards engineer it to learn.
I'm also looking for any indicators similar to an SMI or any TOS scans that might be useful like block trades, dark pools and unusual options. AFAIK thinkorswim should be capable of these things, correct? Look forward to interacting with all of you here!
It's a SMI aka Smart Money Index (https://en.m.wikipedia.org/wiki/Smart_money_index) popularized by Bloomberg.
I'm not looking for someone to do it for me, although that would be fine too as I could study it and backwards engineer it to learn.
I'm also looking for any indicators similar to an SMI or any TOS scans that might be useful like block trades, dark pools and unusual options. AFAIK thinkorswim should be capable of these things, correct? Look forward to interacting with all of you here!
Code:
#
# TD Ameritrade IP Company, Inc. (c) 2007-2018
#
declare lower;
input over_Sold = 20;
input over_Bought = 80;
input length = 14;
input movingAvgLength = 1;
plot MoneyFlowIndex = Average(moneyflow(high, close, low, volume, length), movingAvgLength);
plot OverBought = over_Bought;
plot OverSold = over_Sold;
MoneyFlowIndex.DefineColor("OverBought", GetColor(5));
MoneyFlowIndex.DefineColor("Normal", GetColor(7));
MoneyFlowIndex.DefineColor("OverSold", GetColor(1));
MoneyFlowIndex.AssignValueColor(if MoneyFlowIndex > over_Bought then MoneyFlowIndex.color("OverBought") else if MoneyFlowIndex > over_Sold then MoneyFlowIndex.color("Normal") else MoneyFlowIndex.color("OverSold"));
OverBought.SetDefaultColor(GetColor(8));
OverSold.SetDefaultColor(GetColor(8));