ShareScript Library

Welcome to the ShareScript Library.

Here you will find links to more scripts created by us and other members which can be downloaded and imported into your copy of ShareScope. Simply click on one of the category headings to display a list of available scripts.

Click here for instructions on importing ShareScript files into ShareScope.

Click here to download ShareScript Tutorials and Documentation.

If you would like to share a script with other users, please email an attachment and description of the script to contribute@sharescript.co.uk. Scripts will be checked by ShareScope Support before uploading to the Library.



ShareScript Columns

Remember, column scripts that return a numeric value can be used as Data Mining filters.

Technical Analysis Columns (61 scripts available) +
Name Description
% Change from Monthly 1st
(70 downloads)
Returns the % change from the 1st of the current month. If the 1st isn't a trading day, the previous trading day is used instead.
AccDist ROC%
(47 downloads)
Returns the % Rate of Change of the Accumulation/Distribution indicator.
ADX Value
(709 downloads)
Displays the latest ADX, DI+, DI- or ADXR values using either daily, weekly or monthly data.Displays the latest ADX, DI+, DI- or ADXR values using either daily, weekly or monthly data.
Alarm - Adaptive Stoch Osc
(49 downloads)
An alarm that triggers when the Adaptive Stochastic Oscillator crosses the set trigger level
Alarm - CCI Cross
(69 downloads)
An alarm that triggers when the CCI crosses the set trigger level
Alarm - Donchian Cross
(76 downloads)
An alarm that triggers when the mid price crosses the Donchian Channels
Alarm - EOD (+Intraday Data) Golden/Dead Cross
(47 downloads)
Alarm script designed to trigger when a golden or dead cross occurs. Replicates what you would see on an Historical Graph when you have the intraday data included.
Alarm - EOD (+Intraday Data) Price Crossing MA
(44 downloads)
Alarm script designed to trigger when the High/Low or the Close crosses the MA. Replicates what you would see on an Historical Graph when you have the intraday data included.
Alarm - Impulse System
(141 downloads)
An alarm based on the Impulse System. The alarm will notify the user of any signal change in the Impulse System (Buy-->Sell, Sell-->Neutral, etc.)
Alarm - Intraday MA Cross
(66 downloads)
Intraday MA cross alarm that triggers immediately, without waiting for the current bar to complete. This makes it faster than the ShareScope MA alarm, but could generate false signals.
Alarm - Intraday Volume Greater Than ADV
(122 downloads)
Calculates the ADV based on a specified number of periods. Returns a 1 if the Intraday Volume becomes greater than the specified percentage above the ADV. Can be used as an alarm script.
Alarm - New Highs/New Lows
(75 downloads)
Triggers when a share is making a new high or low, based on Intraday data. Can be set to look for high and low values or only closing values.
Alarm - Share divergence
(39 downloads)
The alarm triggeres when the two shares diverge by the set % compared to their previous close. For example: if a share rises by 2% and the other falls by 3.5% their divergence will be 5.5%
Alarm - Trend Cross
(52 downloads)
An alarm that triggers when the mid price moves close to or crosses the confidence lines
Annualised Trend
(119 downloads)
Returns the annualised slope of the trend expressed as a % of the latest close
Aroon
(205 downloads)
Returns the latest Aroon Up or Aroon Down value.
ATR value
(553 downloads)
Displays the latest ATR value using either daily, weekly or monthly data.
Average Daily Volume
(106 downloads)
Returns the current average daily volume (signal line) value for the Share. For use with Data-mining as this can be added as a price column in the program.
Awesome Oscilator Cross
(124 downloads)
Checks back a specified number of periods and returns 1 if the Awesome Oscilator has crossed 0 since then.
BandWidth
(329 downloads)
Displays the value of the difference between Bollinger Bands. The script returns the BB convergence expressed either as a % of the Close, as a % of theMA or as a % of the average HL spread.
Beta & Correlation
(232 downloads)
Displays the beta or correlation of a share against a selected index over a set period of time.
Better than Gold
(337 downloads)
Displays the share's relative strength against Gold(£). The relative strength is returned as the normalised distance from the 45 SMA, resulting in a rolling figure instead of a fixed one.
Bollinger Band / Price %
(24 downloads)
Returns the % change between the current mid price and the the upper or lower Bollinger Band
Bollinger Band Cross
(93 downloads)
Designed to be applied as an intraday alarm, this script uses the historical data, as seen on the historical graph, and assumes you have 'Include Latest Intraday price' ticked in Graph Design.
Buys Minus Sells
(204 downloads)
Returns the volume or value difference between the day's buys and sells.
Cash Flow Per Share / EPS
(35 downloads)
Returns Cash Flow Per Share / EPS
CCI Value
(53 downloads)
Returns the current CCI Value for a given period.
Cross Finder
(272 downloads)
Identifies a number of classic technical crosses. NEW: added separate settings for golden/dead cross MA types.
Elder-Ray buy/sell signal filter
(625 downloads)
Returns 1 when the Elder-Ray indicator signals a buy, -1 when it signals a sell. Author: Kenneth Halley
First Price Date
(71 downloads)
Returns the date of the first price of a security in the format YYYY/MM/DD. This means you can sort the column eefectively. Useful for eliminating securities with short histories.
Friday change
(94 downloads)
Displays the change between the current close and last Friday's close. Thursday's close will be used if Friday is a bank holiday.
High minus Low MA
(201 downloads)
Displays the average difference between the High and Low
Ichimoku Cross
(159 downloads)
Finds crosses between Standard Line (Kijun Sen) and the Turning Line (Tenkan Sen) and checks to see if they have crossed, returns results of 1 and - 1 depending on whether it's a bullish or bearish cross.
Ichimoku Kumu
(77 downloads)
Returns a 1 if the price has moved above the cloud and a -1 if the price moves below the cloud. Also allows intraday data to be used as part of the calculation.
Ichimoku Value
(312 downloads)
Displays the latest value of the various Ichimoku lines
Individual Stop Loss Values
(94 downloads)
Allows you to set individual stop-loss values, either as a percentage or a fixed pence/cent amount and the stop-loss start date and returns the current stop loss value.
Intraday Volume Spike
(57 downloads)
Finds shares whose current intraday volume bar has just spiked above the average.
Last Dividend Paid
(58 downloads)
Displays information on the last paid dividend
MA Price Touch
(72 downloads)
Returns 1 if the share closed below the MA n days ago, then closed above at least once in the following days. Retuns -1 if the opposite happened.
MACD Value
(131 downloads)
Displays the latest MACD, signal or histogram value
OHLCV on Date
(61 downloads)
Displays OHLCV data on a chosen date. The date needs to be entered in DD/MM/YY format.
Opening Gap %
(22 downloads)
Returns the % change between today's open and yesterday's close.
Outside Bollinger Bands
(416 downloads)
Finds shares that are currently trading outside the top band or bottom band
Price Channel Breakout
(238 downloads)
Finds shares that have closed outside of the price channels
Price Crossing Kijun Sen
(136 downloads)
Calculates the the Kijun Sen and checks to see if the price has crossed it. Returns 1 and -1 for a bullish and bearish cross respectively.
Price minus MA
(160 downloads)
Returns the difference between the price and the moving average. The result can be displayed either as an absolute value or as a percentage.
Relative Strength
(522 downloads)
Shows if the share has outperformed the underlying stock over a set period of days
Relative Strength: New Highs-Lows
(401 downloads)
Shows if the relative strength against the underlying stock has reached new highs or lows
RSI - RSI Cross
(63 downloads)
Shows a 1 when 2 RSIs specified in the script cross, automatically uses intraday data as if you have that option included on your historical graph.
RSI Latest Value
(234 downloads)
Displays the latest RSI value using either daily or weekly data. Can be set to use the latest Intraday value as well.
Stochastic Oscilator latest value
(249 downloads)
Returns the latest value of either %K or %D. Allows you to set the periods, slowing and choose either daily or weekly data.
Trend Cross
(532 downloads)
Returns 1 if the high crossed above the top tend confidence line, -1 if the low crossed below the bottom conf line
Trend/Price Ratio
(18 downloads)
Returns the value of the trend dividend by the current price
UT Analysis
(28 downloads)
Returns a number of risk management statistics including alpha, beta and standard deviation.
Volatility
(175 downloads)
Returns the latest volatility value
Volume
(461 downloads)
The latest volume to use with DataMining
Volume - signal (%)
(58 downloads)
Returns the % difference between the intraday volume and the signal
Weekly Elder-Ray filter
(486 downloads)
Generates buy-sell signals based on the weekly Elder-Ray indicator (see script comments for details)
Weekly H-L Filter
(148 downloads)
Finds shares that are trading higher than last weeks high or lower than last week's low.
Weighted RSI
(298 downloads)
An RSI based on weighted average monthly price changes.
William's %R
(345 downloads)
Returns the latest value of William's %R indicator

Back to the top
Fundamentals Columns (20 scripts available) +
Name Description
10-year annualised return
(126 downloads)
Displays the 10-year annualised percentage return
3-year annualised return
(88 downloads)
Displays the 3-year annualised percentage return
5-year annualised return
(140 downloads)
Displays the 5-year annualised percentage return
Capitalisation vs Pre Tax Profits
(100 downloads)
Returns 1 if the Market Capitalisation is less than the Pre Tax Profits multiplied by a given value (the default is 15)
CashFlow / EPS
(389 downloads)
Cash Flow divided by EPS (historical)
EBIT
(103 downloads)
Calculates Earnings Before Interest & Tax
Enterprise Value
(118 downloads)
Calculates the Enterprise Value (Capitalisation+Net Borrowing) of a share
EPS Growth %
(137 downloads)
Returns the Rolling PE2/Rolling PE1 expressed as a percentage
EV/EBITDA
(65 downloads)
Enterprise Value over Earnings before Interest, Tax, Depreciation and Amortisation
FTSE Weight
(95 downloads)
Returns a share's weight in the chosen FTSE index.
Net Borrowing vs Pre Tax Profit
(100 downloads)
Returns 1 if the Net Borrowing is less than the Pre Tax Profits multiplied by a given value (the default is 3)
Next Dividend Date
(113 downloads)
Displays the next confirmed or estimated ex-dividend or pay date.
Premium/Discount to NTAV
(547 downloads)
Is the share trading at a premium or discount to tangible NAV?
Rolling P/E 3
(237 downloads)
A Rolling P/E calculated using the three year projected EPS and the latest close
Sector P/E
(367 downloads)
Returns the share's sector P/E Ratio.
Sector P/E (Projected)
(140 downloads)
Returns the share's projected sector P/E Ratio.
Shareholder's Funds
(22 downloads)
Displays the company's Shareholder's Funds including and excluding intangibles and the value of the intangibles.
Trailing EPS
(220 downloads)
The latest trailing EPS calculated using the last two reported half year results.
Trailing Yield
(235 downloads)
The latest trailing Yield calculated using the last two reported half year results.
WMA of EPS growth
(414 downloads)
Weighted MA of the last 5 results & up to 3 forecast years of EPS growth. Gives a lower weighting to older growth and to forecast growth.

Back to the top

ShareScript Indicators:


Technical Analysis Indicators (51 scripts available) +
Name Description
Adv-Dec Oscillator
(28 downloads)
Returns the Advances-Declines of a list of shares as an oscillator pivoting around 0.
Advance-Decline MA
(40 downloads)
A moving average of the Advance-Decline market graph. Please note that this indicator may take a few minutes to calculate.
ADX + Additional Line
(132 downloads)
Draws the ADX and an additional line at a user specified level
BandWidth
(517 downloads)
Displays the value of the difference between Bollinger Bands. The script returns the BB convergence expressed either as a % of the Close, as a % of theMA or as a % of the average HL spread.
Bollinger %b
(149 downloads)
Bollinger Band %b indicator. %b = (close - lowerBand) / (upperBand - lowerBand). 1 and 0 are respectively the overbought and oversold levels.
Bollinger Band Histogram
(179 downloads)
Adds a Histogram Indicator that represents the difference between the Upper and Lower Bollinger Bands
CCI Bollinger Bands
(70 downloads)
Draws a CCI indicator with Bollinger Bands
CMF
(88 downloads)
Chaikin Money Flow Indicator
Elder Ray Bear Histogram
(389 downloads)
Similar to the Elder-Ray indicator, this script only returns the Bear line. Script modified by Kenneth Halley
Elder Ray Bull Histogram
(371 downloads)
Similar to the Elder-Ray indicator, this script only returns the Bull line. Script modified by Kenneth Halley
Elder's Auto Envelope
(491 downloads)
From Alexander Elder's book "Sell & Sell Short". Envelope channels provide attractive profit targets - sell longs near the upper channel line and cover shorts near the lower channel line.
End of Day Compare
(190 downloads)
Calculates the difference or the ratio between the share and the selected base share. A different base share can be set for each graph as the script memorises pairs of shares separately.
Exponential MA plus ATRs
(104 downloads)
Draws an exponential MA and then six additional lines which represent the MA+ 1ATR, -1ATR, 2ATRs, -2ATRs, 3ATRs, -3ATRs. Should be added to the graph via Other Main Graph Features.
Fibonacci Bands
(205 downloads)
Adds an EMA with 3 pairs of bands calculated based on an EMA of the True Range
Fisher Transform
(526 downloads)
Transforms price to normal distribution and makes it easier to see cyclic turns.
Fixed Relative Strength
(109 downloads)
Returns the relative strength of the share against the chosen share or index. The starting point is fixed and will not rebase when zooming.
Hull Moving Average
(616 downloads)
An indicator (designed to be added to the main graph) which plots a 16-period Hull Moving Average.
Impulse System
(1330 downloads)
Use on main graph - Green: buy signal - Red: sell signal
Intraday Compare
(144 downloads)
Calculates the difference or the ratio between the share and the selected base share
Intraday TICK & TRIN
(210 downloads)
Displays the intraday TICK or TRIN of a list of shares. Note: the script will only work on graphs that share the same market hours as the selected list (the FTSE100 TRIN can't display on a NASDAQ graph). Because the script requires a few seconds to calculate, the line may take a few moments to draw
Intraday VWAP
(99 downloads)
Calculates VWAP using all the intraday data available up to that moment in time.
Keltner
(52 downloads)
Keltner channel indicator with 3 sets of editable bands. Add this indicator to the main graph.
Momentum MA
(146 downloads)
A Momentum indicator and its signal.
Momentum Pinball
(399 downloads)
An RSI indicator based on the daily change
New Highs/Lows
(118 downloads)
Returns the 250 trading day New Highs/Lows market graph with separate histograms for the new highs and new lows.
PivotPoint Moving Average
(551 downloads)
A moving average based on Pivot Points instead of close prices
Quad Average Indicator
(80 downloads)
Draws a line from the average of four MAs which are related on the basis x, x*2, x*4, x*8. The standard setting uses MAs of 3, 6, 12, 24. The idea being to smooth out dominant cycles within the data.
Raff Regression Channels
(17 downloads)
A trand line with channels based on the difference between the highest high/lowest low and the trend
Rel Str Indicators
(106 downloads)
Chose between 4 outputs: an share's relative strength against a chosen index, the rel str. plus its MA, an RSI based on the rel str or a MACD based on the rel str.
Relative Volatility Index
(338 downloads)
The RVI uses the same formula as the RSI, but uses the standard deviation of the high and the low prices instead of the average upward and downward daily movement.
Rolling Relative Strength
(119 downloads)
Returns the relative strength of the share against the chosen index. The starting point rolls forward as the days progress, so every point displays the RS over the same fixed number of days.
RSI
(126 downloads)
A standard RSI indicator with editable overbought and oversold levels.
RSI Bands
(410 downloads)
Two bands indicating what price the share needs to reach in order for the RSI to cross 70 (top band) or 30 (bottom band). Add this indicator to the main graph.
RSI signal
(185 downloads)
An RSI (Wilder) indicator with a simple moving average signal.
Shaff Trend Cycle
(45 downloads)
A cycle indicator created by Doug Shaff. It's calculated by passing a MACD through a double smoothed stochastic oscillator.
SMA divergence
(378 downloads)
Price divergence from the 100 SMA as used by Tom Hougaard to identify extreme moves away from trend. Author: Kenny Halley
Special MACD
(69 downloads)
MACD based on two fully editable MAs. A more flexible MACD indicator where the type, the period and the data source can be set for each individual MA.
Stochastic Oscillator
(144 downloads)
Draws the Stochastic Oscillator. Also alows two additional lines to be drawn at user defined levels.
TEMA
(92 downloads)
Triple exponential moving average
Tillson T3
(98 downloads)
Tillson's T3 moving average as described by Tim Tillson in the January 1998 issue of Technical Analysis of Stocks & Commodities article "Smoothing Techniques for More Accurate Signals"
Trailing Stop 1
(857 downloads)
Trailing Stop based on a multiple of ATR (to be added on the main graph window). Script author: Roger Harmer
TTM Squeeze
(280 downloads)
John Carter's TTM Squeeze Indicator implemented. Bollinger Band MA Period=20, Std Dev=2. Keltner Band MA Period=10. Entry signal is when we come out of the period of consolidation (red background). Long or short is given by direction of momentum using histograms. Exit signal is when histogram colour bars change to darker colours (2 darker bars). (Author: David Cash)
Turtles System 2
(2665 downloads)
System 2 - from Curtis M. Faith's "Way of the Turtle"
Twigg Money Flow
(147 downloads)
Trend Indicator based on Volume and recent position of close relative to ATR, it can be used as an alternative to the Chaikin Money Flow indicator. (Author: Roger Harmer)
Two MAs
(68 downloads)
Two moving averages that can be drawn as indicators instead of being displayed on the main share graph.
Volume ROC
(94 downloads)
Rato of Chage indicator and signal based on volume data.
VWAP
(74 downloads)
End of day VWAP. Volume Weighted Average Price: a moving average of the close weighted by volume.
VWMACD
(147 downloads)
Volume Weighted MACD indicator. The indicator is calculated as a standard MACD, with more weight given to days with a higher volume. (Author: Roger Harmer)
Weekly/Monthly Pivot Points
(226 downloads)
Allows weekly or monthly Pivot Points to be displayed on a daily graph.
Zero lagging TEMA
(263 downloads)
Two zero lagging triple exponential moving averages of the typical price and the Heikin-Ashi close. Add to main graph.
ZLTCD
(83 downloads)
Zero lagging triple exponential moving average convergence divergence. Similar to the MACD, but uses zero lagging TEMAs of the typical price and the Heiken-Ashi close instead of EMAs.

Back to the top
Fundamentals Indicators (3 scripts available) +
Name Description
P/E Graph
(224 downloads)
An indicator of share's PE ratio calculated using year-end EPS
PEG Graph
(332 downloads)
An indicator of the share's PEG calculated using P/E and one year forecast EPS growth.
Yield Graph
(273 downloads)
An indicator of share's yield calculated using year-end dividends.

Back to the top

ShareScript Studies:


Technical Analysis Studies (14 scripts available) +
Name Description
2h Bars
(121 downloads)
Displays 2 hour bars on a Forex intraday graph. Please note that in order to avoid slowing ShareScope down too much, the script only updates when a new currency is selected
Consecutive Candles
(80 downloads)
Highlights consecutive up/down/inside/outside days. The number of consecutive days and the various colours can be set in the dialog box.
Darvas Boxes
(129 downloads)
Draws Darvas Boxes on the main graph.
Fractals
(52 downloads)
Adds flags on the graph to show fractal points on the chart.
Gann Levels
(60 downloads)
Draws Gann Levels on a chosen candle. The user can chose to draw positive or negative Levels and if to snap the lines to the close or the high-low. Multiple Gann Levels may be drawn on the same graph.
Heiken Ashi Candles
(198 downloads)
Displays Heiken Ashi Candles on the graph.
Impulse System: Bars
(62 downloads)
Colours the bars, Green/Red/Black as per Elders Impulse System. Replicates the same colouration as the Indicator script of the same name.
Multiday Pivot Points
(44 downloads)
This study is designed to be added to the intraday graph and shows you the pivot points for the previous day's OHLC values on each day on the graph.
Quick Change MA
(181 downloads)
Allows you to set the parameters for up to 5 separate MAs and change between them without reverting back to the MA dialog in ShareScope. Now includes a built in reset button.
Raff Regression Channels
(187 downloads)
A trend line with channels based on the largest difference between the trend line and either the high/low or the close
Stop Loss - Points
(88 downloads)
Draws a stop loss line based on a number of points rather than a percentage. Allows individual settings for each instrument.
Timed Candles
(62 downloads)
Draws two candles per day on the intraday graph with specific start and end times.
Trading Days Line
(44 downloads)
Draws a line between two fixed points and displays the percentage change and the number of trading days between them.
Vertical Lines
(196 downloads)
Allows you to draw upto 10 vertical lines on a graph, these are persistant so if you change share/zoom in etc they remain fixed in place by date.

Back to the top
Fundamentals Studies (0 scripts available) +
Name Description

Back to the top

ShareScript Tools:


Tools (7 scripts available) +
Name Description
Export DDE table
(150 downloads)
This tool creates an excel file with DDE closing price links for each share in a portfolio.
Index P/E
(155 downloads)
Displays the P/E Ratio of a number of indices.
Intraday Data Export for a Portfolio
(61 downloads)
Allows you to export intraday data for shares in a portfolio. You can specify the portfolio, number of days and bar length.
Intraday Export
(100 downloads)
Exports intraday OHLCV data to a csv file with the share's EPIC code. The script allows for either mid or trade data to be used. The file is located in ShareScope/ShareScript/Output/.
Portfolio Optimisation
(140 downloads)
Creates a correlation matrix in a spreadsheet for Markowitz mean-variance portfolio optimisation
US list autofill
(68 downloads)
Creates a text file that can be readily imported into a SS portfolio from a csv file of US epic codes, by adding the correct exchange code in front of each share. File added to the Output folder.
Weekly Data Export
(98 downloads)
Exports weekly data to a file with the share's EPIC code. The file is located in ShareScope/ShareScript/Output/.

Back to the top

Back to ShareScript homepage