Percent ResearchPercent Research is an indicator that will plot a color / column on the chart in case custom requirements are met.
The requirements are:
- Price : Price requirement (equal or above input).
- Change % Up : Amount the price have moved up in percent (equal or above input).
- Change % Down : Amount the price have moved down in percent (equal or below input).
- Change Interval : Amount of bars the above move happened over.
- Volume : Volume requirement (equal or above input).
- Volume Interval : Amount of bars in a row that each require the above volume.
Example: In case one wants to plot whenever price has made a 20 percent move up or down in a week with minimum 100 000 volume for each of the last 2 days one can use.
Change % Up: 20
Change % Down: -20
Change Interval: 5
Volume: 100 000
Volume Interval: 2
The indicator will plot a color on the chart whenever the requirements are met, which then can be used to look into price action for each colored time period.
The values can be customized dependent on preference, example 100% movers over a month or 20% movers over a week etc.
Study
Intraday Background Time RangesThis simple script was written for studying recurring intraday behaviours of financial instruments. With it, you can highlight up to 13 customizable time ranges on your chart, filling the corresponding background space with colors you prefer. You can then write a note for each range and it will be shown in the optional related table.
The experience shows that every financial instrument has its own personality. With this in mind, the script can be useful to study intraday charts with the purpose of discovering recurring behaviours of specific instruments over a certain time range and under specific circumstances (normal days, earnings days, days with catalysts, etc.) This can help the trader to deeply understand the instrument personality, and therefore also to decide whether to enter or exit the market if its behaviour meets or not his expectations.
Please note that this script only works on minute/hourly charts.
TWAP + MA crossover Study [Dynamic Signal Lab]Dear TV'ers,
Hereby the study for the TWAP/moving average crossover, with taking profit options.
moving averages include: EMA , WMA , DEMA , TEMA , VAR, WWMA, ZLEMA , TSF , HULL, TILL
It is also possible to gradually take profit, using:
* minimum consecutive green/red candles
* minimum amount of green/red candles in the last 2-8 candles
* both of the above criteria
The slightly transparent green fill shows how much you are in profit from your entry point
The current default properties should be modified to make this strategy cost-effective, but typically 15 minutes and higher timeframes (up to 6hr) seem to work well for larger (top10 cap) crypto projects. Don't use this script for small-caps as it will get you rekt, due to wild volatility.
Additionally, you'll also be able to continuously take profit, making sure you lock in all those sweet profits. For backtesting: use the strategy version of this script
Study forloop Star Diamond'Study forloop' pinescript Program to print star diamond
The Program Logic
I've taken the previous script and added a footer to it. instantly transformed into a diamond shape.
Study forloop Star Triangle'Study forloop' pinescript Program to print star Triangle
The Program Logic
For example, the following Pinescript programme will need two nested for loops. The outer forloop is for rows and the inner forloop is for columns or stars. to create a triangle shape.
CRC.i Bollinger Bands ®This script is yet another variant of the famous Bollinger Bands® TA tool used to track price volatility as it deviates from the mean of a security using standard deviations (positive &negative). Built for my own personal preferences. But perhaps you might like it, too.
Includes
+ Chart Lines: price, upper and lower bands
+ User Options: SMA length, stdev value
+ Heads up Display (HUD) with TARGET's and other related stats
Bugs? Comments? Requests? Ping me @calmrat
Scalping Trading System ALERT Crypto and StocksThis is the alert version of the strategy with the same name.
Indicators
SImple Moving Average
Exponential Moving Average
Keltner Channels
MACD Histogram
Stochastics
Rules for entry
long= Close of the candle bigger than both moving averages and close of the candle is between the top and bot levels from Keltner . At the same time the macd histogram is negative and stochastic is below 50.
short= Close of the candle smaller than both moving averages and close of the candle is between the top and bot levels from Keltner . At the same time the macd histogram is positive and stochastic is above 50.
Rules for exit
We exit when we meet an opposite reverse order.
This strategy has no risk management inside, so use it with caution !
TradingGroundhog - Fundamental Analysis - Multiple RSI Ema(Script Available Version of my previous Fundamental Analysis - Multiple RSI Ema )
As the number of crypto currencies is expanding, we need to find the one which will boom in the next months, weeks or even days.
Therefore, I present to you a Fundamental Analysis tool based on RSI built in order to compare the RSI between the diverse cryptocurrencies.
When cryptocurrencies start to trend, become active, minable and especially "buyable", people are investing their money into them.
As a result,the Daily RSI rises and the price of the crypto in question increases steadily.
With "Fundamental Analysis - Multiple RSI EMA" you can :
Follow up to 20 RSI from different exchanges at the same time.
Find easily Increasing/Decreasing RSI as the lines get transparent if their RSI decrease.
You can also select market with high potential of booming as :
Booming Market : 60 < Daily RSI <= 100 (Strong green background)
Potent Market : 55 < Daily RSI <= 60 (Light green background)
Sleepy Market : 50 < Daily RSI <= 55 (Light red background)
Dying Market : 0 < Daily RSI <= 50 (Strong red background)
Futur booming crypto will go from the Potent Market to the Booming Market
Can be used with the following time frames depending on the necessity:
4H
Daily (Preferred)
Weekly
Monthly
Good trades !
Disclaimer (As it should always be one to any script)
***
This script is intended for and only to be used for personal purposes only. No such information provided by it constitutes advice or a recommendation for any investment or trading strategy for any specific person. There is no guarantee presented or implied as to the accuracy of specific forecasts, projections, or predictive statements offered by the script. Users of the script agree that its original developer does not take responsibility for any of your investment decisions. Please seek professional advice before trading.
***
Open Close Cross Strategy R6.1 revised by yourmattieOriginal version: Open Close Cross Strategy R5 revised by JustUncle.
Change: script changed to a study script with custom alerts.
This revision is an open Public release, with just some minor changes. It is a revision of the Strategy "Open Close Cross Strategy R2" originally published by @JayRogers.
Revised by JustUncleL
Description :
Strategy based around Open-Close Moving Average Crossovers optionally from a higher time frame.
Read more about the indicator original script
Klik here
##USE AT YOUR OWN RISK##
Use this as overlayer on the original strategy to set custom alerts.
Info: with this study script no buy/sell arrows show up op the chart.
Does some know a solution for this issue:
Issue: sometimes it gives a false signal because even when you set "one per bar close" the custom set alert might come halfway the bar....and it might be a false signal when the bar is closed
Does somone know a fix for this? I tried with barstate.iscomfirmed but it didn't work for me.
Ps. I'm not a developer...just changed the scipt by watching a youtube tutorial.
CC - Candle Momentum IndicatorA simple VWAP and SMA smoothing on the candles along with some momentum coloring. Basically, if the "slider" is slid all the way up and it turns red, moving down or losing volume t's probably going down. If it's all the way down and starts turning green, getting bigger and seeing volume, it's probably going up. this is a prototype indicator that I plan to extend using arrays and averages if it is seen as something useful.
Future Line Example for study PivotPoint I know a lot of people who want to draw a line in future. I asked a lot of good Guys in Pine and they havent a solution. But today i got an idea i want to share with you. I hope this example give you a hint.
it is Usefull if you want to draw it like the Orginal Pivot Point standart or everything else.
I see a lot of Pivot Indicators but all stop at the actual Candle or extended right 100+ Years
Have Fun :)
RSI-ChartBarsFibo75-25This chart will help you plot on following condition
Source:
1. RSI Subtraction between two series
2. Historic Volatility (HV)
The conditions are:
1. RSI sub should cross over 0 (any direction)
2. EV should be high for last 5 values
3. If RSI Sub is above 0 - the direction of trade is Long (flag Green), if its below 0 - the direction of trade is short (flag red)
Percent Trailing Stop (%) - For Study Scripts===========
Percent Trailing Stop (%) - { FOR STUDY SCRIPTS }
===========
Wow - this is an example of how to implement Alerts relating to a Trailing Stop (%) within your Study Script. It's taken a bit of effort to get this working but I think we got there!
Alerts include Open Long/Short, Trailing Stop Hit, and (the most important one) Movement of Trailing Stop! <- this is actually really quite good, by the way! :)
You can ignore the actual entry/exit orders - they're based on a simple MA cross and are therefore NOT relevant, NOT profitable and NOT recommended!
You should be using this code as a way of adding a Trailing Stop to your own scripts - hope it helps!
Set your "Open Long/Short" Alert to "Once per Bar Close" - Set your "Trailing Stop Hit" Alert to "Once per Bar" - Set your "Move TSL" Alert to "Once per Bar Close". - You're all done! Enjoy.
-----------
Good Luck and Happy Trading!
Fixed Percent Stop Loss & Take Profit % - For Study Scripts===========
Fixed Percent Stop Loss & Take Profit % - { FOR STUDY SCRIPTS! }
===========
A neat example of how to set up Fixed Stops and Take Profit as a percent of the entry price - This is for setting Alerts within your own Study Script for when either your SL or TP get hit.
Yup, that's about it!
You can ignore the actual entry/exit orders - they're based on a simple MA cross and are therefore NOT relevant, NOT profitable and NOT recommended!
You should be using this code as a way of adding Stops and Takes to your own scripts - hope it helps!
Set your "Open Long/Short" Alerts to be triggered "Once per Bar Close" - Set your "SL/TP" Alerts to trigger "Once per Bar".
--
We wrote this with a bit of a rush on! ~ If you spot any mistakes/bugs just let us know and we'll get round to them asap!
-----------
Good Luck and Happy Trading!
Sqeeze Momentum, DMI and Parabolic SAR study with alertsThe study combines Sqeeze Momentum, Directional Movement Index (DMI) and Parabolic SAR indicators indicators providing you with a powerful indicator with long and short scalping strategies in it
When conditions of long or short position from all mentioned indicators are met script opens position. Once trend changes it closes position and fixes profit
Advantages:
1. Deal start alert condition includes the folowing filters and requirements:
- Momentum value is adjusted using a relative proportion of volume at each timeframe scale to exclude a chance of opening position at a low impulse stage
- Squeeze momentum trigger condition is automatically checked before a position is opened
- +DI , -DI and ADX values are taken into account to confirm the trend direction
- Position size is taken into account to ensure there will not be opened any excess deals or alerts
2. Exit deal alert condition was modified using Parabolic SAR indicator. Hence, it is ensured positions will not be closed in a middle of a trend
3. Study allows you to apply custom alerts to any position you would like thus you can connect your own trading panels with TradingView Webhooks
If you want to obtain access to the strategy please send us a personal message
THE HITMAN - Advanced Market Momentum FinderThe Hitman indicator is a tool to detect momentum swings in the market. Its intention is to identify good entry and exit points and alert you to have a closer look at the charts. It can be used on any chart, timeframe or market.
This script is meant to build your alerts on. For backtesting different settings we recommend you to use the "THE HITMAN Strategy Tester".
In detail we measure the strength of a trend by different values like volatility , price averages and trend momentum and calculates for every candle, if a change in trend appears or not. The calculation can be influenced by changing three Inputs values.
We do this for getting the best possible results from the Hitman The purpose of this strategy script is to help you identify proper settings for the asset and timeframe you want to trade. There is no general setting that fits it all. You have to find the settings that fits best to your life, your trading style, the assets you trade and the timeframe you trade on. For the strategy on BTCUSD chart shown below, we used the following inputs (25, 2, 20).
Be aware, that all results will be based on data from the past. There is no guarantee that the results you get by back testing, will also be achieved in the future.
An overview of how to use the 3 different options in the settings:
- Signal Strength: The higher this number, the stronger each signal gets. Naturally this means, you will get less signals with a high number. A strong signal is not a guarantee for a big move in the market neither it there any guarantee that the market moves in the projected direction. As the volatility is considered in calculating the strength of the signal, the numerical value may be the same buts its meaning for the calculation could be totally different. This means, on an asset with high volatility the signal strength has to be higher than on an asset with lower volatility .
- Sensitivity: Is calculated into the signal strength. It has the highest impact on the numbers of signal shown but also when a change in the trend is signaled on the chart. The lower the number to more and earlier you get the signals. Enter a decimal to finetune it even further. But be aware that a too low number will create a lot of signals which could make it hard to identify true changes in trend.
- Considered Volatility Range: Here you can set up the considered volatility range. It's impact highly depends on the asset you use it. The number does represent the amount of candles that have to be considered to calculate the strength of the signal.
How to use it?
We recommend to use the signal only in direction of the trend. It can be used to scalp against the trend but for Risk Management reasons we advise not to do so. In sideways movement we recommend to look out for channels or levels of resistance and support and use the signal of the script as confirmation.
BEST IVFTHello traders
This is a Pine adaptation of this FXCM LUA indicator
Seems to be made mostly for tick data (< 1 min timeframe) and advanced scalpers
Always interesting to see that Pinescript is much easier than most of other trading programming languages out there :)
PS
You might like checking the data window panel from TradingView and mouseover your cursor on the chart. It will update the debug/historical data in real-time
imgur.com
Best,
Dave
Alerts on OnePunch Algo StudyIn this study you will be able to get alerts based on the OnePunch Algo Strategy Version 1 and 2.
How To Use:
Open Alerts and Pick Alerts on OnePunch Algo Study option.
For buy alerts, pick Buy Signal option
For sell alerts, pick Sell Signal option
Simple as that. This script will provide buying and selling alerts to your email and mobile app notifications.
PtahX 3 EMA IndicatorA Basic 3 EMA Study / Indicator built in version 4 of Pinescript.
Individual color changing lines based on the position of the price (close) relative to each specific EMA
Alerts can be set for either
- All Signals Bullish
- All Signals Bearish
I try to keep my code clean and readable with comments and always enjoy seeing what others do with it. Please give me a thumbs up if you find it usefull & as always I hope you have very good luck with your trades!! :)
Cheers
PtahX
DH: (Study) Super Smart SuperTrend: Self AdjustingSUPER SMART SUPERTREND (Study Version w/Alerts)
Using data from other indicators I came up with a SMART SUPERTREND that auto-adjusts as the market changes - shall we call it "Artificial Intelligence?" Yes, you can fine tune it for specific assets and timeframes, but once the settings are entered, it auto-adjusts as the market and prices evolve.
This is the STUDY version of "Super Smart SuperTrend" with ALERTS. There is also a STRATEGY version which is designed for backtesting various settings.
STRATEGY VERSION FOR BACKTESTING IS HERE
ABOUT THIS INDICATOR
As the name suggests, 'Supertrend' is a trend-following indicator that is notably popular here on Tradingview and elsewhere. It does a remarkably great job of recognizing a trend (in progress) and it will signal you to initiate a position when the trend is clear. Perhaps the greater value of Supertrend is that it helps keep you in your position until that trend is over.
WHAT'S THE BEST ATR PERIOD AND MULTIPLIER?
There are two important data points we must enter for Supertrend to work, namely the 'period (ATR number of candles or days)' and the 'multiplier (value by which ATR is multiplied)' BTW, in case you don't know, ATR signals the degree of price volatility. A common default setting is 10 for the ATR period and 3 for the multiplier.
SORRY, BUT THE MOVIE STARTED HALF HOUR AGO...
Unfortunately Supertrend has a couple of big weaknesses. Generally, it fails in a sideways-moving market and when it does detect a trend, the signal to get in (or out) comes rather late. It's like someone telling you about a great movie they're watching, but by the time you start watching, one-third of the movie is over... bummer, right?
HOW TO IMPROVE SUPERTREND
One solution is to combine Supertrend with other indicators such as MACD, Parabolic SAR, RSI, etc. And another solution is to experiment (backtest) with the Period and Multiplier settings for the asset and timeframe you are considering for trade.
For the STANDARD SETTINGS in this "Super Smart SuperTrend" indicator, I have set 9 for the ATR and 2.2 for the multiplier as default after backtesting on Bitcoin and other crypto (mostly in the 15 minute to 6 HOUR timeframe). Of course you can change this easily to any ATR period and Multiplier you like.
BUT... WHY NOT GET SMART?
I started thinking, it might be best if we let the market determine candle-by-candle what the settings should be. If everyone says that Supertrend works best in conjunction with other indicators, why not do our "conjuncting" programmatically (ie: automatically) sorta like artificial intelligence!
HOW IT WORKS
So here's what I did. Using data from other indicators I came up with a SMART SUPERTREND that auto-adjusts as the market changes. It still has settings so you can fine tune it for specific assets and timeframes, but once the settings are entered, it auto-adjusts as the market and prices evolve.
With "Super Smart SuperTrend" there is no ATR period setting (that is determined programmatically) and now there are TWO multipliers you can experiment with... (a lower one set at 1.7 default and a higher one at 2.5). These multiplier settings create a multiplier range that can be used programmatically to adjust the multiplier as the market and prices evolve.
THE RESULTS
Across all time frames and assets I've tested, I generally get better results. Better entries, better exits and well defined trends. In comparison with a STANDARD Supertrend, it is not radically different, but when it does differ "Super Smart SuperTrend: is almost always better. All this is substantiated by backtesting of course.
SAMPLE BACKTEST RESULTS (BTC/USD)
Using Indicator Defaults
TIMEFRAME STANDARD RESULTS SUPER SMART RESULTS
% Profitable | Profit Factor % Profitable | Profit Factor
DAY 58.33% 9.38 75.00% 10.77
4 HOUR 78.43% 18.22 80.95% 21.78
1 HOUR 74.11% 8.98 70.13% 9.34
15 MIN 58.10% 6.10 71.43% 9.48
Keep in mind that "Profit Factor" is key. It basically tells you what you'd make for every ONE DOLLAR invested by consistently trading with the backtested parameters.
SUPER SMART SUPERTREND FEATURES
• There is a STUDY VERSION w/Alerts
• There is a STRATEGY VERSION for Backtesting
• Standard 'Current Time Frame' SuperTrend Line
• Standard 'Higher Time Frame' SuperTrend Line
• Auto-Adjusting Dynamic Optimized SuperTrend Line
> Most Signals Are Same or Better than Standard
> Refine Results w/Sensitivity Inputs (2 Multipliers)
> Impressive Comparison Backtests
• Both Standard and Smart Signals and Alerts
• Toggle Any Line/Signal (On/Off)
• Toggle Backtest
> Standard vs. "Smart Auto-Adjust"
> Backtest Higher Timeframe Only
WHAT MORE COULD YOU ASK FOR?
So glad you asked. Actually, there is more... Super Smart SuperTrend is incorporated into my premier indicator set called: STONEHENGE PLUS: SUPERTREND TRADING TOOLKIT.
With STONEHENGE, I'm combining this Super Smart SuperTrend with dozens of other indicators plus predictive "Stones." Check out STONEHENGE... you'll be in Trader's Heaven.
That's it. Get "SMART" Today!
STONEHENGE PLUS:
The Complete SuperTrend Trading Toolkit
SUPER SMART SUPERTREND ALSO WORKS WITH:
STONEHENGE BASIC: Double Stone Version (Study w/Alerts):
######
######
PLEASE HIT THE LIKE BUTTON (and follow me... lots of great stuff in the works!)
As always, I appreciate your support. Please share with others.
ENJOY!
Dan Hollings
Master Crypto Grid Trader
Stonehenge Master Mason
Host of the "High Leverage Lounge"
Please Explore My Other Indicators, Scripts, Grids and Educational Ideas.
@DanHollings on Tradingview.
Additional Links Below...
RENA 1.2 - OPTIONS - STUDYA swiss army knife type script, lots of indicators etc, good for crypto markets.
The strategy for this study can be found here.
PM for source code !
Silicone Re-calibrate ATRInspired by @bitmexstorm study Volatility-calibrated ATR
This study features two different ATR trail derivative concepts-Default one is called- "Silicone", and the alternative is called- "Mercurial. To decrease confusion during backtesting, trails plots with distinct color palette.
Options include the ability to apply a smoothening filter that affects both modes as well as an adaptive/fixed mode for the "Silicone" trail.
Parameters for trail dynamics/behavior is unlocked(!Parameters in publish version is far from optimized! Need serious testing! )
Candle Coloring reflects trail direction.
Feedback on optimal periods and multipliers is needed and appreciated