string2float v1.0In the v5 version of PineScript, casting a string to a float - float(x) - does not appear to work, in spite of the reference manual seemingly indicating that it should. The simplest test case that I could generate "float('4750.0')" would result in a "Cannot call 'float' with argument 'x'='4750.0'. An argument of 'literal string' type was used but a 'const float' is expected." Since I was pulling the floats from a string array, I could not find a way to make them into "const floats". So I gave up and wrote a quick and dirty string to float converter function that handles both positive and negative integers and floats and returns the a float. Hopefully it might save someone else an afternoon of insanity.... :-)
Osciladores Centrados
Jigga - Relative Strength - SectorsHi All !!
I came across relative strength concept from below indicator.
Indicator Name: (Relative-Strength by modhelius)
Note: Sorry !! Could not add indicator url here.
Formula:
RelativeStrength = (sectorValue / sectorValue ) / (indexValue / indexValue ) - 1 * 100
I used same concept and combine all sector's relative strength against Nifty50 index.
How to use:
You can change length based on your convenience and show/hide sectors.
Indicator will show strength line for that sector.
you can use this to identify momentum stocks.
Ehlers Stochastic Relative Vigor Index [CC]The Stochastic Relative Vigor Index was created by John Ehlers (Cybernetic Analysis For Stocks And Futures pgs 84-89) and this of course is very similar to the Ehlers Fisher Stochastic Relative Vigor Index I just published. In hindsight I probably should have published this one first but just like with the other script this is a stochastic version of a Relative Vigor Index and I added some smoothing to make buy and sell signals clearer. There are several ways to identify buy and sell signals but generally in the long term it is a buy signal when the indicator is below the oversold line and is moving up and in the short term when the indicator is above it's trigger line which is what I coded the buy and sell signals to follow. Buy when the line is green and sell when it turns red.
Let me know if there are any other scripts you would like to see me publish!
Ehlers Fisher Stochastic Relative Vigor Index [CC]The Fisher Stochastic Relative Vigor Index was created by John Ehlers (Cybernetic Analysis For Stocks And Futures pgs 101-104) and this is a many layered indicator created from his original Relative Vigor Index turned into a stochastic and then performing a Fisher transform on the results. I have included extra smoothing to provide clearer buy and sell signals as well as normal and strong buy and sell signals. As always strong signals are darker in color and normal signals are lighter in color. Buy when the line turns green and sell when it turns red.
Let me know if there are any other scripts you would like to see me publish!
[blackcat] L1 Wave OscillatorLevel: 1
Background
GET wave theory indicator series contain a indicator called wave oscillator.
Function
This is a modified version of GET wave oscillator with enhanced moving averages which alleviate lag issue to some degree. The feature of it is that it includes overbought and oversold band with dynamic values for indications. Labels and alerts are added.
Key Signal
osc --> wave oscillator output
Remarks
This is a Level 1 free and open source indicator.
Feedbacks are appreciated.
Ehlers Mesa Spectrum Dominant Cycle [CC]The Mesa Spectrum Dominant Cycle was created by John Ehlers and this is the foundation for many indicators he created that would later follow. This is his updated version of his original Mesa algorithm and I do not recommend this indicator as a stand alone for trading. This is more of an informational indicator that will tell you the current dominant cycle period which is the approximate period between peaks and valleys in the underlying data. I have color coded buy signals just in case with both strong and normal signals. Darker colors are strong and lighter colors are normal. Buy when the line is green and sell when it is red.
Let me know if there are any other indicators you would like to see me publish!
Data Trader Stoch | RSI | MACD Strategy IndicatorImplementation of Data Trader's strategy, described in the youtube video, "Highly Profitable Stochastic + RSI + MACD Trading Strategy (Proven 100x)"
Also see Algovibes' video, "Highly Profitable Stochastic + RSI + MACD Trading Strategy? Testing Data Traders strategy in Python"
Note: Despite the claims, it generates barely, if any, signals, certainly in the crypto markets
If there are any mistakes, give feedback in the comments, and I'll fix
### Strategy Summary ###
# Long Signals #
Stoch K and D are oversold
RSI above midline
MACD above signal line
# Short Signals #
Stoch K and D are overbought
RSI below midline
MACD below signal line
# Stop loss and Take Profit #
Stop loss
Longs: below last swing low
Shorts: above last swing high
Take profit at 1.5x stop loss
Gann High Low Activator AlertsA Gann High Low Activator within a fixed range meant for alerts. A value of 1 means we're in an uptrend, a value of -1 a downtrend, and a value of 0 is neutral.
Thank you and happy trading
MAD indicator Enchanced (MADH, inspired by J.Ehlers)This oscillator was inspired by the recent J. Ehler's article (Stocks & Commodities V. 39:11 (24–26): The MAD Indicator, Enhanced by John F. Ehlers). Basically, it shows the difference between two move averages, an "enhancement" made by the author in the last version comes down to replacement SMA to a weighted average that uses Hann windowing. I took the liberty to add colors, ROC line (well, you know, no shorts when ROC's negative and no long's when positive, etc), and optional usage of PVT (price-volume trend) as the source (instead of just price).
ZigZag reSampledthis indicator looks like the default ZigZag indicator but it uses the price action instead of the deviation%
OmegaDeltaExperimental:
- calculates the trajectory of every price change at each bar accordingly to the delta change on the next and so forth,
- the name is just a *pun* at the code☺☺☺
Indicators OverlayHello All,
This script shows the indicators in separate windows on the main chart. Included indicators are RSI, CCI, OBV, Stochastic, Money Flow Index, Average True Range and Chande Momentum Oscillator. indicator windows are located at the top or bottom of the chart according to last moves of the Closing price. Different colors are used for each indicator. Horizontal levels are shown as dashed line and label as well.
Using the options;
You can enable/disable the indicators you want to see or not
You can change source and length for each indicator
You can set window length. using this length indicator windows are located on the chart
After you added this indicator to your chart I recommend: right click on any of the indicator windows => "Visual Order" => "Bring to front" as seen screenshot below:
in this example only 3 indicators enabled and period is set as 80:
indicator windows moves to the top or bottom of the chart according to the close price:
P.S. if you want to see any other indicator in the options then leave a comment under the indicator ;)
Enjoy!
Binary ComboThis script combines Stochastic Divergence and WaveTrend Crosses.
Stochastic Divergence may be useful for seeing a shift in momentum before the price action reflects it.
WaveTrend gives us context to the short term trend.
You can combine these together to find good entries.
Moving Average Convergence DivergenceA MACD with option for logarithmic or regular scale.
This indicator presents bullish or bearish 'flags' based on the most recent signal cross and asset price divergence. If the price moves up and the macd continues trending down, a bearish divergence is flagged. if the price moves down and the macd continues moving up, a bullish divergence is flagged.
RSI MACD Same RatioこのインジケータはRSIとMACDを同比率で表示するものです。
なぜ同比率で表示するのでしょうか。
同比率で表示することでRSIとMACDのダイバージェンスを同時に確認することができます。
私には思いつきませんが、他にも使い道はあるかもしれません。
必要と感じた場合はぜひ使ってみてください。
※同比率で表示するためにRSIとMACDの値を変更しています。
そのため、値はあくまで参考程度にご覧ください。
注目すべきはラインのみです。
使う場合は「adjustment ratio」に適当な値を入れて、RSIの比率とMACDの比率を合わせてください。
それでは良いトレードライフを。
-----
This indicator shows RSI and MACD in equal proportions.
Why are they displayed at the same ratio?
By displaying at the same ratio, you can check the divergence of RSI and MACD at the same time.
I can't think of it, but there may be other uses.
If you feel it is necessary, please use it.
caution!
The RSI and MACD values are changed to display the same ratio.
Therefore, please see the values for reference only.
Only the line should be noted.
When using it, enter an appropriate value in "adjustment ratio" and match the RSI ratio with the MACD ratio.
Let's have a good trade life.
Ehlers Moving Average Difference Hann Indicator [CC]The Moving Average Difference Hann Indicator was created by John Ehlers (Stocks and Commodities Nov 2021) and this is an improved variation of his Moving Average Difference Indicator that uses smoothing from his Hann Windowing Indicator to provide smoother buy and sell signals. As for how this indicator works it is an improved version of the classic MACD indicator which of course takes a difference between two exponential moving averages. I have included strong buy and signals in addition to normal ones so lighter colors are normal signals and darker colors are strong signals. Buy when the line turns green and sell when it turns red.
Let me know if there are any other indicators you would like to see me publish!
Vertex EMA StrategyRecently found an article sharing an EMA strategy written by Vertex. I copied a majority of the Long conditions into code here with some visual aid.
Essentially, watch for a the 8 EMA to be greater than the 21 EMA, and all the EMA's to be spread apart. Then get your trigger bar from a retracement from the 8 bar EMA. Stop on the lowest low of the past 5 bars, or on EMA 8 crossunder EMA 21.
This is intended to only be used on a 1h chart.
This was made for a friend.
Disclaimer : Please do your own research before making any decisions financially. I am not your financial advisor.
MACD With Crossings and Above Below ZeroMACD with MACD Derivative, Crossings Above and Below Zero, Shading for ADX Smoothing and Overlayed RSI
Primarily a moving average convergence divergence (MACD) momentum indicator. Also includes a MACD Derivative overlay to show when momentum has peaked. Displays triangle symbols when the MACD line crosses the signal line (larger triangle when MACD crosses above/below zero to indicator stronger momentum trend). Includes shading for average directional index (ADX) to futher determine when the price is trending strongly (red when the ADX value is greater than 25, and idicating a strong trend; otherwise blue). Lastly, has a relative strength index (RSI) momentum indicator overlayed to help evaluate periods of overbought or oversold conditions.
Momentum Oscillator - Column PlotThis script is based on the existing Momentum Indicator which shows whether the underlying percentage change in closing price is positive or negative.
This script however uses columns to plot the change and shows this as green for >0 change, and red for <0.
MTF DPO-RSI IndicatorThis indicator uses the principle of taking the RSI of DPO readings across multiple time frames in order to provide trade signals and an overarching view of market conditions to the trader. My hope with creating this indicator was to present more divergence based signals than your typical indicator, while still keeping those signals at a high quality.
In the settings menu, you may specify:
Indicator Timeframe - the chart resolution that is used to calculate values.
Source DPO Length - the number of bars used to calculate the Detrended Price Oscillator value. The DPO value is the source for the RSI calculations.
DPO Hull Smoothing - how much smoothing is applied to the DPO . Smoothing is accomplished by taking a Hull Moving Average of the closing price, and using this to calculate the DPO value.
RSI Length - the number of bars used to calculate the RSI of the DPO value.
Time Multipliers 1 through 6 - use this to define what resolution each plot will represent. A value of 1 will represent the current Indicator Timeframe. A value of 3 will represent 3 times the current Indicator Timeframe, etc.
Show Plot 1 through 6 - toggles the display of plots.
How I trade with this indicator:
A value of under 30 represents an over sold state for that particular plot. A value of over 70 represents an overbought state for that plot.
Identify divergences on a lower timeframe plot which are apparent in overbought or oversold conditions, and confirm the signal with an overbought or oversold condition, or a divergence on a higher timeframe plot. Divergences which begin in oversold or overbought territory and end inside the 30-70 range tend to be more reliable signals, in my experience. Like all indicators, this is best when used in conjunction with other indicators. Trend indicators, such as double EMA's and Supertrend are my favorite pairing, and a stochastic RSI is a good tool to have as well.
This is my first published indicator! If you find unique ways to use it, drop me a message. I'd love to know what you find. :)
TRIX RSI - Tripple Exponetial Relative Strength (TRSI) This indicator applies the RSI formula over the TRIX indicator to get the TRIX RSI.
The EMA and the TRIX RSA cross gives you an indication for a trend change
Faith Indicator eykpunter [DM] Greetings Colleagues
I share here a slightly modified version of the fabulous indicator designed by @eykpunter.
Moidifications =
Ploting aspect
Signals transparency
BackGround Trend Signals transparency
Signal length
The two lines of code have been converted into the functions
This indicator compares buyers demand with sellers supply volumes and calculates which prevails. Therefore it only works if volume is published. Buyers demand is assumed for a period in which a higher high is reached with more volume . Sellers supply is recognized by a lower low combined with more volume .
The average of sellers supplies is subtracted from buyers demand, the result is graded because a statement like “The faith in this period was ## percent” has no meaning. We can conclude to more faith and less faith but not represent it in some exact number.
This indicator assigns the following grades:
Very high faith graduated as 8
High faith as 6
Good faith as 4
Some Faith as 2
Little Faith as 1
Neither Faith nor Distrust as zero
Self Protection Distrust graduated as -8
Fear Distrust as -6
Anxiety Distrust as -4
Suspicion Distrust as -2
Doubt Distrust as -1
It is presented as a histogram with blue staves pointing up (meaning faith) and red staves pointing down (meaning distrust)
The background is colored using the Hull Agreement Indicator (Hullag), which I published before. Hullag graduates price movements in five grades to which it assigns a background color. These are as follows:
grade 2: blue, clear upward movement
grade 1: green, some upward movement
grade 0: silver , neither upward nor downward movement
grade -1: maroon, some downward movement
grad -2: red, clear downward movement.
Use of the Faith Indicator:
The indicator shows price action/momentum as a background color and volume action analyzed as a grade of faith in the form of a histogram. Usually faith comes together with rising prices (blue/green background) and distrust with lowering prices (red/maroon background), however contrarian situations occur, e.g. lowering prices while the market has good faith. These can be explained by minority sellers who act contrary to the feelings in the market. You can then decide that this might be an unsustainable move of the quotes.
If the faith indicator confirms the price movement, you might assume that the move is meaningful and will go further. Also if you see faith diminishing you might assume that the move is coming to an end and the tide is going to turn.
Momentum and AccelerationThe following oscillator is a twist on momentum, incorporating a 2nd derivative "acceleration" to help determine changes in momentum. Both are plotted directly accessing previous series values rather than using a moving average.
The script has an option to divide so the formula is d(Price)/d(Time), like a derivative. The script also provides options for the user to use their price source, volume, or a combination of price and volume.
Credit: This script utilizes the "color gradient framework" tutorial by LucF (PineCoders) to create user-adjustable gradient visuals.
Definitions
"1st Derivative - Momentum" - Momentum is most commonly referred to as a rate and measures the acceleration of the price and/or volume of a security.
"2nd Derivative - Acceleration" - Acceleration is the rate of change of momentum.
Value Added
This script may help the trader to assess directional changes in momentum easier.
This script also plots using previous series values rather than using a moving average function. To my knowledge, I was unable to find one that does this for "2nd derivative", so it had to be created.