Currency Strength [LuxAlgo]The Currency Strength indicator displays the historical relative strength of 5 user selected currencies over a user selected period of time. Users can also display relative strength of currencies as a scatter plot, further informing on the evolution of currency strength.
🔶 SETTINGS
Display: Determines the type of data displayed by the indicator. By default, the trailing relative strength of currencies is displayed, with the other option displaying the scatter plot.
Timeframe: Timeframe period used to calculate currency relative strength.
🔹 Meter
Show Strength Meter: Displays the currency strength meter on the indicator panel.
Strength Meter Resolution: Resolution of the currency strength meter, higher resolutions allow to observe smaller difference in strength.
Location: Location of the currency strength meter on the indicator pane.
Size: Size of the currency strength meter.
🔹 Relative Strength Scatter Graph
Scatter Graph Resolution: Horizontal and vertical width of the scatter plot (in bars). Higher values allow a more precise position on the X axis.
🔶 USAGE
Measuring the relative strength of a currency allows users to assess the relative performance of a currency against a basket of other currencies.
The term "strength" can convey various interpretations depending on the indicator. Here "strength" is interpreted as an indicator of performance, with stronger currencies having greater performances over the selected period (positive changes of higher magnitude).
The Currency Strength indicator allows users to analyze the relative strength of currencies over a user selected period - the returned results will reset periodically and will accumulate afterward.
The above chart shows the hourly relative strength of various currencies on the 1min TF.
🔹 Scatter Graph
The scatter graph displays the relative strength of a currency over its value during the previous period. This not only allows users to see if a currency is strong... but also if it's getting stronger compared to the previous period.
In order to quickly interpret results, the graph is divided into four areas. A currency (displayed as a point) being in a specific area returns the following information:
Strong(Green): Currency has a positive relative strength (bullish) and is greater than its value over the previous period.
Improving (Yellow): Currency has a negative relative strength (bearish) and is greater than its value over the previous period.
Weakening (Aqua): Currency has a positive relative strength (bullish) and is lower than its value over the previous period.
Weak (Red): Currency has a negative relative strength (bearish) and is lower than its value over the previous period.
🔶 DETAILS
There is a wide variety of methods for the calculation of a currency's relative strength. The primary focus of the indicator is on the meter as well as the relative strength scatter graph. The currency strength calculation can be considered more basic.
Given two currencies, B (base) and Q (quote), the proposed indicator calculation process is as follows:
Exchange rate BQ(t) over time t is obtained, a rising value of BQ(t) means that a unit of B is now worth a higher amount of Q , highlighting strength of B over Q on that precise variation.
The individual relative strength over time IRS(t) is obtained as the percentage relatively close to the open difference of BQ(t) , that is:
IRS(t) = / open(t) * 100
Normalizing the close to open difference allows for the various currencies' relative strengths to approximately share the same scale.
The above operation is performed n times over a space of n currencies O( n ) . The obtained individual relative strengths for one specific currency are then added together, forming the final composite relative strength ( CRS ) of that currency:
CRS (t) = IRS (t) + IRS (t) + ... + IRS (t)
The cumulative sum of CRS(t) over the user selected period is then obtained.
Comparazione Forza Relativa
Stock Relative Strength Power IndexAs always, this is not financial advice and use at your own risk. Trading is risky and can cost you significant sums of money if you are not careful. Make sure you always have a proper entry and exit plan that includes defining your risk before you enter a trade.
This idea recently came out of some discussions I stumbled across in a trading group I am a part of regarding Relative Strength and Relative Weakness (shortened to RS and RW from here on out). The whole mechanism behind this trading system is to filter out underperforming securities relative to the current market direction to be in only the strongest or weakest stocks when the market is currently experiencing a bullish or bearish cycle. The idea behind this is there is no point in parking your money into a stock that is treading water or even going down if the market is making strong moves upwards. At that point, you are at worst losing money, and at best trading equal to the index/ETF, in which case the argument is why are you not just trading the index/ETF instead? RS or RW will filter out these sector laggards and allow you to position yourself into strong (or the strongest) stocks at any given time to help improve portfolio performance. Further, not only does it protect your position should the market shift against you briefly, it also often sees exceptional performance in the same cycle. For example, if $SPY makes a 5% move over the course of a month, a stock with RS/RW may make a 10% move, or more, allowing you to see increased profit potential.
RS/RW is based on the idea of performance, that is the raw percent change of a security over a given time period relative to a benchmark. This benchmark is often the S&P500 (ES/SPX/SPY and their derivatives). I have to stress that this is not beta, which measures the volatility of a stock over a given period (i.e. if $SPY moves $1, $NVDA will often move $1.74). This is a measurement of the market (i.e. $SPY) has moved 1% over the course of a day, $NVDA has moved 8% over the course of the day. This is very often used as a signal of institutional interest as apart from some very unique moments, retail traders cannot and will not provide enough market pressure to move a market outside of a stock's normal trading range, nor will they outperform the sector or market as a whole consistently over time without some big money to make them move. The problem with running strict performance analysis (i.e. % change from period T ago to period T + n at present) is that while it gives us a baseline of how much the stock has moved, it doesn't overall mean much. For instance, if a $100 stock has moved 5% today, but has been experiencing a period of increased volatility and it's Average True Range (ATR) (the amount a stock will move over X number of periods, on average) is $7, performance seems impressive but is actually generally fairly weak to what the stock has been doing recently. Conversely, if we take a second stock, this time worth $20, and it too has moved 5% in one day but has an ATR of only $0.25, that stock has made an exceptional move and we want to be part of that.
Here, I have created an indicator called the Stock Relative Strength Power Index. This takes the stock's rate of change (ROC) (the % move it has made over X number of periods), the stock's normalized ATR (the ATR represented as a percentage instead of a raw value), and compares these to one another to get the "Power Rating": a representation of the true strength of a stock over X number of periods. The indicator does two things. First, the raw ROC is divided by the stock's normalized ATR to assess whether the stock is moving outside of its normal range of variation or not. Second, since we are interested in trading only stocks with exceptional RS/RW to the market, I have also applied this same calculation to the S&P500 ($SPY) and the various SPDR sector indexes. These comparisons allow for a rapid and accurate assessment of the true strength of a stock at any given time on any given time frame. To cycle back above to our examples, the $100 stock has a Power Rating of only 0.71 (i.e. it is trading less than its current average), while our $20 stock has a Power Rating of 5. If we then compare these to both the market as a whole and the sector that the stock is a part of, we get a much clearer indication of the true buying or selling pressure imposed on the stock at any given time.
Use:
The indicator has 3 lines. The blue line is the security of interest, the red line is the market baseline (i.e. the sector ETF $SPY), and the white line is the sector index. I have given an example above on the semiconductor/tech stock $NVDA on a 30min timeframe. You can see that since the start of 2023, $NVDA has generally been strong to the market and its own sector since the blue line is greater than both the red and white lines over many days. This would have provided some nice day trading opportunities, or even some nice short term swing trades. The values themselves are generally meaningless outside of either the 1 or -1 value lines. All that matters is that the current ticker is surpassing both the market and the sector while being > 1.0 for a long trade or less than -1.0 for a short trade. However, I must stress this indicator gives no trade signals on its own, it is purely a confirmation indicator. An example of a trade would be if you had a trade signal given by either an indicator or by price action suggesting to buy some $NVDA for a trade to the upside, the Power Rating indicator would confirm this by showing if $NVDA was actually showing true strength by being both greater than 1 (the cutoff for it surpassing its ATR) and being above both the red and white lines. Further, you can see $NVDA has been stronger than the market when using the comparison function as well, but the has fluxed in and out of strength intraday when using the actual indicator vs. the static performance ratio chart (plotted as line graphs on the chart).
I have made it possible to change the colour of the plots and the line levels. The adjustment of the line levels gives the trader the flexibility to change their target breakout level (i.e. only trading stocks that have a Power Rating > 2, for example, meaning they are trading at least 2X their normal trading range). The third security comparison is flexible and can be used to compare to the sector ETF (initial intention) or it can be used to compare to other tickers within the same sector, for example. The trader should select the appropriate ETF for the given security of interest to avoid false confirmation if they want to use an ETF as their third input. The proper sector should be readily available on most online websites and accessible in a matter of seconds meaning that the delay is minimal, at worst. If a trader wishes to add additional functionality, such as a crypto trader using BTCUSD as the benchmark instead of $SPY, I encourage them to copy and paste this script and modify as needed since I have made this open source.
This indicator works on all timeframes. The lookback period can be changed, so a day trader who may use a 5min chart (and use a period of 12 to get the hourly Power Rating) will find this equally useful as someone who may be a core trader who wants to look at the performance over the course of years and may use a 60 period on a monthly chart.
Happy trading and I hope this helps!
Relative Performance Dashboard v. 2This is a smaller and cleaner version of my previous Relative Performance table. It looks at the rate of change over 1M, 3M, 6M, 1YR & YTD and displays those for the current chart's ticker vs. an index/ticker of your choosing (SPX is default). I also have some fields for the ADR of the displayed chart, how far away the displayed chart is from 52-week highs, and a single number that compares the average relative strength of the displayed chart vs. the index. The way this average calculates is customizable by the user.
I like using this table next to an Earnings/Sales/Volume table that already exists by another user in the same pane and I designed this one so it can look just like that one to give a great view of the both fundamental and technical strength of your ticker in the same pane.
Keeping fundamental data independent from performance data allows you to still be able to see performance on things without fundamental data (i.e. ETFs, Indices, Crypto, etc.) as any script that uses fundamental data will not display when a chart that does not have fundamental data is displayed.
(CD|RS Signal) Caruso Divergence Relative Strength SignalCD|RS Signal allows for plotting horizontal bars to isolate periods where a security is forming a positive divergence from its benchmark, therefore, producing positive Relative strength when accounting for the security's volatility.
Investors can set how many 'pivots' or lows back to use when making an analysis. CD|RS Signal has an algorithm to identify pats market lows and automatically line them up with a stock's low around the same period of time. This allows for divergence analysis across many past lows and helps to isolate positive price divergences that are not so clear in choppy sideways trading action. CD|RS Signal helps an investor to identify when a security does not make a lower low vs a benchmark that has made a lower low over a similar period.
To help visualize the meaning behind the indicator, CD|RS Signal can be plotted in a separate pane, ideally over the benchmark itself. Traditionally the S&P500 is used for US stock analysis. By overlaying CD|RS Signal over the S&P 500, investors can more easily view which S&P 500 lows the stock is currently showing a positive divergence with.
This indicator allows you to select both your benchmark for comparing against as investors may prefer a commodity crypto currency or another stock. As well, users cans elect as far back to make the analysis by selecting the pivot lookback (how many prior ‘pivots’ or ‘market lows’ back to compare against).
In addition, to perform the historical study, investors can turn on historical HLs in the settings enabling all past CD|RS signals to show. This helps an investor to visualize how this has functioned on a security in the past.
(CA|RS Signal) Caruso Adaptive Relative Strength Signal CA|RS Signal is a new approach to relative strength analysis that incorporates a security’s volatility and correlation to a benchmark when performing RS analysis. Traditional RS methods compare the performance between two securities to identify which is outperforming on a percentage basis. although this is effective in many situations, some stocks are inherently less volatile and will not outperform a benchmark on a percentage basis. Accounting for a security's volatility and correlation to its benchmark through BETA allows for a more effective method to conduct RS analysis.
In order to build a tool that provides a robust signal, CA|RS Signal is a composite of RS from different time frames. The strongest trends have a security displaying RS across all timeframes measured. CA|RS Signal displays whether RS is identified along with how many internal components are currently identifying RS. This is helpful as a trend may progress from 3 components identifying RS down to only one as it wekas - providing early warning to an investor that RS is present but deteriorating.
CA|RS Signal is also adaptable to any time frame.
CA|RS Signal allows an investor to select which security will act as a benchmark. Traditionally, the S&P 500 is the benchmark for US stocks. International investors can select their local index of choice. Not equity investors can select a commodity, crypto token, or FX basket to get a different RS analysis.
(CD|RS) Caruso Divergence Relative StrengthCaruso Divergence Relative Strength (CD|RS) helps an investor to identify when a security does not make a lower low vs a benchmark. The standard application is to compare a stock to the S&P 500 (SPX). If the SPX makes a lower low and the stock does not, it displays significant Relative Strength.
This indicator allows you to select both your benchmark for comparing against as well as how far back to make the analysis by selecting the pivot lookback (how many prior ‘pivots’ or ‘market lows’ back to compare against).
Divergences can appear when markets are weak, and they make lower lows, but they can also appear in uptrends as stocks and indexes make higher highs. CD|RS also identifies when RS takes place “On Strength.” If the security and its benchmark both decline but the security can make new highs above its prior peak before the benchmark, it is once again displaying relative strength. Therefore CD|RS is helpful in finding Divergence Relative Strength in both up and down trends.
CD|RS works on any timeframe.
CD|RS has an accompanying indicator called CD|RS Signal which helps display the divergence in a different format and can be placed in a separate pane if the user wishes to keep the price chart clean.
(CA|RS) Caruso Adaptive Relative StrengthCaruso Adaptive Relative Strength helps an investor identify when a stock is performing better than an index on a relative basis. Going beyond traditional Relative Strength(RS) methods, CARS uses a stock's Beta to determine when Relative Strength is present when adjusting for the individual stock's volatility and correlation to its benchmark. Therefore, it allows investors to not only visualize if a stock is outperforming an index but rather if it is outperforming when considering the stock's Beta. This allows Relative Strength to be more easily viewed in lower volatility equities as well as ETFs, Commodities, and alternative assets. To be as effective as possible, I have built CARS to be an RS composite, and it factors in RS from different time periods in making its calculation.
To make the application as simple as possible, I designed CARS to change the background of the chart to blue when Relative Strength is identified. You also have the option to display a box around the data or plot symbols along the bottom of the chart to best suit your visual need. CARS access comes with CARS Signal access which is a separate indicator that plots below the price chart. It provides greater insight into the robustness of the CARS signal by displaying how many core internal components of CARS are displaying RS.
Importantly, you can also change which index or symbol you would like to use for comparison purposes. I have the default set to the S&P 500, but you can use any index, ETF, or security for comparison.
CARS is also adaptable to any time frame.
The greatest benefit in identifying Relative Strength is to discover which stocks are outperforming an index, therefore are undergoing accumulation. It is important to then time your entry into the stock when the price confirms. If an investor is seeking absolute price gains, then this last point of timing an entry is critical because a stock can outperform an index yet still fall - albeit less than the index.
Ratio_between_two_symbolsThis script plots the ratio of two symbols to show the relative strength between in order to determine which is the stronger security
Relative Strength against IndexThis is a very simple script to compare the performance of a single stock against its index, by adding / subtracting points for particular price action on up /down - days in the index.
For instance: If the index is down <-1ATR and the stock is not, it's +1 point. If the index is up >1ATR and the stock is up less than half, it's -1 point.
Basic idea (vs the commonly used "relative strength comparison") is that regular relative strength action over a time tells more about accumulaiton than pure price outperformance.
Formula can probably be made better - I'm open to suggestions...
[TTI] Combined Absolute Relative Strength - ARS toolHISTORY AND CREDITS–––––––––––––––––––––––––––––––––––––––––––––––––––––––
I got inspired to build this based on some public lectures I have seen of Matt Caruso. Matt says he has taken 10 years to build similar tool. The idea of a 'better' Relative Strength hit home and I cracked open the textbooks to see which technique would serve best. I think I have made a very close (my estimate about 90%) script to the original. Examples of side by side in comments.
WHAT IT DOES––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––
💡A significant advancement in relative strength analysis is Combined Adaptive Relative Strength (ARS tool).
The ARS tool makes it quick and easy to determine whether an asset exhibits Relative Strength and is therefore subject to institutional accumulation.
ARS is not restricted to equities and may be used to find RS on any traded security like crypto, forex, bonds or ETFs. By design, ARS adjusts to a security's volatility to discover RS in a slower-moving, dividend-paying investment just as easily as in a one with strong velocity. Due to this feature, investors are able to use RS analysis on any security type that fits their objectives and risk tolerance.
When the indicator calculates a favourable, strong relative strength in the ticker it paints the background of the chart to the chosen color.
🎁 Unlike the original indicator, I have left a few customisable settings for those who wish to toggle the sensitivity:
✅. You can choose which index you compare Relative Strength against (perfect for anyone trading international)
✅. You can choose how manyDays Lookback the ticker uses to make calculations
✅. You can chooses what Timeperiod in number of bars the ticker uses to calculate Relative Strength
✅. I have made all calculations adaptable for larger and smaller timeframes (so wether you are daytrader or investor this will adapt to the way you have customised your chart).
HOW TO USE IT–––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––
The tool highlights the periods of time when the ticker has the highest probability of attracting institutional investors and hence result in price appreciation. The blue color appears in stages of the indicator where significant upward moves are probable.
You can use the indicator as part of the longer term trend analysis of your research.
IT-Dual Relative StrengthOne can use this indicator to compare two security i.e. (Nifty and stock with its own sector) how it is performing in compare with preferred index ( Nifty 50 by default).
> 0 outperforming
< 0 underperforming
Works best for Daily TF, but can be applied to Weekly and monthly charts .
Can be use on smaller time frame as well, as per the number of hour you want to calculate.
Apply it to Nifty 50 , industry index, sector index or other security in similar sector
I have Added the Box table as well which shows the performance agents Nifty and selected sector.
SCREENER:INDEX
TradingView enables traders and investors to make smarter and better investment decisions. TradingView offers to scan 20 or 40 stock or index. Scanner can be shown in dash board as shown in
above image. This dashboard has following figure
1.Column No.1 show sectoral and thematic index.
2. The price is slipped due to aggressive order punched by market participants. There is six types of price slippage. Three are bullish and three are bearish . This price slippage indicates market fear and greed. Green slippage indicates that bullish rally can start while Red slippage indicates that Bearish rally can start. Area of slippage will act as a support and resistance for future price moment. Where column No. 2,3 and 4 shows H.G., W.G. and T.V. shows price slippage.
3.Column No.6 show resistance strength
4.Column No.7 show Volume strength with respect to ( SMA1000X2)
5.Column No.8 show volatility while Column No. 9 shows liquidity
with previous 1000 bar.
6.Column No.10 show relative strength comparison with respect to broader index.
Diver RSIDiver RSI background and line
Diver RSI background and line
Diver RSI background and line
Diver RSI background and line
Mansfield Relative Strength (Original Version) by stageanalysisThe Mansfield Relative Strength ( Mansfield RS ) is one of the core components of the Stan Weinstein's Stage Analysis method as discussed in his classic book Stan Weinstein's Secrets for Profiting in Bull and Bear Markets .
The Mansfield RS measures the relative performance of the stock compared to an index such as the S&P 500, or to another stock etc.
However, this should not to be confused with the popular RSI (Relative Strength Index developed J. Welles Wilder), which is a momentum oscillator that measures the speed and change of price movements on a single stock.
The Mansfield RS indicator consists of the Relative Strength comparison line versus the S&P 500 (default universal setting, but can be edited), and the "Zero Line" – which is the 52 week MA of the Relative Strength line, that's been flattened to create the oscillator style.
How to use the Indicator:
Outperforming – Above the Zero Line
When the Relative Strength line crosses above the Zero Line (it's flattened 52 week RS MA), it is outperforming the index or stock that it's comparing against, and so it is showing stronger relative strength.
Underperforming – Below the Zero Line
When the Relative Strength line crosses below the Zero Line (it's flattened 52 week RS MA), it is underperforming the index or stock that it's comparing against, and so it is showing weaker relative strength.
Settings:
When you first add the indicator is has a coloured background, with a green tint for a postive RS score, and a red tint for a negative RS score. However, this can be turned off, or edited in the indicator settings, in the Style tab. So you can change the colors or remove it and just have the RS line and zero line showing. Both of which can also be edited in the settings.
Change the symbol that it compares against. The default is the S&P 500. But for crypto you might want to use Bitcoin for example. Or you might want to compare against competing stocks in the same peer group, or against the industry group or sector. The choice is yours. But the S&P 500 is a universal measure for the Mansfield RS. So I would recommend leaving it on that unless you have a particular reason to change it as mentioned.
MA Length is also an editable setting. This creates the Zero Line. So it will affect the values of the Mansfield RS if you change it. 52 is the default setting, and is set as such for the weekly chart. So I'd recommend not editing it on the weekly chart, but for other timeframes, different settings can be used.
Relative Strength MomentumThe RSI is a traders friend - it can provide insight that other indicators simply cannot. The RSI achilles heel is that it can often fail to highlight divergence. Constance Brown attempted to resolve this problem with the 'Composite index' - a powerful tool. However.. for me, looking at two indicators can get a bit much - especially if viewing multiple time-frames. I want one tool which provides the RSI, it's ranging/reversal behaviour (as documented by Andrew Cardwell) and a better grasp of momentum swings (via divergence and reversal signals). So this is my best effort, and I hope it can prove useful to some of you. At first the differences may be hard to spot - but they are there!
My default settings are optimised - as with the 'normal' RSI you can expect a bullish trend to result in few (if any) moves below 30. In a bearish trend, you can expect few (if any) incursions above 70. Cardwell's observations apply. I recommend using this with a 50 period EMA to provide some additional context.
[GTH] Relative Strength, SectorsDisplays the Relative Strength (RS) of a symbol in relation to some common sector ETFs, SPX and NDX (select from drop-down list). This is done by dividing the symbol's price by the chosen sector ETF's price.
You can also select a symbol of your choice to compare against.
Interpretation:
RS line ascending: symbol performs stronger than the sector ETF.
RS line decending: symbol performs weaker than the sector ETF.
In case of error reports: please be specfic. Thanks.
Relative Strength
Compare the percentage change of the current symbol with the benchmark in last 5 periods.
By default the benchmark is SPY, you can change it from Indicator Settings.
Market First Signals - Relative Strength/WeaknessThis market-first trading strategy gives BUY, SHORT, and CLOSE signals based on volume, trend, and relative strength or weakness to the market (SPY by default, can be customized). This indicator is useful for signaling day-trade entries and exits for tickers that are strong (or weak) against the market.
Stocks that are showing relative strength (or weakness) to the market, are trending, and have decent movement generate a buy (or short) signal. When the trend runs out, a CLOSE signal is fired.
Potential profit (based on ATR) and actual profit is calculated, predicting the type of move expected
Unique 'stay in trade' logic helps prevent unnecessary CLOSE signals if a trend is likely to continue
A colored plot indicates the strength of the current trend and turns orange/red when the strength is weakened.
Crypto traders can uncheck 'Trade during market hours' for 24-hour trading, and should change the comparison ticker from SPY to BTCUSD or something similar for their market.
Enjoy!
KEY CONCEPTS
The three- and five-minute timeframes are used to establish and verify trend (ADX/DI with custom logic)
Entries and exits are based on Parabolic SAR and confirmed on multiple timeframes, trend, and relative volume
Relative strength /weakness to the market compares ticker to SPY
Chop is avoided at all costs. I've experimented with choppiness indicator below 38, but found that the ADX DI+/- readings work even better.
Trend is established using ADX DI+/- readings over 20, confirmed by EMA 5/13 crossover and EMA5 slope
Signals will fire only if the average volume for the current 5-min bar is above normal
Only tickers with a five-bar / 13 period ATR of 1% the ticker's price generate signal.
Only longs above daily-anchored VWAP, shorts below daily-anchored VWAP
Signals fire on bar close to prevent repainting / look-ahead bias
Indicator labels and alerts generated
SIGNALS
BUY: up-trending tickers showing relative strength are bought on the three-minute PSAR
SELL: when the close price falls below the 1, 3, and 5-minute PSAR, or the ADX DI- falls below 20
SHORT: down-trending tickers with relative weakness are shorted on the three-minute PSAR
COVER: when the close price moves above the 1, 3, and 5-minute PSAR, or the ADX DI- falls below 20
ALERTS
Alerts are generated on BUY, SELL, SHORT, and COVER signals, as well as optional LOST RELATIVE STRENGTH and LOST RELATIVE WEAKNESS
INPUTS
Use relative strength/weakness comparison with the market : trigger trades based on the ticker's strength or weakness to the selected comparison ticker (usually SPY for equities or BTCUSD for crypto)
Comparison Ticker for relative strength/weakness : Ticker to compare against for relative strength/weakness
Trade during market hours only : Take buy/sells during specified hours. Disable this for crypto trading.
Market hours (market time) : Customize market hours - defaults to 9:30 to 16:00 EST
"Only trade very strong trends" : take trades only if an established trend is very strong (ADX over 40) (DEFAULT = OFF)
"Limit trade direction to VWAP" : Long trades only above VWAP, shorts below (DEFAULT = ON)
"Limit trade direction to Market direction" : Long trades only if SPY (or selected comparison ticker) is up, shorts if the market is down. (DEFAULT= OFF)
"Limit trades based on a ticker's green/red status for the day" : Long trades if the ticker is green for the day, shorts if red. (DEFAULT = OFF)
SR Relative StrengthThis is a relative strength model for Indian Stock Markets where in the price of the stock in the current scenario is compared with the benchmark indices ( NIFTY / BANKNIFTY) over a period of 55 days ( by default).
This indicator also has RSI and Supertrend built-in by default. Hence this indicator can be used in place of 3 indicators.
How to use?
1. When the background is blue, it means that the stock is relatively strong as compared to the bench mark indices over a period of 55 days and the RSI is > 50
When both RS > 0 & RSI > 50 the background will be blue. If either or is true it won't turn blue.
2. Superternd by default setting is 10,3 which can be changed as per one's requirement.
Thanks!!
Greater Currency Correlation Matrix (Forex)Other available matrixes I found have a limited number of forex symbols. Consequentially, you need to keep switching them if you want to do a proper analysis. As a result of that, I produced my own currency matrix.
Correlation studies relationships between different price charts.
High correlation may be completely random in the short term, but it may signify a fundamental relationship between the two symbols if calculated over the long term.
For example, the currency of an oil-producing country may rally along with oil, whereas the importer's currency may drop. This means that watching the oil price chart may be worth it for such pairs.
The script includes all Major and Minor pairs with the addition of Gold (XAUEUR) and two optional symbols.
▬▬▬▬
To avoid too frequent use of security(), I decided to calculate all symbol values from EUR pairs. It should improve performance and keep room for some additional symbols in the future.
Please report any bugs.
Overlay Mini Plot(s) of Correlated Asset(s)Overlay a small plot of a correlated asset of your choosing. Shrink/expand, Set vertical and horizontal position, plot multiple mini-plots via duplicate indicators with varied settings.
Plots the last X bars of any asset; including the live candle currently painting
Useful for low time frame trading when you want to see correlated asset price movement right alongside the price movement you're watching.
Useful for quick and simple comparisons; when you don't want the clutter of split screen or multi-pane view.
Useful for backtesting.
Price scale agnostic; just plots the shape of the recent price action, with several optional labels: Asset+timeframe | Live Price | Highest price over X bars | Lowest price over X bars.
Works fine with all the assets i've tested it on.
~~User inputs~~
-number of bars to paint.
-horizontal offset: plot to right X bars or to left X bars
-vertical offset: shift up or down, shrink or expand; by using 2 'spacer' inputs
-color/transparancy of candles and price labels.
-width (pixels) of candle bodies.
-choose to display price labels or not
-choose to display asset label or not
~~Tips~~
--Add several of these indicators; changing the vertical 'Shift/Shrink' settings on each to visually separate them.
--In the above chart or EurUsd, there are three indicators =>> three mini-plots overlaid: DXY, EurGbp and GbpUsd. Using the following settings for Space Above:Space Below: DXY- 0.1:4.5 | EurGbp- 1.8:1.8 | GbpUsd- 4.5:0.1
--the more you add, the more you'll have to vertically shrink the plots
© twingall
SST Table NewData Table for Update GTT Orders in Stocks....
Updated GTT Order details for SST , also added Relative Strength of Stock compared with NIFTY Index for 55 Days (3 Months) period.
RS line plotted on chart… taken reference of close price of day candle… just a bigger picture of actual RS indicator plotted on chart itself... RS line in red color means below zero line (negative) and green color means above zero line (positive).
Added code for checking RS value on chart for any previous day.
FXminds currency strengthFXminds Currency strength indicator:
The goal of this indicator is to calculate all the currency overall value increases and decreases,
to exploit these by trading a currency that is gaining overall value against a currency that is losing overall value.
========================================================================================================================================================================================
* Fase 1: absolute currency value lines
This script makes theoretical currency absolute currency value line.
It does this by taking the average increase in value from each of the currency pairs the currency has a place in and averaging these increases.
After this, the script makes a factor of the average increase.
Then it multiplies a theoretical value line with this average increase factor, note that this theoretical line start at the value 100.
Example: EUR candle “1”
EUR/USD : +1%
EUR/GBP : +1%
EUR/CAD : +1%
EUR/NZD : +1%
EUR/JPY : +1%
EUR/AUD : +1%
average increase : 1%
average increase factor 1.01
EUR absolute currency value line cande “0” : 100
EUR absolute currency value line cande “1” : 101
Please note that all different exchange rates are weighted equally.
These absolute currency value lines are shown when you set the “indicator modus” setting to “show all absolute value lines”.
When you only want the relevant currency value lines to be shown, set the “indicator modus” setting to “show Base & Quote absolute value lines”.
========================================================================================================================================================================================
* Fase 2:
this script then places a moving average over the self-made absolute currency value lines,
this moving average has a length of n which can be changed by the “currency absolute value line moving average length” setting.
It then calculates the deviation between the currency absolute value line and its moving average in percentages.
this deviation is used to determine whether a currency is gaining or losing value.
These deviations are shown when you set the “indicator modus” setting to “show all absolute value lines deviation % against moving average”.
When you only want the relevant currency value line to be shown, set the “indicator modus” setting to “show Base & Quote absolute value lines deviation % against moving average”.
Then one deviation is starting to trump the other, this is a signal that one currency is gaining value over the other and there is a possible trade to be found.
Please note that if you use the “show Base & Quote absolute value lines deviation % against moving average” setting, the indicator also plots the difference between the two deviations in the form of a histogram.
when on deviation trumps the other and thus there is a signal for a possible trade, this is also shown by the histogram as an 0-line cross.
========================================================================================================================================================================================
* Fase 3:
this script then uses this information to create an entry signal indicator, which is visualized when set the “indicator modus” setting to “plot as entry indicator”.
When using this mode, the indicator also still shows the difference between two deviations histogram.
When looking at the histogram, you can see that the indicator is prone to giving weak signals when two currencies are barely outperforming each other.
To prevent the indicator from giving weak signals, use the “signal line to entry signal smoothing” setting.
With this setting, u can determine the minimum difference in deviation of currency performance needed to create a signal.
Please note that increasing this value makes it so that you get less weak signals, but has the downside that it tends to delay your signals for a bit.
It is also possible to just show the histogram of the difference between the currency performances.
when you want this, set the “indicator modus” setting to “show signal line as 0-cross”.