Welcome to NexusFi: the best trading community on the planet, with over 150,000 members Sign Up Now for Free
Genuine reviews from real traders, not fake reviews from stealth vendors
Quality education from leading professional traders
We are a friendly, helpful, and positive community
We do not tolerate rude behavior, trolling, or vendors advertising in posts
We are here to help, just let us know what you need
You'll need to register in order to view the content of the threads and start contributing to our community. It's free for basic access, or support us by becoming an Elite Member -- see if you qualify for a discount below.
-- Big Mike, Site Administrator
(If you already have an account, login at the top of the page)
NP. How about custom time periods? Like 13, 78 or 195 minute charts? I know that these are not
listed in the AggregationPeriod list? Any help or direction much appreciated.
daw105
Vancouver Canada
Posts: 3 since May 2018
Thanks Given: 0
Thanks Received: 1
Alagrande - thanks so much for your script posts! Just starting to learn and attempt to understand TOS code, really big help seeing something like this!
Eventually want to try coding something w/ RSI/Stoch divergence and hidden divergence, do you have any experience w/ coding any of these or seen any code for it? I know there are few websites that offer scripts for these fucntions but have to pay, thought I'd try my best to see what's out there being I'm new (and cheap lol).
Sorry no i do not know how to do divergence.
Here is another study you can try. i really like this one. based on RSI, ADX, AND FORCE INDEX...
# TD Ameritrade IP Company, Inc. (c) 2015-2018
#created by [email protected] 5/5/18
#RSI_CLOUDS_FI with PAINTingStrategy.ARROW_DOWN BARS
declare lower;
RSI10.AssignValueColor(if RSI10 > RSI10[10] then
Color.GREEN else if RSI10 < RSI10[10] then Color.RED else Color.CURRENT);
RSI10.HideBubble();
plot line = 50;
line.Hide();
line.SetDefaultColor(Color.WHITE);
line.SetPaintingStrategy(PaintingStrategy.DASHES);
##################################################
###################################################################
#AssignPriceColor( if ###################################################################
AssignPriceColor( if RSI10 > RSI10[10] AND SLOWRSI>SLOWRSI[1] then Color.CYAN else if RSI10 < RSI10[10] AND SLOWRSI<SLOWRSI[1] then Color.YELLOW else Color.current);
################################################################
AddLabel (yes, ((" T1 ")), if RSI > 70 then Color.GREEN else if RSI < 30 then Color.RED else Color.LIGHT_GRAY);
AddLabel (yes, ((" T2 ")), if RSI10_2 > 70 then Color.GREEN else if RSI10_2 < 30 then Color.RED else Color.LIGHT_GRAY);
AddLabel (yes, ((" T30 ")), if RSI4H > 70 then Color.GREEN else if RSI4H < 30 then Color.RED else Color.LIGHT_GRAY);
AddLabel (yes, ((" + ")),if RSI > 70 and RSI10_2 >70 then Color.CYAN else if RSI < 30 and RSI10_2 <30 then Color.DARK_ORANGE else Color.LIGHT_GRAY);
##############
##############
AddLabel (yes, ((" 0 ")),if RSI > RSI[1] and SLOWRSI>SLOwRSI[1] AND RSID>RSID[1] then Color.CYAN else if RSI < RSI[1] and SLOWRSI<SLOwRSI[1] AND RSID<RSID[1] then Color.DARK_ORANGE else Color.LIGHT_GRAY);
AddLabel (yes, ((" 10 ")),if SLOWRSI>SLOwRSI[1] AND RSID>RSID[1] then Color.CYAN else if SLOWRSI<SLOwRSI[1] AND RSID<RSID[1] then Color.DARK_ORANGE else Color.LIGHT_GRAY);
#############
#############
plot T1 = if RSI >= 0 then 50 else Double.NaN;
T1.SetPaintingStrategy (PaintingStrategy.SQUARES);
T1.HIDE();
T1.SetLineWeight (1);
#RSI0.HIDE();
T1.AssignValueColor(if RSI > 70 then Color.GREEN else if RSI < 30 then Color.RED else Color.LIGHT_GRAY);
plot T2 = if RSI >= 0 then 50 else Double.NaN;
t2.hide();###################################
T2.SetPaintingStrategy (PaintingStrategy.SQUARES);
T2.SetLineWeight (1);
#RSI0.HIDE();
T2.AssignValueColor(if RSI10_2 > 70 then Color.GREEN else if RSI10_2 < 30 then Color.RED else Color.LIGHT_GRAY);
plot T3 = if RSI >= 0 then 30 else Double.NaN;
###t3.hide();##################################
T3.SetPaintingStrategy (PaintingStrategy.SQUARES);
####combo3.SetDefaultColor(Color.black);
T3.SetLineWeight (3);
T3.AssignValueColor(if RSI > 70 and RSI10_2 >70 AND RSID > 70 then Color.CYAN else if RSI < 30 and RSI10_2 >30 AND RSID < 30 then Color.DARK_ORANGE else Color.LIGHT_GRAY);
T3.HIDE();################################
input lengthS = 9;
def SMA = Average(price, lengthS);
input lengthC = 5;
def priceC = close + low + high;
def linDev = lindev(priceC, lengthC);
def CCI = if linDev == 0 then 0 else (priceC - Average(priceC, lengthC)) / linDev /1.8 *sma;#0.015, /.04
#CCI.SETDefaultColor(COLOR.WHITE);
def priceL = high;
#DEF LINDEV2 = lindev_2(PRICEC )*300;#, LENGTHC
def LINDEV2 = if linDev == 0 then 0 else (priceL - Average(priceL, lengthC)) / linDev /1.8 *sma;#0.015, /.04
###################################################################
#AssignPriceColor( if RSI>70 then Color.green else if cci>LINDEV2 then color.cyan else if RSI<30 then Color.red else if cci<LINDEV2 then color.pink else Color.current);
################################################################
plot UpSignal = if RSI10> RSI10[1] AND RSI10 > 70 then RSI10 else Double.NaN;
plot DownSignal = if RSI10< RSI10[1] AND RSI10 < 30 then RSI10 else Double.NaN;
UPSignal.HIDE();
DOWNSignal.HIDE();
plot UpSignal2 = if RSI>75 then RSI10 else Double.NaN;
plot DownSignal2 = if RSI<25 then RSI10 else Double.NaN;
UPSignal2.HIDE();
DOWNSignal2.HIDE();
UpSignal2.SetDefaultColor(Color.YELLOW);
UPSignal2.SETLineWeight(3);
UpSignal2.SetPaintingStrategy(PaintingStrategy.POINTS);
DownSignal2.SetDefaultColor(Color.red);
DOWNSignal2.SETLineWeight(4);
DownSignal2.SetPaintingStrategy(PaintingStrategy.POINTS);
#end code
#####################################
####################
input lengthFORCE = 12;
PLOT FI = 1/ExpAverage(data = (close - close[1]) *volume, lengthFORCE);
fi.SetLineWeight (2);
fi.SetPaintingStrategy(PaintingStrategY.points);
fi.AssignValueColor(if FI> 0 then Color.green else if FI< 0 then Color.dark_orange else Color.LIGHT_GRAY);
switch (ShowADXValue)
{
case DoNotShow:
ShowDigits = 0;
case OnLeft:
ShowDigits = 1;
case OnRight:
ShowDigits = 2;
}
def HighlightColor =
if (ADX >= 50) then 51 else
if (ADX >= 40 and ADX < 50) then 51 else
if (ADX >= 30 and ADX < 40) then 102 else
if (ADX >= 20 and ADX < 30) then 153 else
if (ADX >= 10 and ADX < 20) then 204 else
255;
Thanks alagrande! I'll give it a look, thanks again for all your help much appreciated!
Kebon
Eagle Mountain Lake, Texas
Posts: 1 since Apr 2019
Thanks Given: 0
Thanks Received: 0
I really like what you've done here with Ehler's stuff. I am trying to learn more about TA, and your ideas really help me to look more into the possibilities of the coding for the TA ideas. I wanted to reach out and say "thank you very much".