TradingWise Supply and Demand Indicator 1.0TradingWise Supply and Demand Indicator 1.0 is based on the Price Action candlestick patterns to identify the Supply and Demand zones in the charts (Areas of liquidity). It works on all Timeframes and Asset Classes. This Script helps the traders to identify the demand and supply zones with identifications on the candle stick patterns indicating the origin of the Strong move. Also it generates Alerts automatically once the supply or demand area is formed thus by reducing the hours spent on the charts and reducing the missed trade Opportunities as well. This Indicator is extremely helpful for those on Full time Jobs/ Busy Schedule.
Buy/Sell Alerts by Indicator:
Green Diamond + DZ Sign ---> Indicates the Demand Zone Formation. Place Buy Trade upon Entry Criteria Met
Orange Diamond + SZ Sign ---> Indicates the Supply Zone Formation. Place Sell Trade upon Entry Criteria Met
Forex
WOTS Forex IndicatorThe WOTS Forex Indicator gives you a true picture of the market entry points, after a scan it performs every period (after every candlestick closes) . It is pretty straightforward in its use with clear visual representation of the entry and exit points provided by the indicator.
This allows you to make improved entry and exit points either you're going long or short on any Forex pair you like, and accommodates many trading styles, systems, and strategies.
It will work along most TradingView indicators and the timeframes we recommend you using it are the 30M, 1H and sometimes the 4H chart.
The specific components of the indicator are:
Methodology:
The indicator uses a MACD oscillator to determine the local trend direction and to give buy & sell signals when its conditions are met.
An optional build-in indicator, exponential moving average cross (EMA cross), can be used to filter out 'false' signals.
The calculation of the entry points are drawn from universal prices that fit every pair in the Forex market you may choose.
Persistent variables are used for buy and sell prices, enabling color-coding of the signals (profitable or not).
Features:
Color coded labels - Buy & Sell
Four types of entries - Bull Buy = orange, Scalp Buy = green & Bear Sell = purple, Scalp Sell = red
Universal prices fitting all Forex pairs
Four Buy and Sell signal alerts
Remarks:
In our experience and recommendation, the values used work best on the 30-minute & 1-Hour timeframes. We encourage everyone to experiment the best results we had, were on this specific timeframe, higher or even lower.
Using the indicator on non-standard charts (Heikin Ashi, Renko etc.) can produce unrealistic results.
- Thanks to John Aslanis and Alexandros Temelkou the idealists and creators of this indicator.
Use the link below to watch a tutorial video, request a trial, or purchase for access
Volume RSI Crypto This is a special version RSI, in this case , I am using the volume, which is measuring the speed and change of volume to the price both up and down size.
Volume RSI attempts to gauge price trend changes via changes in bullish and bearish movements.
Its formula is :
VoRSI = 100 - 100 / (1 + VoRS)
where VoRS is Volume Relative Strength over specified period which is calculated as a ratio between averages of Up-Volumes and Down-Volumes:
VoRS = (Average Up-Volume) / (Average Down-Volume)
The logic for this strategy is simple
We entry long when we have a crossover with the Overbought level and we entry short when we have a crossunder with oversold level.
If you have any questions, please let me knw !
Moving Stop-Loss mechanism + alerts to MT4/MT5"How to code moving stop-loss mechanism", is one of the most often repeating questions in private messages I receive, so just to focus on this mechanism, I made a spin-off from my previous script: TradingView-Alerts-to-MT4-MT5-dynamic-variables-NON-REPAINTING .
The logic here moves the stop-loss each time a trade is running and a new pivot high/low is detected. When such event occurs (UpdateLongStopLoss or UpdateShortStopLoss), stoploss_long or stoploss_short mutable variable is modified. And it needs to be coded inside strategy.exit() line as "stop=stoploss_long" or "stop=stoploss_short". Entries are pretty straightforward - on Stoch crosses.
Last lines of the script show how to wrap information about such updates and send send alerts to MetaTrader via TradingConnector for execution in Forex/indices/commodities/crypto markets via MetaTrader. Please note that "tradeid=" variable must be passed with each alert, to let MetaTrader know which trade to modify. SLMOD, TPMOD are recently added commands, along with BE (as in "move stop-loss to breakeven" - but that's another topic).
Please disregard strategy backtest results, as this script is for coding education purposes only. However, it seems with the stop-loss mechanism enabled, the results are even better, than in original version of the script :)
test Xbr Super Volume 3.0A new update that can be used in liquid markets using graphical analysis.
The logic of this indicator is to automatically carry out the analysis of points where there is volume absorption, indicating on the graph through an arrow and lines from which defenses and fights can be generated.
Using this methodology we can find good moments to negotiate.
Scalp - 50/200 EMAWorks on any timeframe but was built originally for scalping. Uses 50EMA and 200EMA to define the trend and touch backs on to the 50 EMA for entry.
200 EMA - White Line
50 EMA - Yellow Line
ATR: Length 14 Smoothing RMA
1. Wait for 50ema to crossover 200 ema – Then wait for candle to touch 50 ema after the cross.
2. Entry: Green candle that closes above 50 ema without getting more than 3 candles closing below(BUY) or above (SELL) 50ema.
3. Stop loss: 2x ATR value below entry candle.
4. Take profit: 1.5x the risk.
Settings allow for # of Entries allowed per trend as well as EMA periods.
Opposite for Sell Entries (Stop Loss: 2x ATR value above entry candle)
How to use Leverage and Margin in PineScriptEn route to being absolutely the best and most complete trading platform out there, TradingView has just closed 2 gaps in their PineScript language.
It is now possible to create and backtest a strategy for trading with leverage.
Backtester now produces Margin Calls - so recognizes mid-trade drawdown and if it is too big for the broker to maintain your trade, some part of if will be instantly closed.
New additions were announced in official blogpost , but it lacked code examples, so I have decided to publish this script. Having said that - this is purely educational stuff.
█ LEVERAGE
Let's start with the Leverage. I will discuss this assuming we are always entering trades with some percentage of our equity balance (default_qty_type = strategy.percent_of_equity), not fixed order quantity.
If you want to trade with 1:1 leverage (so no leverage) and enter a trade with all money in your trading account, then first line of your strategy script must include this parameter:
default_qty_value = 100 // which stands for 100%
Now, if you want to trade with 30:1 leverage, you need to multipy the quantity by 30x, so you'd get 30 x 100 = 3000:
default_qty_value = 3000 // which stands for 3000%
And you can play around with this value as you wish, so if you want to enter each trade with 10% equity on 15:1 leverage you'd get default_qty_value = 150.
That's easy. Of course you can modify this quantity value not only in the script, but also afterwards in Script Settings popup, "Properties" tab.
█ MARGIN
Second newly released feature is Margin calculation together with Margin Calls. If the market goes against your trades and your trading account cannot maintain mid-trade drawdown - those trades will be closed in full or partly. Also, if your trading account cannot afford to open more trades (pyramiding those trades), Margin mechanism will prevent them from being entered.
I will not go into details about how Margin calculation works, it was all explainged in above mentioned blogpost and documentation .
All you need to do is to add two parameters to the opening line of your script:
margin_long = 1./30*50, margin_short = 1./30*50
Whereas "30" is a leverage scale as in 30:1, and "50" stands for 50% of Margin required by your broker. Personally the Required Margin number I've met most often is 50%, so I'm using value 50 here, but there are literally 1000+ brokers in this world and this is individual decision by each of them, so you'd better ask yourself.
--------------------
Please note, that if you ever encounter a strategy which triggers Margin Call at least once, then it is probably a very bad strategy. Margin Call is a last resort, last security measure - all the risks should be calculated by the strategy algorithm before it is ever hit. So if you see a Margin Call being triggred, then something is wrong with risk management of the strategy. Therefore - don't use it!
Stronger Classical Support/Resistance + Round LevelsI wrote some Support/Resistance scripts before this. In this new script, I implemented the logic of the code from the scratch, so it's very different from my previous S/R indicators and I think it's more advanced, accurate and efficient.
As the result it could do the followings for now:
- Draw more strong classical resistance/support levels by checking previous direction changes of the chart as far as Pine technically allows
- Colorize the levels based on the counted points of retracement/pullback (The darker the color is, the stronger the level is.)
- Show the number of reactions to each level
- Change the color of each level based on its main role as support, resistance or both
- Draw close round levels to current price for Forex pairs
I suggest all users of my previous S/R indicators to try this one.
Feel free to send me any issue or opinion!
FieryTrading Suite AThis trading suite offers a complete package to traders, both long- and short-term. The idea here is that by combining FieryTrading Suite A and B, one can get a better grip on the markets, thus making more profitable trades. This trading suite is suited for all time frames and assets. Ideally one would combine this trading suite with their own strategies or indicators.
This indicator pack consists of several parts and offers quite some customization.
// FieryTrading Suite A
Bar Trend: the bars will get colored according to the current, short-term, trend. Green is bullish, red is bearish and yellow is neutral. By tweaking the Bar Trend Length one can make the bar trend more or less responsive. Higher lengths are better for long term trading, whereas a shorter length is better for short-term or scalping.
MTF EMA: this is actually two indicators in one. First, we have the EMA on the chart, which is a general current trend indicator. Above the EMA means bullish, under the EMA means bearish. This EMA is also colored according to the long-term trend, which gets pulled from a higher time-frame. Green means long term bullish, red long-term bearish, yellow neutral.
Overshoot Area: the green and red bands around the price are areas where the price might potentially reverse from. This works exceptionally well in consolidating (horizontal) markets. The wider the overshoot area, the stronger the trend. A very tight overshoot area might indicate that the price will soon make a strong move. Increase the overshoot length to make it better suited for long-term. Decrease the length for better detection of small moves.
Extra’s:
1) Extreme bars: when turned on, the bars will color blue if the price reaches a potential strong area of reversal or consolidation. Blue bars are also great areas to exit your current position. Increase the Extreme Multiplier in case you want it less responsive. Decrease the multiplier to quicker spot extreme bars, but with a higher margin of error.
2) FieryTrend: due to its popularity, I’ve decided to included my FieryTrend indicator in the Trading Suite. It’s a great tool to manually find trend lines, resistances and supports. See my FieryTrend indicator for more info.
3) Fractals: when turned on, this option will display fractals on the chart. These fractals are mainly used for stop-loss determination, but can be used for other strategies as well.
4) FT B Reversal: when turned on, this will place reversals of the FieryTrend Suit B on the chart. Make sure to keep the inputs of the FT B indicator the same on both the A and B suite. It might trigger some false-positives, don’t trade this blindly. Wait for the lighter color to completely disappear behind the darker one on FT B.
Alerts: Alerts can be created for Extreme Bars, Bar Trend and FieryTrading Suite B Reversals. Bar trend currently triggers an alert of every bullish / bearish bar, want to make it trigger once in the future, but I’m encountering an unknown bug.
// FieryTrading Suite B
This oscillator tries to give traders an idea of the current trend, as well as trend reversals. The higher the lengths, the bigger the potential trends can become. Be aware that higher lengths are less responsive to market movements. The default inputs are best for most traders. Alerts for this indicator can be made in the FT Trading Suite A, indicated by the blue up / down triangles.
// Potential strategies
There are several potential strategies that one can follow by just looking at the chart. Here are some examples:
1.0 For longer term trades one could simply trade the bar colors. Buy when the bar goes green, sell when it goes red.
1.1 You could exit the trade at either an Extreme Bar or when the price enters the Overshoot Area
1.2 During bullish trends (green bars, green MTF EMA), you could spot potential entries with the FieryTrading Suite B. Enter on every dip on the oscillator. Inverse would be true for shorts.
2.0 You could trade the FT B Reversals during their respective trend. So, trade bearish reversals during a red MTF EMA, bullish reversals during a green MTF EMA.
Never trade one indicator naked. Always use other indicators to confirm your bias.
For take-profit and stop-loss selection I would generally advise to look at the most recent fractal and place the stop above / below the fractal bar. Bullish trades should look at the pink fractal, bearish trades at the yellow fractal. When no fractal is available, look at the reversal bar and apply the same strategy.
For short term trades I’d advise a risk-reward of 1.5, longer term 2 – 2.5.
See the screenshots below for a couple of examples.
For access, please take a look at the "Author's Instructions" below.
Crypto SniperAn easy to follow indicator for scalping or long term trades. You can add this indicator to other analysis as a complementary indicator or use it alone for entry and exit your trades.
Features
• Simple entry signals, buy the contract at the end of the signal candle
• Additional entry signals can be enabled to increase your position and your profits
• Get exit signals for your opened trades.
• Alert conditions for all entries, additional entries and exits
• Enable ATR plot of Take Profit and Stop Loss
• Customize your ATR settings to adapt the indicator to any market
This indicator use some analysis to get the bottom/top of the cycles. Any market or timeframe and can be used. Specially designed for scalping on cryptocurrency futures markets.
B&S v3.2This strategy uses RMA, Moving Average used in RSI , to create the buy and sell signals. It is the exponentially weighted moving average with alpha = 1/length.
IT SHOWS ON THE GRAPH:
Buy: Long position.
Sell: Short position.
V ⇣: Institutional volume .
V ⇡: Institutional volume .
T ⇣: Downtrend.
T ⇡: Uptrend.
Volume (V ⇣/V ⇡) when Market Makers moving smart money.
When 200SMA is above 100SMA (T ⇡) 200SMA is below 100SMA (T ⇣)
HOW TO USE?
If you are trading any asset that is in an uptrend, avoid shorting until the sign (T ⇣) appears followed by the Institutional Volume signal (V ⇣) indicating reversion.
If you are trading any asset that is in a downtrend, avoid long positions until the signal (T ⇡) appears followed by the Institutional Volume signal (V ⇡) indicating reversal.
For long operations use "🕗 360" setting for Daily timeframe.
For Day Trade use "🕗 30" for 1 hour or 30 minutes timeframe.
Trademinator Forex Quarters"Trademinator Forex Quarters" displays Institutional Hesitation Lines and Butter Zones on any USD or JPY currency pair chart.
The currency pair, timeframe and current trading price are automatically calculated by the indicator, so there's no need to apply any specific settings.
As an option, the quarter level that is applied to the chart by default, can be changed from automatic detection to any other quarter.
In order to analyze confluence among several timeframes, the indicator can be applied several times to the chart and then change the quarter level in the settings.
Quarter levels are referred to by the indicator as follows:
Mayor Whole (Daily)
Mayor Quarters (4H)
Minor Wholes (30 min)
Minor Quarters (5 min)
Forex Position Size CalculatorPosition size calculator for FOREX only!
Lotsize is calculated by using properties described below.
Properties:
- Show position size: Will only be visible on 5m - 15m - 60m chart
- Account Currency:
- Account Size: Between 0 and 10 000 000 units of currency
- Risk: Between 0 and 100%
- Stoploss: Between 0 and 200 pips
- Textcolor
Sentiment EURUSD 1m with hedging zonesThis is a very specialised and optimized script, for 1m EURUSD traders - daytraders, scalpers.
1m trading is very difficult, but it can be also most profitable, if done right.
Why difficult? It is hard to detect market direction - usually when trend indicators reverse, that new trend is already over. One and the same indicator signal sometimes provides one outcome (for example reversal) and sometimes exactly the opposite (continuation). It requires deep understanding on WHEN to use which indicator and when to ignore signals. Set the parameters of your indicators to a very sensitive extent and they will keep changing direction back and forth - always being too late of course :) Set the parameters too losely, and you'll be late with entries 100% of times. Looking for universal trend-showing indicator? There is none...
This script is a result of 2 years of practical following EURUSD 1m market action. Looking at charts with MANUAL TRADER'S eyes. Analyzing all together: price action, indicators, zigzag, divergences, momentum, pivot points, support and resistance. On the one hand traders say only manual trading can be successful and on the other - to stick to one strategy and be automatic when applying to it. So this is it - automatic coding of market signals as if manual trader would do it. Forex is news-driven? Yes, it is. So if market sentiment changes because of some news happening, the script will quickly recognize it and suggest reversal.
Please note I'm not pretending to have a crystal ball. Nobody has. The goal of this script is not to predict where EURUSD market will be, but to correctly notice that is has reversed. Nothing else.
Sometimes the market will move towards reversal, but not cross the line yet - these are so-called HEDGING ZONES. Sometimes they turn out to be reversals and sometimes simply best places for dip entries. Ideally a trader should hedge there, because market could move either way. You might wanna apply apply knowledge of market fundamentals there or look into some micro-indicators. Anyway, it is good to realize where those zones are and this script shows them. In pink.
It is invite-only script. DM me for access.
Bollinger Bands and Floor Pivot pointsThe Bollinger bands set the standard deviation of the reversal points with smoothing over the specified period. That is, if you want to see the standard deviation of resistance and support on an hourly chart with a smoothing period for one day, then you need to set the period 24 in the settings. In this case, the pivot points always coincide with the chart.
The middle Bollinger band smooths out the pivot point, and the upper and lower bands-the resistance of r1 and the support of s1, respectively.
In the settings, you can set the smoothing of the standard deviation of the resistance and support of r2 and s2 instead of r1 and s1
example for working on the daily timeframe for the XRP/USDT cryptocurrency pair
PpSignal Super Smooth Move Average Improved V 1.0© 2013 John F. Ehlers Super Smooth Move Average Improved
In “Predictive And Successful Indicators” in this issue, author John Ehlers describes a new method for smoothing market data while reducing the lag that most other smoothing techniques have.
I applied an improvement to the formula that prevents the repainting of the color change, especially when chart is plotted for greater time intervals. This filter eliminates the noise completely, as opposed to moving averages, e.g., exponential (EMA) which only offers a modest attenuation effect.
Buy when the color is aqua-blue
Sell when the color is orange-red
Hammers & Stars StrategyOverview
This script trades basic hammer and shooting star candlestick patterns.
It's an extremely simple strategy with minimal filters, and according to my personal manual backtesting and automated trading results, performs best on the Daily chart on certain forex pairs.
It is intended to be traded on the forex markets but theoretically should work on all markets (especially if you optimize the settings).
The script also comes with complete AutoView automation for Oanda.
Make sure you've connected AutoView to TradingView and Oanda, then simply set an alert using the "alert() function calls only" condition and it will automatically execute trades based on whatever settings you've selected (only recommended for experienced traders - use at your own risk!)
If you're not sure how to set up AutoView, search "The Art of Trading AutoView Guide" on YouTube to find my detailed video guide.
Check out my website and YouTube channel for more information, scripts, resources and free Pine Script & trading lessons (link in my profile).
Best of luck with your trading!
- Matt / The Art of Trading
Settings Menu
Tooltips are included explaining what the various settings do, but here's a quick summary:
Strategy Settings
>= ATR Filter: Minimum size of entry candle compared to ATR
<= ATR Filter: Maximum size of entry candle compared to ATR
Stop Loss ATR: Stop loss multiplier (x ATR)
R:R: Risk:Reward profile
Fib Level: Used to calculate upper/lower third of candle. (For example, setting it to 0.5 will mean hammers must close >= 50% mark of the total candle size)
Start Date Filter: Date & time to begin trading from
End Date Filter: Date & time to stop trading
AutoView Oanda Settings
Use Oanda Demo: If turned on then oandapractice broker prefix will be used for AutoView alerts (demo account). If turned off then live account will be used
Use Limit Order: If turned on then AutoView will use limit orders. If turned off then market orders will be used (recommended to use limit order to mitigate spread issues)
Days To Leave Limit Order: This is your GTD setting (good til day)
Account Balance: Your account balance (used for calculating position size)
Account Currency: Your account balance currency (used for calculating position size)
Risk Per Trade %: Your risk per trade as a % of your account balance
Reversal with Bollinger Bands + RSI + ADX + ATR (Upgraded)Hi,
Welcome to my 4th script.
Someone asked me some questions about the Bollinger Band strategy I previously published. When I went back to my published script I couldn't help myself but simply try and make it better. Which I did.
Since I've published that script, I've gained much more knowledge about how Pinescript functions. As well as gaining more and more knowledge about how the markets are structered etc.
In this reversal script we use 4 indicators to determine good entry signals, we determine whether the market is ranging or trending and we still only want to take trades in the direction of the "trend".
Bollinger Bands are used for our entry signal. When price hits either side of the band, we wait for a reverse candlestick before we enter a position.
RSI is used to determine if we're in a trending market or in a ranging market. You can adjust the values in the inputs. You can determine the minimum RSI value and the maximum RSI value.
ADX is used the same way as RSI, you can adjust the value in the inputs. You can determine the minimum ADX value.
Last but not least we use two EMA's, a 200 EMA and 100 EMA. Both are adjustable through the inputs. I used two EMA's because I noticed when using this strategy that we'd enter a new position often after having a bad trade. Using two EMA's might clean up some signals, in my case with EUR/USD on a 15m timeframe, it didn't clean up enough signals.
All the default values are pretty decent but might require some finetuning on a certain instrument. Don't overfit the strategy though, that'll only give you bad signals in the future.
Then we are off to our exit signals.
Initially I wanted to incorporate my previous Bollinger Band exit signals as well, but it was too much of a hassle to make the script work as intended so I left it out. If you want to use those exit signals, just find my other script.
When we're in a position and price crosses the opposite band, we wait for a reverse candlestick before we exit the position.
Additionally we want our losses to be as small as possible, so we use RSI to signal us when the market is, or starts to, trend against us. This is where you use the minimum and maximum exit values. So when RSI crosses over or under that value, it'll exit the position.
Furthermore, we use the ATR indicator to set our stop loss, which is pretty basic stuff. You can adjust the ATR multiplier in the inputs. Disabling "Use Trailing Stop?" is really inadvisable unless you know this script inside out as your only exit signals will be opposite Bollinger Band Cross and RSI overbought / oversold areas.
Market analysis panel MAP DejaVuTradesThe market analysis dashboard allows you to view multiple markets simultaneously to make a quick and timely decision.
You can add up to 6 markets per panel between Forex, Cryptos, Stocks, Futures, CFDs, Indices, and comparing their current state in any different timeframe in which you are currently, selecting it from its configuration.
Below is the explanation of each column of the panel.
►Title: Select the name of your panel grouping by type of market.
►Bullish or bearish market: Reference of the selected time frame indicating a green progress bar when the market trend is bullish, and red when the market is bearish, with the strength percentage.
►Variation by temporality: Current relationship with the close of the previous candle, depending on the selected temporality. indicating you in a green progress bar when the variation is positive, and red when the variation is negative, with their respective percentage.
►Nominal volume: it is a multiplication of the current volume with the current price, its immediate relationship is from the marketcap of the selected market with its respective value.
To view the values, simply put the mouse over the progress bar.
Point of possible Reversal (PPR): forex Strategypoint of possible Reversal, PPR :
in this strategy I have tried to find out the possible Reversal points in the forex pairs. It’s the most resisted levels from where the trend takes up a particular direction. These PPR can lead the price in any direction depending upon the time zone its happening in.
In this strategy once the code finds a PPR it then checks for suitable time zone then it checks for the RSI confirmation, it checks for the Parkinson Volatility, it checks for internal Bar Strength (refer below for more information)
The following setting details will help you in the understanding the strategy and indicator used:
This indicator contains the following setting:
1.Fixed trading sessions for Long and Short
i. Fixed trading session for long trades (long position can be taken in that period of time only)
ii. Fixed trading session for short trades (Short position can be taken in that period of time only)
The concept behind restricting the time to go long or short is because in forex the particular pair move in a particular direction depending upon the currency and time zones.
This strategy works on different forex pairs, you need to find the best settings. I will be providing the best settings which works for this strategy and different pairs.
2.Setting for back test selection date range you can check the beck test of a particular time range.
3.You can check Long and Short positions performance separately, by unchecking the “ Go_long ” option it will remove all long positions from back test. Vice versa for “ Go_short "option
4.Internal Bar Strength
IBS is simply an indicator where you buy on weakness and sell on strength, the cornerstone of any mean-reverting strategy.
It oscillates from zero to one and measures the relative position of the closing price relative to the High and Low.
IBS = (Close – Low) / (High – Low)
In the input setting the you can disable enable the IBS option from the strategy.
5. Parkinson volatility
Parkinson volatility is a volatility measure that uses the stock’s high and low price of the day (can be changed in the setting, instead of day it can be set to any bar length)
The main difference between regular volatility and Parkinson volatility is that the latter uses high and low prices for a day, rather than only the closing price.
In the setting you have three option
1. Enter Volatility Threshold
If the Parkinson volatility value is greater than the the threshold value then it lets the trade happen.
2.Set the high/low bar time frame for calculating Parkinson volatility. ( Set 60m by default)
Formula used as below:
high_=security(syminfo.ticker, input("60"), high)
low_=security(syminfo.ticker, input("60"), low)
hourlyRangeSquared = pow((log(high_) - log(low_)), 2)
dailyParkinsonVol = sqrt(sum(hourlyRangeSquared, 24) / (4 * log(2)))
6. "Enter no of contract size"
This setting helps you to set the contract size , by default it is set to 100000.
7.This setting is for the PPR, in this you can change the search of PPR in another time frame, you can add higher timeframe PPR in the chart, by default the PPR is set to search for current time frame PPR.
8.Futrther confirmation of trade is done through the RSI criteria . In this I have provided four kind of RSI confirmation you can test all by selecting any one of the four.
1. filter trade on the basis of BB of RSI (as shown in the image)
2. filter trade on the basis of RSI Levels (RSI>50 for long, vice versa for short)
3. filter trade by rsi>basis of BB of RSI(for long) & rsi<50(for short)
4. filter trade by rsi>50(long) & rsi< basis of BB of RSI(short)
SELECT ONLY ONE OF THE ABOVE IN SETTING.
9.For Exiting the trade I have used the trailing SL you can change it in setting.
You can exit the trade using two targets (two take profit) using different size for editing the trade.
If you want to take only on target then you have to make QANTITY of shares for 1st Exit as 100. Then you will exit all your position in the first target achieved.
A big thanks to kodify.net there articles are very helpful kodify.net
Thanks to stack overflow community for clearing the doubts.
Thanks to Mickey for providing assistance.
Trading view official documentation on V4 of pine script also helped me.
BitcoinNinjas NINJASIGNALS V4 (Script)BitcoinNinjas NINJASIGNALS V4 (Script)
(for Cryptocurrencies, Forex, GunBot, ProfitTrailer, Autoview, CryptoHopper, manual or automated trading, and more)
This is version 4 of our Ninja Signals trading script, with accompanying backtesting strategy.
BitcoinNinjas NINJASIGNALS V4 (Strategy)
•Allows users to easily set automated buy/long and sell/short alerts on TradingView for use with automatic and manual trading of cryptocurrencies, Forex securities, and more (alerts are compatible with automatic trading software such as GunBot, ProfitTrailer, Autoview, CryptoHopper, and more).
•Synthesizes many powerful indicators [e.g., Relative Strength Index (RSI), Stochastic RSI, Money Flow Index (MFI), Moving Average Convergence Divergence (MACD), etc.) into one powerful script to generate very precise buy and sell signals in virtually all market conditions.
•Features user-defined adjustable calibration settings, allowing traders to customize the script to fit any currency / security on any exchange available through TradingView.com, simply by adjusting settings.
•Buy/Long arrows, Sell/Short arrows, & EMA trendline can be customized or hidden, if desired.
•Complete with backtesting strategy version of script which allows users to test various trading strategies based on the alerts the script generates (see information and screenshots below).
•Backtesting strategy features a user-defined adjustable date range, so traders can estimate performance of the script over specific periods of time, such as the last week, month, or year.
•Script and backtesting strategy feature many user-adjustable settings including stop loss and take profit alerts, an ‘only sell for profit’ option (Gunbot-specific), many different buy and sell filters, and more. Simply adjust the script settings and the backtesting results will automatically refresh.
•Backtesting strategy allows for pyramid buying to test various average down / dollar cost average trading strategies. Simply adjust the number of pyramid buys and the quantity of each buy.
•Fully compatible with margin and futures trading for any currency / security on TradingView.com.
DISCLAIMER: By using our BitcoinNinjas ‘Ninja Signals’ planning script, you agree to the BitcoinNinjas 'Terms of Use'. No sharing, copying, reselling, modifying, or any other forms of use are authorized for our documents, script / strategy, and the information published with them. This informational planning script / strategy is strictly for individual use and educational purposes only. This is not financial or investment advice. Investments are always made at your own risk and are based on your personal judgement. BitcoinNinjas is not responsible for any losses you may incur. Please invest wisely.
BitcoinNinjas NINJASIGNALS V4 (Strategy)BitcoinNinjas NINJASIGNALS V4 (Strategy)
(for Cryptocurrencies, Forex, GunBot, ProfitTrailer, Autoview, CryptoHopper, manual or automated trading, and more)
This is version 4 of our Ninja Signals trading script, with accompanying backtesting strategy.
BitcoinNinjas NINJASIGNALS V4 (Script)
•Allows users to easily set automated buy/long and sell/short alerts on TradingView for use with automatic and manual trading of cryptocurrencies, Forex securities, and more (alerts are compatible with automatic trading software such as GunBot, ProfitTrailer, Autoview, CryptoHopper, and more).
•Synthesizes many powerful indicators [e.g., Relative Strength Index (RSI), Stochastic RSI, Money Flow Index (MFI), Moving Average Convergence Divergence (MACD), etc.) into one powerful script to generate very precise buy and sell signals in virtually all market conditions.
•Features user-defined adjustable calibration settings, allowing traders to customize the script to fit any currency / security on any exchange available through TradingView.com, simply by adjusting settings.
•Buy/Long arrows, Sell/Short arrows, & EMA trendline can be customized or hidden, if desired.
•Complete with backtesting strategy version of script which allows users to test various trading strategies based on the alerts the script generates (see information and screenshots below).
•Backtesting strategy features a user-defined adjustable date range, so traders can estimate performance of the script over specific periods of time, such as the last week, month, or year.
•Script and backtesting strategy feature many user-adjustable settings including stop loss and take profit alerts, an ‘only sell for profit’ option (Gunbot-specific), many different buy and sell filters, and more. Simply adjust the script settings and the backtesting results will automatically refresh.
•Backtesting strategy allows for pyramid buying to test various average down / dollar cost average trading strategies. Simply adjust the number of pyramid buys and the quantity of each buy.
•Fully compatible with margin and futures trading for any currency / security on TradingView.com.
DISCLAIMER: By using our BitcoinNinjas ‘Ninja Signals’ planning script, you agree to the BitcoinNinjas 'Terms of Use'. No sharing, copying, reselling, modifying, or any other forms of use are authorized for our documents, script / strategy, and the information published with them. This informational planning script / strategy is strictly for individual use and educational purposes only. This is not financial or investment advice. Investments are always made at your own risk and are based on your personal judgement. BitcoinNinjas is not responsible for any losses you may incur. Please invest wisely.
Break of structure (BOS) forex StrategyPlease read all Details before using this indicator
This strategy is based on taking position after the break of a Previous High/Low swing happens (fixed time frame), the break of structure happens because of the swing happens then we go long or short respectively in this strategy.
I will be discussing the setting details through which you can make it work on different forex pairs.
Does it work on other pairs?
Yes, I have found similar back test results on other USD pairs.
Does it works on smaller time frame?
Yes it does work on smaller time frame , you have to understand the below concepts used and try different settings.
For the user the most important thing is to understand the settings of the indicator so that they can optimize the setting and get the best results:
This indicator contains the following IMPORTANT setting:
i. Fixed trading session for long trades (long position can be taken in that period of time only)
ii. Fixed trading session for short trades (Short position can be taken in that period of time only)
The concept behind restricting the time to go long or short is because in forex the particular pair move in a particular direction depending upon the currency and time zones.
This strategy works on different forex pairs, you need to find the best settings. I will be providing the best settings which works for this strategy and different pairs.
2. Choose Previous High/Low Timeframe
This is the most important option where you have to choose the timeframe for which you want H/L by default it is set to “D”. This timeframe H/L reference will be taken for taking trading decisions.
3.Setting for back test selection date range you can check the beck test of a particular time range.
4.You can check Long and Short positions performance separately, by unchecking the “Go_long” option it will remove all long positions from back test. Vice versa for “Go_short option”
5.Internal Bar Strength
IBS is simply an indicator where you buy on weakness and sell on strength, the cornerstone of any mean-reverting strategy.
It oscillates from zero to one and measures the relative position of the closing price relative to the High and Low.
IBS = (Close – Low) / (High – Low)
In the input setting the you can disable enable the IBS option from the strategy.
6. Parkinson volatility
Parkinson volatility is a volatility measure that uses the stock’s high and low price of the day (can be changed in the setting, instead of day it can be set to any bar length)
The main difference between regular volatility and Parkinson volatility is that the latter uses high and low prices for a day, rather than only the closing price.
In the setting you have three option
i. Enter Volatility Threshold
If the Parkinson volatility value is greater than the the threshold value then it lets the trade happen.
ii.Set the high/low bar time frame for calculating Parkinson volatility. ( Set 60m by default)
Formula used as below:
high_=security(syminfo.ticker, input("60"), high)
low_=security(syminfo.ticker, input("60"), low)
hourlyRangeSquared = pow((log(high_) - log(low_)), 2)
dailyParkinsonVol = sqrt(sum(hourlyRangeSquared, 24) / (4 * log(2)))
7. "Enter no of contract size"
This setting helps you to set the contract size , by default it is set to 100000.
8. “Zigzag Filter Length” this setting is for SWING H/L Lookback. With the help of this I have ploted Swing Support and Resistance.
9.Futrther confirmation of trade is done through the RSI criteria. In this I have provided four kind of RSI confirmation you can test all by selecting any one of the four.
i. filter trade on the basis of BB of RSI (as shown in the image)
ii. filter trade on the basis of RSI Levels (RSI>50 for long, vice versa for short)
iii. filter trade by rsi>basis of BB of RSI(for long) & rsi<50(for short)
iv. filter trade by rsi>50(long) & rsi< basis of BB of RSI(short)
SELECT ONLY ONE OF THE ABOVE IN SETTING.
10.For Exiting the trade I have used the trailing SL you can change it in setting.
You can exit the trade using two targets (two take profit) using different size for exiting the trade.
If you want to take only on target then you have to make QANTITY of shares for 1st Exit as 100. Then you will exit all your position in the first target.
A big thanks to kodify.net there articles are very helpful kodify.net
Thanks to Mickey for providing assistance.
Thanks to stack overflow community for clearing the doubts.
Trading view official documentation on V4 of pine script also helped me.