Members Area  Sign UpLog In
Free Level 2 Quotes
Blogs
Stock Analysis
Indicator Analysis
Correlations
Membership Benefits
 
AiStockCharts.com
Enter Symbol    

 



 

Enter id # or part of an indicator:



TECHNICAL INDICATOR OPERATORS & SYNTAX:

OperatorDescriptionOperatorDescription
>Greater thanandLogical AND
<Less thanorLogical 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. 
Enter up to 5 ticker symbols to analyze:  
(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] 


IndicatorUsageDescriptionExample
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])
newhighnewhigh[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])
newlownewlow[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])
gapgap[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]))
avevolavevol[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]))

IndicatorUsageDescriptionExample
smasma[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])
emaema[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])
bbbb[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])
faststofaststo[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)
rsirsi[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)
imiimi[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)
macdmacd[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])

IndicatorUsageDescriptionExample
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])

IndicatorUsageDescriptionExample
p1changep1change[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)
p2changep2change[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)
p3changep3change[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)
p4changep4change[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)
p5changep5change[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)
p1rangep1range[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)
p2rangep2range[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)
p3rangep3range[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)
p4rangep4range[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)
p5rangep5range[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)



 

Any specific investment or investment service contained or referred to in this web site may not be suitable for all visitors to this site. An investment in stocks may mean investors may lose an amount even greater than their original investment. Anyone wishing to invest or speculate in the stock market should seek his or her own financial or professional advice. AiStockCharts.com is not an investment advisory service and does not recommend the purchase or sale of stocks. There are no licensed financial advisors working at AiStockCharts.com.

HYPOTHETICAL PERFORMANCE RESULTS HAVE MANY INHERENT LIMITATIONS, SOME OF WHICH ARE DESCRIBED BELOW. NO REPRESENTATION IS BEING MADE THAT ANY ACCOUNT WILL OR IS LIKELY TO ACHIEVE PROFITS OR LOSSES SIMILAR TO THOSE SHOWN. IN FACT, THERE ARE FREQUENTLY SHARP DIFFERENCES BETWEEN HYPOTHETICAL PERFORMANCE RESULTS AND THE ACTUAL RESULTS SUBSEQUENTLY ACHIEVED BY ANY PARTICULAR TRADING SYSTEM. ONE OF THE LIMITATIONS OF HYPOTHETICAL PERFORMANCE RESULTS IS THAT THEY ARE GENERALLY PREPARED WITH THE BENEFIT OF HINDSIGHT. IN ADDITION, HYPOTHETICAL TRADING DOES NOT INVOLVE FINANCIAL RISK, AND NO HYPOTHETICAL TRADING RECORD CAN COMPLETELY ACCOUNT FOR THE IMPACT OF FINANCIAL RISK IN ACTUAL TRADING. FOR EXAMPLE, THE ABILITY TO WITHSTAND LOSSES OR TO ADHERE TO A PARTICULAR TRADING PROGRAM IN SPITE OF TRADING LOSSES ARE MATERIAL POINTS WHICH CAN ALSO ADVERSELY AFFECT ACTUAL TRADING RESULTS. THERE ARE NUMEROUS OTHER FACTORS RELATED TO THE MARKETS IN GENERAL OR TO THE IMPLEMENTATION OF ANY SPECIFIC TRADING PROGRAM WHICH CANNOT BE FULLY ACCOUNTED FOR IN THE PREPARATION OF HYPOTHETICAL PERFORMANCE RESULTS AND ALL OF WHICH CAN ADVERSELY AFFECT ACTUAL TRADING RESULTS. THE RISK OF LOSS IN TRADING STOCKS CAN BE SUBSTANTIAL.

Stock trading is speculative and a substantial risk of loss exists. Past performance is not necessarily indicative of future results.

Copyright  2005-2017 AiStockCharts.com,   All rights Reserved.