Timed_exit_alert_for_webhookLibrary "Timed_exit_alert_for_webhook"
TODO: add library description here
fun(x) TODO: add function description here
Parameters:
x : TODO: add parameter x description here
Returns: TODO: add what function returns
for exiting FCM like Tradovate and AMP using API and python MT5 and Webhooks
the writer take no responsibility for trades made using this script its written for informational purposes only
Cari dalam skrip untuk "Futures"
BABI - Binance Altcoin Basis Indicator
This indicator works by taking the basis between various altcoin perpetual futures contracts and spot market indexes on Binance, and then smooths out the data with a basic moving average.
The result is a useful oscillator that shows potential "buy" and "sell" areas.
Simply put, a spot premium is usually bullish and a derivatives premium is usually bearish.
Other versions of this indicator only worked for BTC and ETH, so I have extended its functionality to include popular altcoin trading pairs.
USDT Trading pairs included in this version:
•BTC
•ETH
•LTC
•ICP
•SOL
•LUNA
•GRT
•ATOM
•ADA
•XRP
•ETC
•AVAX
Default setting is BTC. To choose a different oscillator, go to settings and pick your desired crypto.
Thanks for looking. I think you could create a pretty basic trading strategy based on this indicator by simply placing buy and sell orders once the oscillator rises or falls below certain thresholds.
**Credit to @chestbrook on Twitter and Pinnacle_Investor on TradingView
Binance Basis Oscillator ()
Market Profile Visible RangeSup TV, 2 important points .
1) surprisingly, it's the first MP Visible Range script on TV;
2) This one doesn't use any bagging/binning*, instead each row represents the time spent on the actual minimal price steps (aka ticks).
The script will be further extended with usual market profile related functionally in future updates. At this point we have:
- Profile itself (each row represents how many bars touch the given price);
- Mode of the profile (called POC)**;
* Still it will be introduced in future when I will find / design the proper aggregating technique. It is vital for processing very wide price ranges (for example, 500 days on ES futures).
** The script correctly calculates POC by finding all the modes in the data & choosing the closest one to data's midrange.
For this kind of technical instrument finally it was more convenient to use Pine Script 5 (btw it's my first Pine 5).
Basically this script is a side-effect of another R&D I'm doing, the stuff is useful tho so let's go.
By choosing length we both specify the amount of data to be processed & the profile's location screen-wise. It's pretty cool and & useful, on my screen it's always almost touching the left side and still always visible.
The code is heavily commented in order to be understood fast, nothing fantastic, just a lil patience required this time.
Rationale
Market & volume profiles are well known concepts, lotta info available, the most important point of all that is that MP is just another way of visualizing data that lets you notice things you don't usually notice on sequential charts. From my side I can only add that it's better to use your own brain for thinking and reconsidering using volume profile in all the cases, especially on decentralized markets (unless you're aggregating ALL the volume data from everywhere, including options, OTC etc).
Here is it, for you
MFI + RSI + MOM With Bull & Bear Trend LabelMOMENTUM + MONEY FLOW INDEX + RELATIVE STRENGTH INDEX WITH BULL & BEAR LABELS
This is a combination of 3 popular indicators. Momentum(MOM), Money Flow Index(MFI) and Relative Strength Index(RSI) along with color changing labels that tell you each indicator's current trend.
The middle white line shows the level that each indicator needs to stay above to be bullish and below for bearish. Watch for all three indicators to cross and hold above or below the mid line for big moves.
It is important to note that these indicators do not need to be going up to be bullish or down to be bearish. They just need to hold above or below the mid line to understand the overall trend.
The momentum indicator is the most relevant in my opinion. If it is holding above the mid line steadily, usually the overall trend will continue upwards so look to buy the dips if the momentum cloud is staying above the white line and vice versa.
It is also important to note that the default settings for this indicator are the 100 period as I find it to be super relevant across most charts but these numbers can be changed in the indicator settings.
Since momentum swings wildly past the normal 0-100 range, it is important to note that the momentum line has been “normalized” to stay within this same range as the rsi and mfi. So if you look at a normal momentum indicator side by side with this indicator it will not look the same however, I find it to be a very good indicator of overall direction so I know the current market sentiment even when price is diverging from the indicator directions.
All of the colors, sources and lengths can be easily customized in the indicator settings input tab.
***HOW TO USE***
When Momentum is above the mid line, it is bullish. When Momentum is below the mid line, it is bearish.
A label on the right side will update in real time to tell you if momentum is Bullish or Bearish for faster recognition of the trend.
When RSI is above the mid line, it is bullish. When Momentum is below the mid line it is bearish.
A label on the right side will update in real time to tell you if RSI is Bullish or Bearish for faster recognition of the trend.
When MFI is above the mid line, it is bullish. When MFI is below the mid line it is bearish.
A label on the right side will update in real time to tell you if MFI is Bullish or Bearish for faster recognition of the trend.
This indicator was built to help you quickly identify the Bullish or Bearish nature of the current trend with a live color changing label so you can glance at the label and understand it's direction without analyzing the indicator data.
***MARKETS***
This indicator can be used as a signal on all markets, including stocks, crypto, futures and forex.
***TIMEFRAMES***
This mom + mfi + rsi indicator can be used on all timeframes.
***TIPS***
Try using numerous indicators of ours on your chart so you can instantly see the bullish or bearish trend of multiple indicators in real time without having to analyze the data. Some of our favorites are our Auto Fibonacci, Directional Movement Index, Volume Profile, Auto Support And Resistance and Money Flow Index in combination with this indicator. They all have real time Bullish and Bearish labels as well so you can immediately understand each indicator's trend.
Auto Fibonacci From Previous High & Low w/ Percentages & AlertsAUTO FIBONACCI FROM PREVIOUS D/W/M/Q/Y HIGH & LOW WITH PERCENTAGES & ALERTS
This is an auto fibonacci level generating indicator that uses the high and low from the previous day, week, month, quarter or year. It also has a table with real time updates of how far away the nearest fibonacci levels are above and below the current price, represented in percentages. It includes alerts for each level as well if you want to be notified of price crossing fibonacci levels without watching the chart.
***HOW TO USE***
Fibonacci levels are also known as the golden ratio and are popular levels for traders to use as support and resistance levels. Expect price to bounce off of these levels regularly.
The previous high and low are marked as white lines. These are very important levels so make sure to pay attention when price reaches these lines.
Make sure to check out the higher timeframes for major levels.
Each fibonacci line retracement and extension up to the 3.272 level in each direction is displayed as red or green depending on whether price is above or below that level.
The retracement levels used are: previous high, .117, .236, .382, .5, .618, .786, .883, previous low, 1.272, 1.618, 2, 2.272, 2.618, 3 and 3.272.
The extension levels used are: .272, .618, 1, 1.272, 1.618, 2, 2.272, 2.618, 3 and 3.272.
In the indicator settings input tab you can quickly change the timeframe used, turn lines on/off, upper line colors, lower line colors, previous high and low line colors, line width, turn percentage table on/off, change the color of the percentage table and move the percentage table to a different location on the chart.
The indicator includes alerts for each fibonacci level as well, just set your fibonacci timeframe on your favorite ticker and turn on tradingview alerts for alert() calls.
***MARKETS***
This indicator can be used as a signal on all markets, including stocks, crypto, futures and forex.
***TIMEFRAMES***
This auto fibonacci indicator can be used on all timeframes.
***TIPS***
Try using numerous indicators of ours on your chart so you can instantly see the bullish or bearish trend of multiple indicators in real time without having to analyze the data. Some of our favorites are our Buy & Sell Pressure Colored Candles, Directional Movement Index + Fisher Transform, Volume Profile W/ Buy & Sell Pressure Labels, Auto Support And Resistance and Money Flow Index in combination with this Auto Fibonacci. They all have real time Bullish and Bearish labels or percentage gap info as well so you can immediately understand each indicator's trend and how far away major levels are in percentages.
HURST Channel StrategyBased on the work TJS / Trading Zoom / Svoboda
Strategy based on Hurst channel with loss averaging when an open position is below 0.5 channel range.
How it works:
1. opens the long position when the close price crosses over the lower band (from bottom to top)
2. opens additional position (double in size) when average position price is lower than average channel value (0.5)
3. closes the position when the close price crosses over the higher band (from top to bottom)
Works the best on :
- volatile and continuous instruments (futures)
- on timeframes above 15 minutes
- uptrends or consolidations
- downtrends require more capital to open double positions
Auto Support & Resistance From Option Strike Price + PercentagesAUTO SUPPORT AND RESISTANCE FROM OPTIONS STRIKE PRICES WITH PERCENTAGE GAPS
This is an auto support and resistance level indicator that uses options strike prices or psychological numbers as the relevant levels. Set your starting level or strike price and input the options strike price gaps for that ticker and 15 lines in either direction will automatically populate on the chart. It also has a table in the bottom right corner that tells you how far the current price is from the next closest support and resistance levels.
Everything is easily customizable in the indicator input settings including turning the lines on/off, turning the percentage gaps table on/off, setting the options strike price gaps, setting the starting level, setting the position of the percentage gaps table, changing support and resistance line colors all at once and updating the linewidth of all of the support and resistance lines at once.
***HOW TO USE***
First, go into the indicator settings and set the starting level to use. If you are trading SPY and it is near 450, then set your starting level at 450. If you are trading SQQQ and it is near 38, set your starting level to 38. If you are trading crypto, set your levels to the nearest psychological or round number such as 40,000 for BTC or 2,500 for ETH or 16.50 for LINK.
Second, set your options strike price gaps. If you are trading SPY, this will be 2.5. If you are trading SQQQ this number would be 1. If you are trading crypto, try using psychological price levels instead of strike prices, such as 500, 1000 or 5000 for BTC and 100, 250 or 500 for ETH. For small priced cryptos, use decimals such as .25, .50, etc.
Once these inputs are filled in, 15 levels in each direction will automatically populate on the chart for you.
If price is above a level, it will paint green. If price is below a level it will paint red. These colors represent support and resistance visually for you on the chart and will change dynamically as price moves above or below these levels. These colors can be customized in the indicator input settings to change all lines by only updating one color.
There is a table of percentage gap updates that will tell you in real time how far away the price is from the nearest support and resistance lines so you always know your risk to reward ratios. Each label will also be colored the same as the corresponding support or resistance line as a visual aid.
***MARKETS***
This indicator can be used as a signal on all markets, including stocks, crypto, futures and forex.
***TIMEFRAMES***
This support and resistance indicator can be used on all timeframes.
***TIPS***
Try using numerous indicators of ours on your chart so you can instantly see the bullish or bearish trend of multiple indicators in real time without having to analyze the data. Some of our favorites are our Auto Fibonacci, Directional Movement Index, Volume Profile, Momentum and Money Flow Index in combination with this auto support and resistance indicator. They all have real time Bullish and Bearish labels as well so you can immediately understand each indicator's trend.
Gann SqrootGann indicators—based on trading techniques developed by W.D. Gann—are used in predicting support and resistance levels, as well as predict tops, bottoms, and future price moves.
Gann studies have been used by active traders for decades, and even though the futures and stock markets have changed considerably, they remain a popular method of analyzing an asset's direction.
Gann angles are a popular analysis and trading tool that are used to measure key elements, such as pattern, price, and time
VWAP From Multiple Sources With Cloud & Percentage GapVWAP CLOUD FROM CLOSE, OPEN, HIGH & LOW SOURCES WITH CLOUD & PERCENTAGE GAP
VWAP stands for volume weighted average price and shows the average price of buys/sells based on volume traded across the current session. This VWAP is based off of the Daily session.
***HOW TO USE***
Use the purple cloud between the VWAPs as your entry points as price will typically bounce from that cloud area.
The Yellow Line is the VWAP using the close price as a source.
The Green Line is the VWAP using the open price as a source.
The Blue Line is the VWAP using the high price as a source.
The Purple Line is the VWAP using the low price as a source.
When price is above the VWAP cloud, the background will paint green because the trend is bullish.
When price is below the VWAP cloud, the background will paint red because the trend is bearish.
In the bottom right hand corner, three is a table that will show you the current percentage gap between current price and the VWAP using close as the source.
All sources and colors can be easily switched in the settings menu.
***MARKETS***
This indicator can be used as a signal on all markets, including stocks, crypto, futures and forex.
***TIMEFRAMES***
This vwap indicator can be used on all timeframes but is calculated using the daily session.
***TIPS***
Try using numerous indicators of ours on your chart so you can instantly see the bullish or bearish trend of multiple indicators in real time without having to analyze the data. Some of our favorites are our Auto Fibonacci, Volume Profile, Directional Movement Index, Momentum, Auto Support And Resistance and Money Flow Index in combination with this VWAP Cloud. The other indicators all have real time Bullish and Bearish labels as well so you can immediately understand each indicator's trend.
Momentum With Bullish & Bearish LabelMOMENTUM WITH BULLISH AND BEARISH SIGNALS
This is a momentum oscillator that paints red or green depending on whether Momentum is above or below the zero line. It includes a label on the right hand side that will reflect the bullish or bearish direction of the current momentum by changing colors to red or green and text telling you Bullish or Bearish.
***HOW TO USE***
When Momentum is above zero, it is bullish. When Momentum is below zero it is bearish.
A label on the right side will update in real time to tell you if momentum is Bullish or Bearish for faster recognition of the trend.
When momentum is above the zero line(Bullish) but trending downward, a second label will show up in purple to notify you of a change in momentum direction.
When momentum is below the zero line(Bearish) but trending upward, a second label will show up in purple to notify you of a change in momentum direction.
This indicator was built to help you quickly identify the Bullish or Bearish nature of the current Momentum using colors as well as a live color changing label so you can glance at the label and understand it's direction without analyzing the indicator data.
***MARKETS***
This indicator can be used as a signal on all markets, including stocks, crypto, futures and forex.
***TIMEFRAMES***
This momentum indicator can be used on all timeframes.
***TIPS***
Try using numerous indicators of ours on your chart so you can instantly see the bullish or bearish trend of multiple indicators in real time without having to analyze the data. Some of our favorites are our Auto Fibonacci, Directional Movement Index, Volume Profile, Auto Support And Resistance and Money Flow Index in combination with this Momentum Oscillator. They all have real time Bullish and Bearish labels as well so you can immediately understand each indicator's trend.
Directional Movement Index + Fisher Price Action With LabelsDIRECTIONAL MOVEMENT INDEX + FISHER PRICE ACTION WITH LABELS
Directional Movement Index shows buy and sell pressure.
Fisher transform shows price action trending bullish or bearish.
Caution dots notify you of conflicting trends.
***HOW TO USE***
The top lines are the fisher transform showing you the price action trend.
The bottom lines filled with color shows the DMI directional movement index.
The yellow dots at the bottom tell you if these two indicators are currently giving conflicting signals.
DMI
If the green line is above the red line and the background is colored green, there is more market buying than selling.
If the red line is above the green line and the background is colored red, there is more market selling than buying.
FISHER TRANSFORM
If the lines are painted green, the price action is trending up.
If the lines are painted red, the price action is trending down.
CAUTION DOTS
If a yellow dot shows up at the bottom of the chart, it is notifying you that the DMI and Fisher Transform are currently giving opposite signals…. so use caution.
***BULLISH/BEARISH LABEL***
There is also a label on the right side that tells you whether there is more buying or selling. This table updates in real time and changes colors so you can get an easy, quick interpretation of the current buy/sell pressure without having to look at the indicator data so you can make faster decisions on whether to enter or exit a trade.
Green means more market buying than selling.
Red means more market selling than buying.
Blue means an equal amount of market buying and selling.
If buying pressure is bullish but below the 20 level, a second label will show up in purple letting you know there is weak buying pressure so use caution.
If selling pressure is bearish but below the 20 level, a second label will show up in purple letting you know there is weak selling pressure so use caution.
There is a third label showing the current trend of the fisher transform. Green means bullish price action. Red means bearish price action.
The fourth label is orange and only shows up when the DMI and Fisher Transform are currently giving opposite signals, so make sure you use caution during those times.
***MARKETS***
This indicator can be used as a signal on all markets, including stocks, crypto, futures and forex.
***TIMEFRAMES***
This directional movement index + fisher transform indicator can be used on all timeframes.
***TIPS***
Try using numerous indicators of ours on your chart so you can instantly see the bullish or bearish trend of multiple indicators in real time without having to analyze the data. Some of our favorites are our Auto Fibonacci, Volume Profile, Momentum, Auto Support And Resistance and Money Flow Index in combination with this Directional Movement Index + Fisher Transform. They all have real time Bullish and Bearish labels as well so you can immediately understand each indicator's trend.
Volume Profile With Buy & Sell Pressure LabelVOLUME PROFILE WITH BUY AND SELL PRESSURE LABEL
This volume profile indicator shows volume traded for each bar and is colored according to the difference in buy and sell pressure(DMI).
***HOW TO USE***
If the bar and background is colored green, there is more market buying than selling on that bar.
If the bar and background is colored red, there is more market selling than buying on that bar.
If the bar and background is colored blue, there is an equal amount of market buying and selling on that bar.
***BUY/SELL LABEL***
There is also a label on the right side that tells you whether there is more buying or selling on the current bar. This table updates in real time and changes colors so you can get an easy, quick interpretation of the current buy/sell pressure without having to look at the volume bars so you can make faster decisions on whether to enter or exit a trade. The table changes colors in sync with the volume bars and background. Green means more market buying than selling. Red means more market selling than buying. Blue means an equal amount of market buying and selling.
***MARKETS***
This indicator can be used as a signal on all markets, including stocks, crypto, futures and forex.
***TIMEFRAMES***
This volume profile indicator can be used on all timeframes.
***TIPS***
Try using numerous indicators of ours on your chart so you can instantly see the bullish or bearish trend of multiple indicators in real time without having to analyze the data. Some of our favorites are our Auto Fibonacci, DMI, Momentum, Auto Support And Resistance and Money Flow Index in combination with this Volume Profile. They all have real time Bullish and Bearish labels as well so you can immediately understand each indicator's trend.
Money Flow Index With Bullish & Bearish SignalsMONEY FLOW INDEX WITH BULLISH AND BEARISH SIGNALS
Money Flow Index shows whether money is coming into the market or going out of the market. This can be used to gauge market sentiment and whether people are buying or selling at the current price.
***HOW TO USE***
If the MFI line is green, it is above the 50 line and in a bullish trend.
If the MFI line is red, it is below the 50 line and in a bearish trend.
If the background color is green, Money Flow is in a bullish trend, holding above the 50 line.
If the background color is red, Money Flow is in a bearish trend, holding below the 50 line.
If the MFI is above the 75 level it indicates a possible top or overbought conditions.
If the MFI is below the 25 level it indicates a possible bottom or oversold conditions.
***BULLISH/BEARISH LABELS***
There is also a label on the right side that tells you whether the overall trend is bullish or bearish, if there is a possible bottom or top and if the current money flow index is going up or down. This table updates in real time and changes colors so you can get an easy, quick interpretation of the current money flow without having to look at the data so you can make faster decisions on whether to enter or exit a trade. The flashing from red to green or the opposite also grabs your attention so you know immediately if there is a change in trend. The table changes colors in sync with the MFI line and it's trends and bottom/top areas. Green means money is coming in. Red means money is going out. Blue means a neutral amount of money flow.
***MARKETS***
This indicator can be used as a signal on all markets, including stocks, crypto, futures and forex.
***TIMEFRAMES***
This Money Flow Index indicator can be used on all timeframes.
***TIPS***
Try using numerous indicators of ours on your chart so you can instantly see the bullish or bearish trend of multiple indicators in real time without having to analyze the data. Some of our favorites are our Auto Fibonacci, DMI, Momentum, Auto Support And Resistance and Volume Profile in combination with this Money Flow Index. They all have real time Bullish and Bearish labels as well so you can immediately understand each indicator's trend.
Position Sizing CalculatorThis is an intuitive risk management tool with a minimalist design.
This calculator will determine your position size per trade, profit, loss, risk/reward ratio and leverage if any.
It will calculate your leverage if you are trading financial instruments e.g. Mini Futures , Turbo Warrants etc. that have a financing level.
Tip: Use this as a complement to the Long/Short Position tool.
Provide the following inputs to get a calculation:
- Position type
- Account balance
- Risk per trade percentage
- Financing level (if any for leveraged instruments), else let it be 0
- Entry price
- Target price
- Stopp loss price
You can also choose the color of the output text, its background and position in the chart window.
Enjoy!
Candles Colored Green/Red According To Buy & Sell PressureCANDLES COLORED GREEN OR RED ACCORDING TO BUY & SELL PRESSURE
This indicator paints each candle green, red or blue depending on whether the buy/sell pressure for that candle is bullish, bearish or neutral.
***TURN OFF NORMAL CANDLE COLORS***
For this script to show properly on the chart, make sure you go to chart settings(gear icon in top right corner) and in the symbol tab, uncheck body, borders and wick.
***HOW TO USE***
When the directional movement index indicator shows more buying pressure than selling pressure, the candle will appear lime green. This indicates bullish buying pressure.
When the directional movement index indicator shows more selling pressure than buying pressure, the candle will appear red. This indicates bearish selling pressure.
When the directional movement index indicator shows the same amount of buy and sell pressure, the candle will appear blue. This indicates neutral buy/sell pressure.
Use the color changes to see if there is more buying or selling to pinpoint reversals and understand current market buying. Wait to enter or exit positions until the candles turn the opposite color.
***MARKETS***
This indicator can be used as a signal on all markets, including stocks, crypto, futures and forex.
***TIMEFRAMES***
This DMI color coded candlestick indicator can be used on all timeframes.
***TIPS***
Try using numerous indicators of ours on your chart so you can instantly see the bullish or bearish trend of multiple indicators in real time without having to analyze the data. Some of our favorites are our Auto Fibonacci, Directional Movement Index, Color Coded Buy & Sell Pressure Volume Profile, Auto Support And Resistance and Money Flow Index in combination with this Buy & Sell pressure Candle indicator.
[Nekonyam] Auto Select Currency Binance Open InterestDisplays open interest in crypto currencies.
It automatically changes the open interest displayed according to the virtual currency displayed on the chart.
It works even if you are viewing an exchange other than Binance.
It shows open interest according to the base currency, so it works with BTCEUR and other currencies.
ETHBTC, for example, shows the open interest in ETH.
If you are viewing a currency that does not provide open interest from Binance to TradingView, it will not work.
It will not work if ETFs, CME futures, etc. are displayed. (such as GBTC or BTC1!)
仮想通貨のオープンインタレストを表示します。
チャートに表示している仮想通貨に合わせて自動で表示するオープンインタレストを変えます。
バイナンス以外の取引所を表示していても使えます。
ベース通貨に合わせてオープンインタレストを表示しているので、BTCEURなどでも使えます。
ETHBTCなどはETHのオープンインタレストが表示されます。
BinanceからTradingViewにオープンインタレストが提供されていない通貨を表示している場合は使えません。
ETFやCME先物などを表示している場合は使えません。(GBTCやBTC1!など)
BB Order BlocksUsing the Bollinger Band to mark areas of Support and Resistance
The scrip finds the highest and lowest levels of the bands to mark up futures areas of interest.
If the High/Lows are being broken on the Bollinger band, or if the look back range has expired without finding new levels, the script will stop plotting them until new levels are found
I have found many combinations which work well
Changing the band length to to levels 20,50,100 or 200 seem to give interesting results
Aswell as this changing the standard deviation to 3 instead of 2 marks up key levels.
The look back range seems to show better levels on 50,100 and 200
Let me know any changes or updates you think you could make an impact , this was just a quick basic script I wanted to share.
BTC Gravity OscillatorThis indicator is a deviation of a Center of Gravity Oscillator corrected for the diminishing returns of Bitcoin.
I've set up this indicator for it to be used on the weekly timeframe. The indicator oscillates between 0 and 10, where 0 indicates oversold conditions and 10 indicates overbought conditions.
The indicator plots in any BTCUSD spot, futures , BLX index and BTCEUR .
It paints in all time frames, but Weekly time frame is the correct one to interpret the 'official' read of it.
Cowen CorridorI'm reposting the Cowen Corridor that was originally developed by Benjamin Cowen of "Into the Cryptoverse"
This indicator was originally developed by Ben publicly on stream. It may be used to predict upper and lower bound limits for the price of Bitcoin .
I've set up this indicator for it to be used on the weekly timeframe as was intended.
The indicator plots in any BTCUSD spot, futures , BLX index and BTCEUR .
It paints in all time frames, but Weekly time frame is the correct one to interpret the 'official' read of it.
For that reason, I've enabled by default an option that forces the indicator to display on the Weekly value even though the time frame could be higher or lower.
Credit for this idea goes to Benjamin Cowen: @intocryptoverse
Saylor to Schiff RatioI'm reposting the Saylor to Schiff Ratio indicator that was originally developed by Michael Silva
This indicator may be used to predict key momentum shifts in the price of Bitcoin
I've set up this indicator for it to be used on the weekly timeframe as was intended.
The indicator plots in any BTCUSD spot, futures , BLX index and BTCEUR .
It paints in all time frames, but Weekly time frame is the correct one to interpret the 'official' read of it.
For that reason, I've enabled by default an option that forces the indicator to display on the Weekly value even though the time frame could be higher or lower.
Credit for this idea goes to Michael Silva: @mikepsilva
Leading Indicator [TH]The leading indicator is helpful to identify early entries and exits (especially near support and resistance).
Green = trend up
Red = trend down
How it works:
The leading indicator calculates the difference between price and an exponential moving average.
Adding the difference creates a negative lag relative to the original function.
Negative lag is what makes this a leading indicator.
The amount of lead is exactly equal to the amount of lag of the moving average.
The leading indicator has lagging signals at turning points.
The leading indicator will always have noise gain, which gets eliminated by applying a moving average.
Modifying the alpha values will modify the amount of noise and change the sensitivity of trend change.
Example 1: Changing alpha1 from 0.25 to 0.15 lowers noise, more clearly identifies trend, and adds delay to this indicator.
Example 2: Changing alpha1 from 0.25 to 0.35 increases noise, less clearly identifies trend, BUT more quickly indicates a trend change.
Calculations:
Where:
alpha1 = 0.25
alpha2 = 0.33
Leading = 2 * (arithmetical mean of current High and Low price) + (alpha1 - 2) * (arithmetical mean of previous High and Low price) + (1 - alpha1) * (previous 'Leading' value)
Total Leading = alpha2 * leading + (1 - alpha2) * (previous 'Total Leading' value)
EMA = 0.5 * (arithmetical mean of previous High and Low price) + 0.5 * (previous 'EMA' value)
Uptrend when 'Total Leading' value is greator than the EMA
Downtrend when 'Total Leading' value is lesser than the EMA
Cybernetic Analysis for Stocks and Futures, by John Ehlers (page 231-235)
Double RSI/LSMA Double RSI uses a Slow RSI combined with a Fast RSI to generate Buy and Sell signals. Least Squares Moving Average is only here for filtering signals. It is very good on certain stocks or ETFs on longer timeframes for swing trading. If you get a Buy signal look at the LSMA trend and if the candle is above the LSMA. It works great for me on lower timeframes scalping futures and on higher timeframes swinging options. It is better than paying for Buy and Sell signals. Its my first script/indicator so play with it and see what you think. Let me know if you guys find anything that makes it better. Hopefully this helps some traders out there.