AiStockCharts.com Enter Symbol

 Enter id # or part of an indicator:

TECHNICAL INDICATOR OPERATORS & SYNTAX:

 Operator Description Operator Description > Greater than and Logical AND < Less than or Logical OR = Equal + Add >= Greater than or equal - Subtract <= Less than or equal * Multiply (   ) Grouping of statements / Divide

IMPORTANT NOTES REGARDING SYNTAX:

 Always use parenthesis to group statements. This is important even if your statement is a simple single comparison such as (open[0] > close[1]). Only compare up to 2 indicators (or indicator and number) at a time.For example, instead of (low[0] < low[1] < low[2]) you must enter (low[0] < low[1]) and (low[1] < low[2]). Do not use + or - as logical operators. Instead, + is used as the addition operator and - is used as the subtraction operator. Logical and is the word and. Logical or is the word or.

 > < == >= <= ( ) ! and or + - * /
 Enter an indicator to analyze: characters left. Entered by Anonymous? (close[0] > bb[20,2,u]) Enter up to 5 ticker symbols to analyze: Show detail in results? (OPTIONAL) Give your indicator a name:
 open[n] high[n] low[n] close[n] vol[n] newhigh[x,n] newlow[x,n] avevol[x,n] sma[x,n] ema[x,n] bb[x,y,z,n] faststo[k,d,r,n] rsi[x,n] imi[x,n] macd[s,f,t,r,n] smacrossover[x,y,n] smam[x,n] smamspeed[x,y,n] smamdir[x,y,n] black[n] white[n] doji[n] smbody[n] lgbody[n] smuwick[n] lguwick[n] smlwick[n] lglwick[n] gap[x,y,z,n] p1change[n] p2change[n] p3change[n] p4change[n] p5change[n] p1range[n] p2range[n] p3range[n] p4range[n] p5range[n]

 Indicator Usage Description Example open (open[n] OPERATOR (INDICATOR or POSITIVE NUMBER)) , where n is a positive integer. Returns the opening price of day n where n=0 represents the current end of day, n=1 is the previous end of day, etc. (open[0] > close[1]) high (high[n] OPERATOR (INDICATOR or POSITIVE NUMBER)) , where n is a positive integer. Returns the high price of day n where n=0 represents the current end of day, n=1 is the previous end of day, etc. (high[0] < open[1]) low (low[n] OPERATOR (INDICATOR or POSITIVE NUMBER)) , where n is a positive integer. Returns the low price of day n where n=0 represents the current end of day, n=1 is the previous end of day, etc. (low[0] < low[1]) and (low[1] < low[2]) close (close[n] OPERATOR (INDICATOR or POSITIVE NUMBER)) , where n is a positive integer. Returns the closing price of day n where n=0 represents the current end of day, n=1 is the previous end of day, etc. (close[0] > close[1]) newhigh newhigh[x,n] , where x is a positive integer >= 2 and n is optional and represents the number of days ago the result is computed (n=0 is the default value and represents the current end of day, n=1 is the previous end of day, etc.) Returns a 1 (logical TRUE) if the closing price from n days ago is equal to the highest closing price for the last x days starting n days ago. (newhigh[30]) newlow newlow[x,n] , where x is a positive integer >= 2 and n is optional and represents the number of days ago the result is computed (n=0 is the default value and represents the current end of day, n=1 is the previous end of day, etc.) Returns a 1 (logical TRUE) if the closing price from n days ago is equal to the lowest closing price for the last x days starting n days ago. (newlow[10]) gap gap[x,y,z,n] , where x {fu, fd, pu, pd, uu, ud} and y & z are optional positive integers <= 100% representing the minimum and maximum percentage price gap change. n is optional and represents the number of days ago the result is computed (n=0 is the default value and represents the current end of day, n=1 is the previous end of day, etc.) Returns a 1 (logical TRUE) if the price gap from n days ago matches x, fu=Full Up Gap, fd=Full Down Gap, pu=Partial Up Gap, pd=Partial Down Gap, uu=Unfilled Up Gap, ud=Unfilled Down Gap (gap[fu,1])Screens for full up gaps where the opening price is > 1% higher than the previous day high price. vol (vol[n] OPERATOR (INDICATOR or POSITIVE NUMBER)) , where n is a positive integer. Returns the volume of day n where n=0 represents the current end of day, n=1 is the previous end of day, etc. (vol[0] > (1.5 * vol[1])) avevol avevol[x,n] OPERATOR (INDICATOR or POSITIVE NUMBER) , where x is a positive integer >= 2 and n is optional and represents the number of days ago the result is computed (n=0 is the default value and represents the current end of day, n=1 is the previous end of day, etc.) Returns the x-day simple moving average volume from n days ago. (avevol[5] < (0.8 * avevol[50]))

 Indicator Usage Description Example sma sma[x,n] OPERATOR (INDICATOR or POSITIVE NUMBER) , where x is a positive integer >= 2 and n is optional and represents the number of days ago the result is computed (n=0 is the default value and represents the current end of day, n=1 is the previous end of day, etc.) Returns the x-day simple moving average closing price from n days ago. (sma[20] > sma[50]) ema ema[x,n] OPERATOR (INDICATOR or POSITIVE NUMBER) , where x is a positive integer >= 2 and n is optional and represents the number of days ago the result is computed (n=0 is the default value and represents the current end of day, n=1 is the previous end of day, etc.) Returns the x-day exponential moving average closing price from n days ago. (close[0] < ema[40]) and (close[1] > ema[40]) bb bb[x,y,z,n] OPERATOR (INDICATOR or NUMBER) , where x is a positive integer >= 2 representing the x-day sma period, y is a positive integer from 2 to 10 representing the distance from the sma, z is either 'u' or 'l' representing 'upper' and 'lower' Bollinger Bands and n is optional and represents the number of days ago the result is computed (n=0 is the default value and represents the current end of day, n=1 is the previous end of day, etc.) Returns the x,y,z Bollinger Band value from n days ago. (close[0] > bb[20,2,u]) faststo faststo[k,d,r,n] OPERATOR (INDICATOR or NUMBER) , where k and d are positive integers >= 2, r {k, d} and n is optional and represents the number of days ago the result is computed (n=0 is the default value and represents the current end of day, n=1 is the previous end of day, etc.) Returns one of the following:(1) the %K fast stochastic if r = 'k' or r is not provided;(2) the %D fast stochastic if r = 'd'. (faststo[14,3,d] < 8) rsi rsi[x,n] OPERATOR (INDICATOR or NUMBER) , where x is a positive integer >= 2 and n is optional and represents the number of days ago the result is computed (n=0 is the default value and represents the current end of day, n=1 is the previous end of day, etc.) Returns the x-day relative strength index from n days ago. (rsi[14] < 30) imi imi[x,n] OPERATOR (INDICATOR or NUMBER) , where x is a positive integer >= 2 and n is optional and represents the number of days ago the result is computed (n=0 is the default value and represents the current end of day, n=1 is the previous end of day, etc.) Returns the x-day intraday momentum index from n days ago. (imi[14] < 30) macd macd[s,f,t,r,n] OPERATOR (INDICATOR or NUMBER) , where s,f,t are positive integers >= 2, r is optional where r {s, f, t} and n is optional and represents the number of days ago the result is computed (n=0 is the default value and represents the current end of day, n=1 is the previous end of day, etc.) Returns one of the following: (1) the s,f,t MACD if r is not provided; (2) the s-day exponential moving average if r = 's'; (3) the f-day exponential moving average if r = 'f'; (4) the t-day MACD trigger value if r = 't'. ((macd[12,26,9] / ema[26]) < -0.02) smacrossover (smacrossover[x,y,n]) , where x and y are positive integers and n is optional and represents the number of days ago the result is computed (n=0 is the default value and represents the current end of day, n=1 is the previous end of day, etc.). Returns a 1 (logical TRUE) if the x-day simple moving average from n days ago crosses above the y-day simple moving average. Otherwise, it returns 0. (smacrossover[14,9]) smam (smam[x,n] OPERATOR (INDICATOR or PERCENTAGE)) , where x is a positive integer and n is optional and represents the number of days ago the result is computed (n=0 is the default value and represents the current end of day, n=1 is the previous end of day, etc.) Do not use the % sign. Returns the slope of the x-day simple moving average from n days ago expressed as a percent of the closing price. (smam[14] < -0.5)Screens for a 0.5% or more decrease in the 14-day simple moving average from one day to the next day. smamspeed (smamspeed[x,y,n]) , where x is a positive integer, y {a,d,n,rd,ru} and n is optional and represents the number of days ago the result is computed (n=0 is the default value and represents the current end of day, n=1 is the previous end of day, etc.) Returns a 1 (logical TRUE) if the the acceleration of the slope of the x-day simple moving average from n days ago matches y, a = Accelerating, d=Decelerating, n = Neutral, rd = Reversal Down, ru = Reversal Up (smamspeed[25,a]) and (smamdir[25,m]) smamdir (smamdir[x,y,n]) , where x is a positive integer, y {p,m,z} and n is optional and represents the number of days ago the result is computed (n=0 is the default value and represents the current end of day, n=1 is the previous end of day, etc.) Returns a 1 (logical TRUE) if the direction of the slope of the x-day simple moving average from n days ago matches y, p = Plus, m = Minus, z = Zero (smamdir[25,p]) and (close[0] > sma[25])

 Indicator Usage Description Example black (black[n]) , where n is a positive integer >= 0 and represents the number of days ago the result is computed (n=0 is the default value and represents the current end of day, n=1 is the previous end of day, etc.) Returns a 1 (logical TRUE) if day n is a black candle and a 0 (false) if day n is not a black candle. (black[0]) and (black[1]) and (black[2]) white (white[n]) , where n is a positive integer >= 0 and represents the number of days ago the result is computed (n=0 is the default value and represents the current end of day, n=1 is the previous end of day, etc.) Returns a 1 (logical TRUE) if day n is a white candle and a 0 (false) if day n is not a white candle. (white[0]) and (white[1]) and (white[2]) doji (doji[n]) , where n is a positive integer >= 0 and represents the number of days ago the result is computed (n=0 is the default value and represents the current end of day, n=1 is the previous end of day, etc.) Returns a 1 (logical TRUE) if day n is a doji candle and a 0 (false) if day n is not a doji candle. (doji[0]) smbody (smbody[n]) , where n is a positive integer >= 0 and represents the number of days ago the result is computed (n=0 is the default value and represents the current end of day, n=1 is the previous end of day, etc.) Returns a 1 (logical TRUE) if day n is a small body candle and a 0 (false) if day n is not a small body candle. (smbody[0]) lgbody (lgbody[n]) , where n is a positive integer >= 0 and represents the number of days ago the result is computed (n=0 is the default value and represents the current end of day, n=1 is the previous end of day, etc.) Returns a 1 (logical TRUE) if day n is a large body candle and a 0 (false) if day n is not a large body candle. (lgbody[0]) smuwick (smuwick[n]) , where n is a positive integer >= 0 and represents the number of days ago the result is computed (n=0 is the default value and represents the current end of day, n=1 is the previous end of day, etc.) Returns a 1 (logical TRUE) if day n candlestick has a small upper wick and a 0 (false) if day n candlestick does not have a small upper wick. (smuwick[0]) lguwick (lguwick[n]) , where n is a positive integer >= 0 and represents the number of days ago the result is computed (n=0 is the default value and represents the current end of day, n=1 is the previous end of day, etc.) Returns a 1 (logical TRUE) if day n candlestick has a large upper wick and a 0 (false) if day n candlestick does not have a large upper wick. (lguwick[0]) smlwick (smlwick[n]) , where n is a positive integer >= 0 and represents the number of days ago the result is computed (n=0 is the default value and represents the current end of day, n=1 is the previous end of day, etc.) Returns a 1 (logical TRUE) if day n candlestick has a small lower wick and a 0 (false) if day n candlestick does not have a small lower wick. (smlwick[0]) lglwick (lglwick[n]) , where n is a positive integer >= 0 and represents the number of days ago the result is computed (n=0 is the default value and represents the current end of day, n=1 is the previous end of day, etc.) Returns a 1 (logical TRUE) if day n candlestick has a large lower wick and a 0 (false) if day n candlestick does not have a large lower wick. (lglwick[0])

 Indicator Usage Description Example p1change p1change[n] OPERATOR (INDICATOR or NUMBER) , where n is a positive integer >= 0. Returns the percentage change from the opening to closing price of day n where n=0 is the last trading day, n=1 is the previous day, etc. (p1change[0] > -1) and (p1change[0] < 1) p2change p2change[n] OPERATOR (INDICATOR or NUMBER) , where n is a positive integer >= 0. Returns the percentage change from the closing price of day n-1 to the closing price of day n where n=0 is the last trading day, n=1 is the previous day, etc. p2change[0] is the percentage price change (from close to close) found at most popular financial web sites. (p2change[0] > -1) and (p2change[0] < 1) p3change p3change[n] OPERATOR (INDICATOR or NUMBER) , where n is a positive integer >= 0. Returns the percentage change from the closing price of day n-2 to the closing price of day n where n=0 is the last trading day, n=1 is the previous day, etc. (p3change[0] > -1) and (p3change[0] < 1) p4change p4change[n] OPERATOR (INDICATOR or NUMBER) , where n is a positive integer >= 0. Returns the percentage change from the closing price of day n-3 to the closing price of day n where n=0 is the last trading day, n=1 is the previous day, etc. (p4change[0] > -1) and (p4change[0] < 1) p5change p5change[n] OPERATOR (INDICATOR or NUMBER) , where n is a positive integer >= 0. Returns the percentage change from the closing price of day n-4 to the closing price of day n where n=0 is the last trading day, n=1 is the previous day, etc. (p5change[0] > -1) and (p5change[0] < 1) p1range p1range[n] OPERATOR (INDICATOR or POSITIVE NUMBER) , where n is a positive integer >= 0. Returns the percentage change from the low to high price of day n where n=0 is the last trading day, n=1 is the previous day, etc. (p1range[0] < 2) p2range p2range[n] OPERATOR (INDICATOR or POSITIVE NUMBER) , where n is a positive integer >= 0. Returns the percentage change from the lowest price among day n and day n-1 to the highest price among day n and day n-1 where n=0 is the last trading day, n=1 is the previous day, etc. (p2range[0] < 3) p3range p3range[n] OPERATOR (INDICATOR or POSITIVE NUMBER) , where n is a positive integer >= 0. Returns the percentage change from the lowest price among day n, day n-1 and day n-2 to the highest price among day n, day n-1 and day n-2 where n=0 is the last trading day, n=1 is the previous day, etc. (p3range[0] < 3) p4range p4range[n] OPERATOR (INDICATOR or POSITIVE NUMBER) , where n is a positive integer >= 0. Returns the percentage change from the lowest price among day n, day n-1, day n-2 and day n-3 to the highest price among day n, day n-1, day n-2 and day n-3 where n=0 is the last trading day, n=1 is the previous day, etc. (p4range[0] < 3) p5range p5range[n] OPERATOR (INDICATOR or POSITIVE NUMBER) , where n is a positive integer >= 0. Returns the percentage change from the lowest price among day n, day n-1, day n-2, day n-3 and day n-4 to the highest price among day n, day n-1, day n-2, day n-3 and day n-4 where n=0 is the last trading day, n=1 is the previous day, etc. (p5range[0] < 3)