[pAulseperformance] PSStrategyX█ OVERVIEW
This script reduces the amount of time it takes to turn your indicator into a live trading bot.
It will convert your signals into alerts that will be sent to your exchange for trading.
The script features a broker connector to automate alert syntax and connect with third-party exchanges to live trade strategies with minimal setup.
It also includes an enhanced version of the built-in backtester with customizable options to speed up backtesting, trade-by-trade statistics, and a chart strategy summary to help traders make informed decisions.
The PSStrategyX trading tool is designed to provide traders with a range of benefits, including:
Increased confidence in their strategies.
Better understanding of the accuracy of indicator signals.
Simplified automated trading through third-party broker connections.
Reduced time to develop strategies by focusing on signal development only. No need to work with complicated strategy testing code and 3rd party automation.
█ FEATURES
Broker Connector
— Supports Autoview (More Connectors added in the future)
— Connects and auto trades with most exchanges
— No need for Webhooks (AutoView)
— Can forward test live strategies on Testnets before using real money.
Built in Backtester loaded with options to speed up backtesting
— Standard strategy features including stop loss, take profit, and various filters reduce the time and complexity involved in building a working strategy.
Trade By Trade Statistics
— Gain insight on every trade with additional trade-by-trade statistics.
Strategy Summary
— Get instant feedback on your chart of your strategies performance. Visual cues and feedback give you hints on where to look and what to improve.
Strategy Tester Enhancements
— Take the max trades allowed in the strategy tester without errors.
— Take the largest or smallest trade allowed without errors.
█ WHY?
The PSStrategyX tool was developed to solve a common problem faced by traders who use Pine Script on TradingView: the inability to integrate Pine Script with exchanges through TradingView.
Without this integration, traders need to go through several extra steps to live trade their Pine Script strategies on a real exchange with real money. This includes finding a broker, learning the new syntax for the broker, and placing that syntax correctly in the strategy.
These steps can be time-consuming and add complexity to the codebase.
The PSStrategyX tool simplifies this process by automatically configuring the correct alert syntax to connect to third-party exchanges, allowing traders to live trade their strategies with minimal setup. This saves traders time and effort, allowing them to focus on signal development rather than complicated strategy testing code and 3rd party automation.
Additionally, the tool was developed to address the time-consuming task of converting any one of the thousands of great free indicators on TradingView to strategies through hours of coding.
Overall, I built the PSStrategyX to streamline the auto trading process and make auto trading more accessible to traders of all levels.
█ HOW TO USE THIS?
Using the PSStrategyX trading tool is a straightforward process that requires a few key steps:
1 — Generate trading signals: You need a signal generator that can provide buy and sell signals for your preferred trading instrument(s).
You can use TradingView's indicators or create your own custom indicators using TradingView's Pine programming language.
2 — Connect trading signals to PSStrategyX: You will use 2 scripts on your chart. One generates buy/sell/exit signals, and the other is the PSStrategyX script executing those signals as trades.
To set this up you will need to make sure that your signal generator is an indicator, NOT a strategy.
Make sure the signals are being plotted buy = 1; sell = -1; exit = 0; signals in one plot. Exits are optional.
Example plot(buy ? 1 : sell ? -1 : exit ? 0 : na)
You will choose the plot with buy/sell/exit signals inside the PSStrategyX tool to execute trades. If you need help, check out the docs for more details.
3 — Set up the broker connector (optional): If you want to take live trades with this tool, you will need to set up a third party connecter. Once set up, everything is automated. See more details in the "authors instructions." at the bottom of this post.
4 — Set up an exchange account (optional): If you want to trade on an exchange, you will need to set up an account with the exchange you plan to use.
The Broker Connector supports a range of popular exchanges, including Binance, Bitfinex, Kraken, Oanda and more.
Once you have generated your trading signals, set up the Broker connecter (optional) and set up an exchange account (optional), you can start using the PSStrategyX trading tool to execute trades automatically based on your trading signals.
█ LIMITATIONS
Here are some important limitations to keep in mind when using the PSStrategyX trading tool:
General:
— Once the alert is sent, there is no way to monitor positions on any exchange. The order will be processed by the broker connector and sent to the exchange.
While this usually works fine, it's important to check the log for errors.
Sometimes the broker connector may fail to process the order, or the exchange may not process it for various reasons.
— The tool sends TP/SL orders with the entry order when possible to protect your order in case of errors or if you lose a connection.
However, not all exchanges accept TP/SL orders, and sometimes your entry order will be left unprotected.
FIFO:
— This tool DOES NOT support the First In First Out (FIFO) method for closing positions.
— Instead, it uses the ANY method. There currently is no way to make this variable.
█ FAQ
What does PSStrategyX do exactly?
PSStrategyX is a strategy enhancing, backtester, forwardtester, automation and simulation tool. It's NOT a signal generator, and does not produce buy/sell signals by itself. You provide buy/sell signals, and PSStrategyX will put those signals on steroids...basically.
PSStrategyX helps you figure out what indicators actually work. Without wasting time learning how to code.
Why did you choose AutoView for this tool?
AutoView offered the best integration I could find. They allow you to connect to test exchanges for free, which is great for practicing without using real money. They also work without using webhooks, which means you can live trade without paying for Tradingview pro. Additionally, AutoView supports many different exchanges. I don't work for AutoView, but if you sign up through my referral link and purchase a paid version, I earn a commission.
Why doesn't Tradingview automatically connect Pine Script to exchanges?
This is a great question, but unfortunately I don't have the answer. It would definitely be helpful if Tradingview provided this feature, but it might also put some brokers out of business.
How do I get access?
DON'T ask for access in the comments.
DO review the "Authors Instructions" on this page for details.
Autoview
Trailing Stop SnippetThis is an example snippet that should allow for adding a trailing stop and trailing stop activation to almost any script.
You can use it by setting a trailing stop alone. This will provide you standard trailing stop functionality allowing you to lock in profits and increase your stop-loss as the price moves in your direction.
You can also set the trailing stop activation to trigger the original trailing stop at a certain level. "Once price rises 5%, set a trailing stop at break even". This would be set as 5 and 5 in the settings.
myAutoviewAlertsLibrary "myAutoviewAlerts"
My Alerts Functions - To use with autoview
@returns - These functions returns a string to use in alerts to send commands to autoview. You can open an order, place a stop or take order, close an opened order or a opened position, or open a hedge position.
@param a = String - Account Identification
@param e = String - Exchange
@param s = String - Symbol
@param b = String - Book Side
@param q = Float - Quantity
@param fp = Float - Fixed Price
@param delay = Integer - In Seconds
@param i = Integer - Account Index (to multiple accounts allerts)
@param base = String - Base Currency (bitmex) - "Tether" or "Bitcoin"
@param fsl = Float - Stop Loss Limit Price
@param c = String - Close -> "order" or "position"
@param ro = Bool - Reduce Only
@param sl = Bool - Stop Loss -> bitfinex
@param t = String - Type -> "market" or "limit"
@function f_order => Open Orders
@function f_stop => Set Stop Loss Order
@function f_take => Set Take Order
@function f_closeOrder => Close Open Orders
@function f_closePosition => Close Open Positions
@function f_hedge => To Open a Hedge Position (short 100% of balance)
myAlertsLibrary "myAlerts"
My Alerts Functions - To use with autoview
f_order(_price, _qty, _position, _account, _exchange, _i, i_qtyTypeOrder, typeMsg, syminfoticker)
- Write the entry order message
Parameters:
_price : - The order price
_qty : - The order quantity
_position : - The order side
_account : - The user account
_exchange : - The user exchange
_i : - Used for multi-accounts, this represents the index of accounts
i_qtyTypeOrder : - String used to set Thether or Bitcoin Type Orders
typeMsg : - True = Autoview; False = Metatrader
syminfoticker : - Ticker
Returns: - Returns the open order message
f_stop(_stop_price, _slLimit_price, _account, _exchange, _i, i_delayOrders, typeMsg, syminfoticker)
- Write the stop order message
Parameters:
_stop_price : - The order stop price
_slLimit_price : - The order stop limit price
_account : - The user account
_exchange : - The user exchange
_i : - Used for multi-accounts, this represents the index of accounts
i_delayOrders : - Time in seconds to delay command on autoview
typeMsg : - True = Autoview; False = Metatrader
syminfoticker : - Ticker
Returns: - Returns the open order message
f_take(_take_price, _account, _exchange, _i, i_delayOrders, typeMsg, syminfoticker)
- Write the stop order message
Parameters:
_take_price : - The order stop price
_account : - The user account
_exchange : - The user exchange
_i : - Used for multi-accounts, this represents the index of accounts
i_delayOrders : - Time in seconds to delay command on autoview
typeMsg : - True = Autoview; False = Metatrader
syminfoticker : - Ticker
Returns: - Returns the open order message
f_update(_account, _exchange, _i, i_delayOrders, typeMsg, syminfoticker)
- Write the update order message
Parameters:
_account : - The user account
_exchange : - The user exchange
_i : - Used for multi-accounts, this represents the index of accounts
i_delayOrders : - Time in seconds to delay command on autoview
typeMsg : - True = Autoview; False = Metatrader
syminfoticker : - Ticker
Returns: - Returns the open order message
f_exit(_account, _exchange, _i, i_delayOrders, typeMsg, syminfoticker)
- Write the exit order message
Parameters:
_account : - The user account
_exchange : - The user exchange
_i : - Used for multi-accounts, this represents the index of accounts
i_delayOrders : - Time in seconds to delay command on autoview
typeMsg : - True = Autoview; False = Metatrader
syminfoticker : - Ticker
Returns: - Returns the open order message
f_hedge(_account, _exchange, _i, i_delayOrders, typeMsg, syminfoticker)
- Write the exit order message
Parameters:
_account : - The user account
_exchange : - The user exchange
_i : - Used for multi-accounts, this represents the index of accounts
i_delayOrders : - Time in seconds to delay command on autoview
typeMsg : - True = Autoview; False = Metatrader
syminfoticker : - Ticker
Returns: - Returns the open order message
3LS | 3 Line Strike Strategy [Kintsugi Trading]What is the 3LS | 3 Line Strike Strategy?
Incorporating the 3 Line Strike candlestick pattern into our strategy was inspired by Arty at The Moving Average and the amazing traders at TheTrdFloor .
The Three Line Strike is a trend continuation candlestick pattern consisting of four candles. Depending on their heights and collocation, a bullish or a bearish trend continuation can be predicted.
In a symphony of trend analysis, price action, and volume we can find and place high-probability trades with the 3LS Strategy.
How to use it!
----- First, start by choosing a Stop-Loss Strategy, Stop PIP Size, and Risk/Reward Ratio -----
- Stop-Loss Strategy
Fixed PIP Size – This uses the top/bottom of the indicator candle and places a TP based on the chosen Risk:Reward ratio.
ATR Trail (No set Target Profit, only uses ATR Stop)
ATR Trail-Stop (Has set Target Profit, however, stop is based on ATR inputs)
**If you choose an ATR Stop-Loss Strategy - input the desired ATR period and Multiple you would like the stop to be calculated at**
**ATR Stop-Loss Strategies have a unique alert setup for Auto-Trading. See Auto-Trading Section**
- Risk/Reward Ratio = If you have a .5 risk/reward, it means you are risking $100 to make $50.
- Additional Stop PIP Size = Number of PIPs over the default stop location of the top or bottom of the indicator candle.
----- Next, we set the Session Filter -----
Set the Timezone and Trade Session you desire. If no specific session is desired, simply set the Trade Session to 00:00 - 00:00.
----- Next, we set the Moving Average Cloud Fill -----
Enter the Fast and Slow Moving Average Length used to calculate trend direction:
MA Period Fast
MA Period Slow
These inputs will determine whether the strategy looks for Long or Short positions.
----- Next, we set the VSA – Volume Spread Analysis Settings -----
Check the box to show the indicator at the bottom of the chart if desired.
This is just a different visual output of the VSA | Volume Spread Analysis indicator available for free under the community indicators tab. You can add that indicator to your chart and see the same output in candle format.
In combination with the Moving Average Cloud, the Volume Spread Analysis will help us determine when to take a trade and in what direction.
The strategy is essentially looking for small reversals going against the overall trend and placing a trade once that reversal ends and the price moves back in the direction of the overall trend.
The 3LS Strategy utilizes confirmation between trend, volume, and price action to place high probability trades.
The VSA is completely customizable by:
Moving Average Length
MA-1 Multiplier
MA-2 Multiplier
MA-3 Multiplier
Check out the VSA | Volume Spread Analysis indicator in the community scripts section under the indicators tab to use this awesome resource on other strategies.
----- Next, we have the option to view the automated KT Bull/Bear Signals -----
Check the boxes to show the buy-sell signal on the chart if desired.
----- Next, we set the risk we want to use if Auto Trading the strategy -----
I always suggest using no more than 1-3% of your total account balance per trade. Remember, if you have multiple strategies triggering per day with each using 1%, the total percent at risk will be much larger.
For Example – if you have 10 strategies each risking 1% your total risk is 10% of your account, not 1%! Be mindful to only use 1-3% of your total account balance across all strategies, not just each individual one.
----- Finally, we backtest our ideas -----
After using the 'Strategy Tester' tab on TradingView to thoroughly backtest your predictions you are ready to take it to the next level - Automated Trading!
This was my whole reason for creating the script. If you work a full-time job, live in a time zone that is hard to trade, or just don't have the patience, this will be a game-changer for you as it was for me.
Auto-Trading
When it comes to auto-trading this strategy I have included two options in the script that utilize the alert messages generated by TradingView.
*Note: Please trade on a demo account until you feel comfortable enough to use real money, and then please stick to 1%-2% of your total account value in risk per trade.*
AutoView
PineConnector
**ATR Auto-Trading Alert Setup**
How to create alerts on 3 Line Strike Strategy
For Trailing Stops:
1) Adjust autoview/pineconnector settings
2) Click "add alert"
3) Select "Condition" = Strategy Name
4) Select "Order Fills Only" from the drop-down
3) Remove template message text from "message" box and place the exact text. '{{strategy.order.alert_message}}'
4) Click "create"
For Fixed Pip Stop:
1) Adjust autoview/pineconnector settings
2) Click "add alert"
3) Select "Condition" = Strategy Name
4) Select "alert() function calls only"
5) I like to title my Alert Name the same thing I named it as an Indicator Template to keep track
Good luck with your trading!
VSA | Volume Spread Analysis [Kintsugi Trading]What is the VSA | Volume Spread Analysis Indicator?
I created this premium volume indicator to find and place high probability forex trades as a part of the Kintsugi Trading 3LS | 3 Line Strike Strategy .
Originally developed by Tom Williams who is considered the father of Volume Spread Analysis, this tool is an amazing indicator and would make a great addition to any trading strategy.
You are free to customize all the inputs:
• 30 | Moving Average-1 Multiplier (Average Volume)
• 0.5 | Moving Average-1 Multiplier (Below Average Volume)
• 1.5 | Moving Average-2 Multiplier (High Volume)
• 3.0 | Moving Average-3 Multiplier (Ultra High Volume)
**Note The default inputs are based on my research and analysis.
Components of The Volume Spread Analysis:
1. The Volume (i.e. activity)
2. The Spread (i.e. range of the price bar)
3. The Close (the closing price of the current bar)
Volume: Volume is the activity of the frequency of transaction of the price change during a specified period of time.
Spread: Spread is the difference between opening and closing price.
Close: Close price tells us where the balance point is at the end of the period.
At Kintsugi Trading we strongly believe that we cannot beat or outperform institutional traders, instead, we have to trade along with them. With that in mind, we follow the footprints of smart players who leave behind trails.
I have designed this indicator so that it is capable of giving signals for all the phenomena explained in Tom William's book.
This Indicator is successful at visualizing the following phenomenon:
• Trapped Buyers
• Trapped Sellers
• Stopping Volume (long)
• Buying Climax
• Selling Climax
Good luck with your trading!
BEST Strategy Template AutoviewHello Traders
I've build a strategy template building for you the AUTOVIEW commands
I made this template based on this documentation: use.autoview.with.pink
You can select whether you want to use an SL or not, a TP or not, using the borrow/repay feature (only for Binance), ... and it will build dynamically the Autoview commands and will send them when entry/exit alerts trigger.
The template accept SL/TP in percentage or pips/USD distance from the entry price
MAGICAL !!!! (not really, just some dumb coding)
Users will have to specify from the settings:
- the Autoview account name
- the symbol name: I couldn't capture it from the chart because sometimes the symbol name on the broker side is different than the one from the TradingView side
- the position size
- the broker name (Tradovate, Binance, Bitmex, FTX, ...)
- if you want to send the alerts to your DEMO or LIVE account
- a debug mode to check if your alerts are well formatted
- and a few other interesting options...
If you want to use it, you'll have to update the dummy entries logic lines 97-98 and replacing those two lines by your own stuff
I'll make the ProfitView and 3Commas and Alertatron versions shortly.
Basically the same script but with the commands built for those 3 automation third-parties.
Best regards
Dave
The Impossible TraderTHE IMPOSSIBLE TRADER
A simple, but effective High Freq Strategy script based on MACD or RSI trend, with extra customizable Alert Messages for Bots.
WHAT IT DOES
This script (works best at lower TimeFrames) just follow the trend of MACD or RSI on your asset.
Why it should work? Because in an upper trend, there are more chance of green candles than reds. And in dump trend there are more chance of red candles than greens.
While trend is positive, it will try to open Long orders as fast as possible at market price.
While trend is negative, it will try to open Short orders as fast as possible at market price.
HOW TO SETUP YOUR PREFERENCES
Capital : Insert a % of Margin you want to use for your positions (usually 30% is quite good)
Leverage : Choose leverage based on your plans
Trail Tick @ : This value (in Tick) tell the script "when" the "Trail Stop" order must be activated (from the Entry price)
Offset Tick @ : This is the price (in Tick) from the Trail Stop Price activated. Basically it is a Stop Loss that follow the price at a fixed distance.
SL Tick @ : Set a Stop Loss at amount Tick distance from the Entry Price. (Let's call it a Safety Stop Loss for bad decisions...)
TP Tick @ : Set a Take Profit at amount Tick distance from the Entry Price. Sometimes is better to exit in full Gain than keep positions.
Strategy : You can choose a Only Long, Only Short or Long+Short sametime strategy.
with MACD or RSI : You can try the strategy applied on MACD or applied on customizable RSI EMA
EMA : If you choosed RSI EMA, you can set any value for your testing (usually 80-120 works very nice)
Exit order after bars : Some Exchanges / Brokers apply fixed cost, and a strategy too fast could not be productive. This set will let you to delay the Exit Order on already Opened positions.
Keep Stop Loss active : If you are planning a delay for Exit Orders, sometime could be useful to keep activated Stop Loss.
Strategy Preset : Some preset I've found interesting, with good results.
BackTest Days : If there are too many results and script doesn't work, you can choose a closer range to show results.
EXTRA FEATURES
On Screen Display : OSD will show you some realtime stats about your strategy, like Asset Tick, Trading Period Range, Drawdown, Gains and not closed trade.
Alert Message : You can enter custom Long Entry/Exit and Short Entry/Exit message for your Bots (like AutoView, WunderBit, etc...). When alert is triggered, you can send custom message with {{strategy.order.comment}} in the text field
AutoView Alert Message : If you are user of AutoView, you can generate your calls. Those are tested only on Oanda with index like Sp500, US100, Us30.
TIPS ON USE
Some asset on TradingView require an higher initial capital. Go to this Script Settings -> Properties and rise Initial Capital.
Be aware of commissions and spread when evalutating a strategy. Go to this Script Settings -> Properties and set Commission and Slippage
Trail Stop and Ticks could be difficult to understand, but very profitable. Please take your time and study how it works.
Consider Tick like the minimum movement your asset can do. Ticks occurs "intra-bar", so some of your positions could be closed almost instantly.
Consider Trail Stop like a Stop Loss that keep always the same distance from your positions, but never came back . If you are in gain, say of 10 Ticks, and your Trail have 5 Ticks, this means for sure a close at minimum 5 Ticks from Entry Price.
On Screen Display will show you Ticks for your asset. This will help you on strategy settings, because not all asset responds on the same way.
ONLY LONG EXAMPLE
ONLY SHORT EXAMPLE
StochRSI + MA Strategy [Kintsugi Trading]What is the StochRSI + MA Strategy?
This premium indicator was inspired by my desire to find and place high probability forex trades in any market, direction, or time of day.
Why Forex?
The Forex markets operate 24 hours, 5.5 days a week
Access to meaningful leverage
Ability to easily trade long or short
High liquidity
How to use it!
----- First, start by choosing a Stop-Loss Strategy, Stop PIP Size, and Risk/Reward Ratio -----
- Stop-Loss Strategy
ATR Trail (No set Target Profit, only uses ATR Stop)
ATR Trail-Stop (Has set Target Profit, however, stop is based on ATR inputs)
Fixed PIP Size
**If you choose an ATR Stop-Loss Strategy - input the desired ATR period and Multiple you would like the stop to be calculated at**
**ATR Stop-Loss Strategies have a unique alert setup for Auto-Trading. See Auto-Trading Section**
- Stop PIP Size = How many PIPs will be representative of the max risk. i.e. - if you are risking $100 and you set the PIP stop to 10, that means 10 PIPs = $100.
- Risk/Reward Ratio = If you have a .5 risk/reward, it means you are risking $100 to make $50.
----- Next, we set the Session Filter. -----
Set the Timezone and Trade Session you desire. If no specific session is desired, simply set the Trade Session to 00:00 - 00:00.
----- Next, we set the Moving Average Cloud. -----
Enter the Moving Average Type:
Simple Moving Average
Exponential Moving Average
Hull Moving Average
Weighted Moving Average
Smoothed Moving Average
Double Exponential Moving Average
Triple Exponential Moving Average
Enter the fast, medium, and slow Moving Average Period you would like the Strategy to use. If you would like like to use (2) Moving Averages, simply set two of the Periods the same.
These inputs will determine whether the strategy looks for Long or Short positions.
**Boxes on the left of the fast, medium, and slow Moving Average Periods**
If you check any of these boxes, the strategy will ignore and set up where the price is trading below the checked moving average.
----- Next, we set the Stochastic RSI Parameters. -----
In combination with the Moving Average Cloud, the Stochastic RSI will help us determine when to take a trade and in what direction.
The strategy is essentially looking for small reversals going against the overall trend and placing a trade once that reversal ends and the price moves back in the direction of the overall trend.
The Stochastic RSI + MA Strategy utilizes confirmation between extreme RSI calculations and the overall trend as measured by (3) separate Moving Averages.
The Stochastic RSI is completely customizable by:
Long Entry Bar Cross Below
Short Entry Bar Cross Above
K
D
RSI Length
Stochastic Length
RSI Source
----- Finally, we backtest our ideas. -----
After using the 'Strategy Tester' tab on TradingView to thoroughly backtest your predictions you are ready to take it to the next level - Automated Trading!
This was my whole reason for creating the script. If you work a full-time job, live in a time zone that is hard to trade, or just don't have the patience, this will be a game-changer for you as it was for me.
Auto-Trading
When it comes to auto-trading this strategy I have included two options in the script that utilize the alert messages generated by TradingView.
*Note: Please trade on a demo account until you feel comfortable enough to use real money, and then please stick to 1%-2% of your total account value in risk per trade.*
AutoView
PineConnector
**ATR Auto-Trading Alert Setup**
How to create alerts on Stoch+MA Strategy
For Trailing Stops:
1) Adjust autoview/pineconnector settings
2) Click "add alert"
3) Select "Condition" = Strategy Name
4) Select "Order Fills Only" from the drop-down
3) Remove template message text from "message" box and place exact text. {{strategy.order.alert_message}}
4) Click "create"
For Fixed Pip Stop:
1) Adjust autoview/pineconnector settings
2) Click "add alert"
3) Select "Condition" = Strategy Name
4) Select "alert() function calls only"
5) I like to title my Alert Name the same thing I named it as an Indicator Template to keep track
Good luck with your trading!
3SMMA + Fractal Strategy [Kintsugi Trading]What is the 3SMMA + Fractal Strategy?
This premium indicator was inspired by my desire to find and place high probability forex trades in any market, direction, or time of day.
Why Forex?
The Forex markets operate 24 hours, 5.5 days a week
Access to meaningful leverage
Ability to easily trade long or short
High liquidity
How to use it!
----- First, start by choosing Breakout Additional PIP Size, Stop Additional PIP Size, and Target Profit (TP) PIP Size. -----
- Breakout Additional PIP Size = Additional PIPs beyond the default strategy entry point.
- Stop Additional PIP Size = The default stop is above/below the signal candle, depending on trade direction. This input allows the user to target more or less PIPs as a stopping-out point.
- Target Profit (TP) PIP Size = Number of PIPs set at a target profit.
----- Next, we set the Session Filter. -----
Set the Timezone and Trade Session you desire. If no specific session is desired, simply leave the box unchecked.
----- Next, we set the Length of the 3 Smoothed Moving Averages. -----
Enter the Desired Moving Average Length:
Length 1 - Source
Length 2 - Source
Length 3 - Source
These inputs will determine whether the strategy looks for Long or Short positions.
----- Next, we set the Fractal Periods. -----
This user input re-programs the strategy to only allow for 'n' number of lower or higher candles on either side of a fractal signal.
For example: If the user inputs "5" for the number of Periods, Fractal indicator signals will only appear on candles with "5" candles higher or lower on both sides of the signal candle.
In combination with the 3 Smoothed Moving Averages, the Fractal signals help us determine when to take a trade and in what direction.
The strategy is essentially looking for trades going with the overall trend and placing potential trades after a low has been reached and is re-tested in the overall trend direction.
----- Finally, we backtest our ideas. -----
After using the 'Strategy Tester' tab on TradingView to thoroughly backtest your predictions you are ready to take it to the next level - Automated Trading!
This was my whole reason for creating the script. If you work a full-time job, live in a time zone that is hard to trade, or just don't have the patience, this will be a game-changer for you as it was for me.
Auto-Trading
When it comes to auto-trading this strategy I have included two options in the script that utilize the alert messages generated by TradingView.
*Note: Please trade on a demo account until you feel comfortable enough to use real money, and then please stick to 1%-2% of your total account value in risk per trade.*
AutoView
PineConnector
Good luck with your trading!
Range Filter + MA Strategy [Kintsugi Trading]What is the Range Filter + MA Strategy?
This premium indicator was inspired by my desire to find and place high probability forex trades in any market, direction, or time of day.
Why Forex?
The Forex markets operate 24 hours, 5.5 days a week
Access to meaningful leverage
Ability to easily trade long or short
High liquidity
How to use it!
----- First, start by choosing a Risk/Reward Ratio and Stop PIP Size. -----
- Risk/Reward Ratio = If you have a .5 risk/reward, it means you are risking $100 to make $50.
- Stop PIP Size = How many PIPs will be representative of the max risk. i.e. - if you are risking $100 and you set the PIP stop to 10, that means 10 PIPs = $100.
----- Next, we set the Session Filter. -----
Set the Timezone and Trade Session you desire. If no specific session is desired, simply leave the box unchecked.
----- Next, we set the Moving Average Cloud. -----
Enter the Moving Average Type:
Simple Moving Average
Exponential Moving Average
Hull Moving Average
Weighted Moving Average
Smoothed Moving Average
Enter the fast and slow Moving Average Period.
These inputs will determine whether the strategy looks for Long or Short positions.
----- Next, we set the Range Filters. -----
In combination with the Moving Average Cloud, the Range Filter will help us determine when to take a trade and in what direction.
The strategy is essentially looking for small reversals going against the overall trend and placing a trade once that reversal ends and the price moves back in the direction of the overall trend.
The Range filter utilizes confirmation between two entirely separate Range Filter calculations (or set them both equal to use one).
Each Range Filter is completely customizable by:
Source Calculation (open, high, low, close, hl2, hlc3, ohlc4, hlcc4)
Sampling Period
Range Multiplier
----- Finally, we backtest our ideas. -----
After using the 'Strategy Tester' tab on TradingView to thoroughly backtest your predictions you are ready to take it to the next level - Automated Trading!
This was my whole reason for creating the script. If you work a full-time job, live in a time zone that is hard to trade, or just don't have the patience, this will be a game-changer for you as it was for me.
Auto-Trading
When it comes to auto-trading this strategy I have included two options in the script that utilize the alert messages generated by TradingView.
*Note: Please trade on a demo account until you feel comfortable enough to use real money, and then please stick to 1%-2% of your total account value in risk per trade.*
AutoView
PineConnector
Good luck with your trading!
Session Breakout Strategy [Kintsugi Trading]What is Session Breakout Strategy?
This premium indicator was inspired by my desire to find and place high probability forex trades in any market, direction, or time of day.
Why Forex?
The Forex markets operate 24 hours, 5.5 days a week
Access to meaningful leverage
Ability to easily trade long or short
High liquidity
How to use it!
----- First, start by choosing a Range Session and Trade Session. -----
- Range Session = Period of time you believe will be predictive of future price action. I like to overlay 'FX Market Sessions' by boitoki to target timeframes in which forex market sessions overlap. This period is indicative of buyers and sellers battling it out in an effort to choose a direction.
- Trade Session = Period of time you believe the price will act on the information gathered from the range session.
----- Next, we filter the Range Session by information that will help further predict price movement in the Trade Session. -----
Our tools are:
Moving Average Filter
Average RSI Filter
RSI Decision Level
None
Each parameter is customizable.
----- Next, we set our risk. -----
Enter the "stop pip size' you desire.
Enter the 'target profit pip size' you desire.
We can set out ($) dollar risk-per-trade in the inputs. The script does not know your actual account balance, so if you want to risk $100/trade you would enter '$10,000' in the account balance section and '1' in the Risk Per Trade% section.
For example, an '8' stop and an '8' tp would indicate a 1:1 risk-reward. *Note - although you may generate a higher win percent with a less favorable RR, it is rarely worth it.
----- Finally, we backtest our ideas. -----
After using the 'Strategy Tester' tab to thoroughly backtest your predictions you are ready to take it to the next level - Automated Trading!
This was my whole reason for creating the script. If you work a full-time job, live in a time zone that is hard to trade, or just don't have the patience, this will be a game-changer for you as it was for me.
Auto-Trading
When it comes to auto-trading this strategy I have included two options in the script that utilize the alert messages generated by TradingView.
*Note: Please trade on a demo account until you feel comfortable enough to use real money, and then please stick to 1%-2% of your total account value in risk per trade.*
AutoView
PineConnector
Good luck with your trading!
Holyscalp v.3 A MACD 15 min trading strategy,
I set two macd trends that must match in trend direction to be traded,
along with that they must follow the moving average trend set in place
the trades trigger with an atr stop loss indicator "atr+" by zedartoftrading to be exact
It automates fully through autoview/oanda broker
the ma breach settings look back however many bars set in place and see if the bars are closing in opposite trend to the moving average
*TIP get another chart with same forex pair and take and change the candle sticks to heikin candles and set chart to 1D and trade only with that trend for the 15min settings, you can disable short trades by setting the threshold limit to 1 and to disable long trades set threshold to -1
Dec 31, 2021
Release Notes: for my use only
an hour ago
Release Notes: It trades based on these parameters I set in place.
1. The long term macd trend and the short term macd trend must match
2. The atr+ can not be more than 3x the previous atr.
3. It must trade with the trend set in place, I have two moving averages to choose from, to disable the second moving average set it to 1.
4. Don't touch the hammer and star fib level leave at zero, need to code that separately
5. the MA breach looks back a certain amount of bars to try and stop trading while its consolidating. I set at 1:0
an hour ago
Release Notes: Just updated the default settings, Remember they are set for optimization for 15mins but the same rules and parameters still apply to longer time frames, just change the moving averages to your liking if you want to move up timeframes.
MyTradePartnerMyTradePartner strategy makes the cryptocurrency markets buy and sell automatically. 5 stoploss, fixed profit take and stoploss level can be customized from strategy settings. There are 4 separate strategies that you can set in the strategy. First of them, there are strategies that decide long and short positions in accordance with your settings at the pivot levels, second of the super trend, third of the potential return levels, third of the up and down breaks. Pyramiding can offer multiple entry points. Strategy back tests can be adjusted to the desired time period and can be used as spot or term if desired. Frostybot is set to work fully compatible with js when the necessary inputs are made from these strategy settings. When installing an alarm for FROSTYBOT JS, the alarm message field is {{strategy.order.alert_message}}.
FEATURES:
-Fully compatibly with Frostybot
-High Percent Profitable strategy up to %60
-İnclude five level Trailing Stoploss, fixed stoploss and takeprofit with position size management
-include four strategy mentably in one strategy use one, use two or both
-All settings are customizable. Create your unique strategy with settings.
Companion::InsurgentCompanion::Insurgent is a combined indicators strategy. Performances are pretty good on 1D, 4H and 1H timeframes and it can be used on Bitcoin and Altcoin markets.
Mainly, it is a trategy based on Ehlers formulas.
Used indicators:
- Ehlers Instantaneous Trend: trendline analysis;
- Ehlers Super Bandpass Filter: momentum detection;
- EMA: Long/Short time selector.
What the script does:
- determines trendlines combining mulitple indicators;
- automaticlally calculates Take profit and Stop Loss levels;
- permits automation generating Autoview signals (create an alert with {{strategy.order.alert_message}} in message text field to trap Autoview commands;
- supports for margin trading. Spot trading will be added in the future.
BACKTESTING
Backtest is not leveraged. Defaults are set as follow:
Capital: 10000
Percent of equity used for trades: 10%
Commission: 0.18% this is Bitfinex commission on orders
Change them accordingly on how you trade to get a more realistic backtest results.
Companion::DivergentCompanion::Divergent is a combined indicators strategy optimized for Bitcoin Markets and tested on Bitfinex.
Mainly, it is an Ichimoku based strategy.
Used indicators:
- Ichimoku (displayed on chart): trendline analysis;
- Double Hull MA (displayed on chart): trendline analysis;
- MACD (not displayed): confirmative/momentum detection;
- CCI (not displayed): confirmative/momentum detection;
- ATR: used toghether with Ichimoku to determine Stop Loss/Take Profit levels;
- VWMA: For implementing trailing stop orders based on volumes.
What the script does:
- determines trendlines combining mulitple indicators;
- automaticlally calculates Take profit and Stop Loss levels;
- permits automation generating Autoview signals;
- supports for margin trading. Spot trading will be added in the future.
It can be used on 1D or 1H timeframes but it can be adapted for other time frames tweaking the parameters. I used it a lot on Bitfinex on 1H timeframes. Please check parameters: if you will use the strategy on D or higher timeframes, the "Legacy Chikou analysis" option should be checked.
BACKTESTING
Backtest is not leveraged. Defaults are set as follow:
Capital: 10000
Percent of equity used for trades: 10%
Commission: 0.18% this is Bitfinex commission on orders
Change them accordingly on how you trade to get a more realistic backtest results.
Olivia Scalp - By CheTrader
This is a complex strategy for Scalp that is fully configurable and can be automated
This script uses a combination of ma to detect the trend at a higher time frame, which can be defined by the user, as default set to 1D and 1M.
Triggers for long and short are given in a lower time frame, for example 30 minutes and are given by a combination of factors and oscillators. These include RSI, ADX, DMI
The script includes everything needed to follow the trade according to the habits of the trader.
This includes the option to use Take profit and Stop loss based on ATR that you can configure with the RR you like.
Similar to the risk-reward tool in tradingview.
You can also define a stop and take profit based on a percentage from the entry and also use a Trail stop, to finish the position when it is reached.
Each take profit and stop loss has a customized alarm so you can automate each action.
Also included is the option to use "advanced alerts"!
This is: You define how many seconds before you close the candle the alarm will be activated in TradingView. Very useful if you are going to automate, so that your alarm arrives just in time to your exchange.
Included:
Different trade entry options
Different forms of Take profit, included:
Take profit on squeeze candles
Take profit based on Risk-Benefit (RR)
Take profit a pre-determined %.
Different forms of Stop Loss, including
ATR-based stop loss
Trail stop loss (with option to use a trigger)
Stop loss a pre-determined %.
Contains a Risk Management section
May use a volatility filter
Statistics panel for backtest
Advanced alerts
As default is configured for BYBIT:BTCUSD 30 minutes
For access you can send a message or consult in my social networks.
Links in my tradingview signature (below).
lineAlertslineAlerts is a powerful tool to define Buys, Sells and Buy-Sell lines for repeating actions.
The possibilities vary from 1 Buy and/or Sell to repetitive Buying and Selling at definable lines from a specified point in time (Year, Month, Day and Hour to begin).
lineAlerts provides:
+ optional StartBuy and optional EndSell
+ in repeat mode: optional definable ending-action (Buy or Sell, which overwrites Stop-Out/Abort)
+ buy- and sell Lines can be angled separately by using non-zero entries in the Angle %perDay parameter
+ configurable Stop Loss (Percentage, Stop-Out/Abort-Only, Flat or Angled like Buy-Sell-Lines)
+ profit calculation and effective alerts can be set further than the beginning time (ActiveAfter#Hours)
+ empty-bar-correction for lower-liquidity pairs on short timescales (automatically on)
+ optional visual extension to the right for currently active buy-sell lines
+ Slippage Max. Percentage parameter, added to order price for Buying, subtracted for Selling
(represented in the Buy-Sell markings and LastPrice lines, also calculated in Profit/Loss percentages)
+ Full Autoview Alerts automation in the Order parameters (for spot trading, this can be replaced with
your own API commands while creating or modifying the TradingView alerts):
- Separate order size entries for Buying and Selling
- Choice between Percentage or absolute Amount for both Buying and Selling
(choose the corresponding alert-drop-down option when creating an alert!)
The timeframe for running lineAlerts depends on the scale (duration) of the defined pattern.
Running on a very small resolution, e.g. 1-5 Min, is suitable for a pattern of a few days to a week at most.
This is because of the limited available historic data. Keeping your pattern lines shorter than a week on these micro-timeframes will produce accurate results/output. A pattern which may last a few weeks or even months can run flawlessly on a 1H resolution for example.
"Once per bar" is the best alert option in any case. To avoid multiple signals within 1 bar in highly volatile times, it is better to create the alert on the 1 or 4 Hour chart in stead of the daily chart for a pattern of multiple weeks for example.
lineAlerts is suitable for any timeframe on any chart which is open 24/7, like most crypto currencies.
My other published indicators contain a handy combination of new and classical indicators and oscillators.
With lineAlerts, the one defining the lines is in complete control. Results might indicate how good one is at defining trade patterns and at defining suitable stop losses, but lineAlerts is not an indicator as such.
lineAlerts is more something like a visually definable price-line alerter with various stop loss and ending options. There will be a video available with some more explaining.
WARNING:
Note that if an Autoview extension is active for the charted exchange and the according TradingView alerts are activated, it works right out of the box, so make sure to have all order decimals right...
GuidoN - December 2019, July 2020
888 BOT #alerts█ 888 BOT #alerts
This is an Expert Advisor 'EA' or Automated trading script for ‘longs’ and ‘shorts’, which uses only a Take Profit or, in the worst case, a Stop Loss to close the trade.
It's a much improved version of the previous ‘Repanocha’. It doesn`t use 'Trailing Stop' or 'security ()' functions (although using a security function doesn`t mean that the script repaints) and all signals are confirmed, therefore the script doesn`t repaint in alert mode and is accurate in backtest mode.
Apart from the previous indicators, some more and other functions have been added for Stop-Loss, re-entry and leverage.
It uses 8 indicators, (many of you already know what they are, but in case there is someone new), these are the following:
1. Jurik Moving Average
It's a moving average created by Mark Jurik for professionals which eliminates the 'lag' or delay of the signal. It's better than other moving averages like EMA, DEMA, AMA or T3.
There are two ways to decrease noise using JMA. Increasing the 'LENGTH' parameter will cause JMA to move more slowly and therefore reduce noise at the expense of adding 'lag'
The 'JMA LENGTH', 'PHASE' and 'POWER' parameters offer a way to select the optimal balance between 'lag' and over boost.
Green: Bullish, Red: Bearish.
2. Range filter
Created by Donovan Wall, its function is to filter or eliminate noise and to better determine the price trend in the short term.
First, a uniform average price range 'SAMPLING PERIOD' is calculated for the filter base and multiplied by a specific quantity 'RANGE MULTIPLIER'.
The filter is then calculated by adjusting price movements that do not exceed the specified range.
Finally, the target ranges are plotted to show the prices that will trigger the filter movement.
Green: Bullish, Red: Bearish.
3. Average Directional Index (ADX Classic) and (ADX Masanakamura)
It's an indicator designed by Welles Wilder to measure the strength and direction of the market trend. The price movement is strong when the ADX has a positive slope and is above a certain minimum level 'ADX THRESHOLD' and for a given period 'ADX LENGTH'.
The green color of the bars indicates that the trend is bullish and that the ADX is above the level established by the threshold.
The red color of the bars indicates that the trend is down and that the ADX is above the threshold level.
The orange color of the bars indicates that the price is not strong and will surely lateralize.
You can choose between the classic option and the one created by a certain 'Masanakamura'. The main difference between the two is that in the first it uses RMA () and in the second SMA () in its calculation.
4. Parabolic SAR
This indicator, also created by Welles Wilder, places points that help define a trend. The Parabolic SAR can follow the price above or below, the peculiarity that it offers is that when the price touches the indicator, it jumps to the other side of the price (if the Parabolic SAR was below the price it jumps up and vice versa) to a distance predetermined by the indicator. At this time the indicator continues to follow the price, reducing the distance with each candle until it is finally touched again by the price and the process starts again. This procedure explains the name of the indicator: the Parabolic SAR follows the price generating a characteristic parabolic shape, when the price touches it, stops and turns (SAR is the acronym for 'stop and reverse'), giving rise to a new cycle. When the points are below the price, the trend is up, while the points above the price indicate a downward trend.
5. RSI with Volume
This indicator was created by LazyBear from the popular RSI.
The RSI is an oscillator-type indicator used in technical analysis and also created by Welles Wilder that shows the strength of the price by comparing individual movements up or down in successive closing prices.
LazyBear added a volume parameter that makes it more accurate to the market movement.
A good way to use RSI is by considering the 50 'RSI CENTER LINE' centerline. When the oscillator is above, the trend is bullish and when it is below, the trend is bearish.
6. Moving Average Convergence Divergence (MACD) and (MAC-Z)
It was created by Gerald Appel. Subsequently, the histogram was added to anticipate the crossing of MA. Broadly speaking, we can say that the MACD is an oscillator consisting of two moving averages that rotate around the zero line. The MACD line is the difference between a short moving average 'MACD FAST MA LENGTH' and a long moving average 'MACD SLOW MA LENGTH'. It's an indicator that allows us to have a reference on the trend of the asset on which it is operating, thus generating market entry and exit signals.
We can talk about a bull market when the MACD histogram is above the zero line, along with the signal line, while we are talking about a bear market when the MACD histogram is below the zero line.
There is the option of using the MAC-Z indicator created by LazyBear, which according to its author is more effective, by using the parameter VWAP (volume weighted average price) 'Z-VWAP LENGTH' together with a standard deviation 'STDEV LENGTH' in its calculation.
7. Volume Condition
Volume indicates the number of participants in this war between bulls and bears, the more volume the more likely the price will move in favor of the trend. A low trading volume indicates a lower number of participants and interest in the instrument in question. Low volumes may reveal weakness behind a price movement.
With this condition, those signals whose volume is less than the volume SMA for a period 'SMA VOLUME LENGTH' multiplied by a factor 'VOLUME FACTOR' are filtered. In addition, it determines the leverage used, the more volume, the more participants, the more probability that the price will move in our favor, that is, we can use more leverage. The leverage in this script is determined by how many times the volume is above the SMA line.
The maximum leverage is 8.
8. Bollinger Bands
This indicator was created by John Bollinger and consists of three bands that are drawn superimposed on the price evolution graph.
The central band is a moving average, normally a simple moving average calculated with 20 periods is used. ('BB LENGTH' Number of periods of the moving average)
The upper band is calculated by adding the value of the simple moving average X times the standard deviation of the moving average. ('BB MULTIPLIER' Number of times the standard deviation of the moving average)
The lower band is calculated by subtracting the simple moving average X times the standard deviation of the moving average.
the band between the upper and lower bands contains, statistically, almost 90% of the possible price variations, which means that any movement of the price outside the bands has special relevance.
In practical terms, Bollinger bands behave as if they were an elastic band so that, if the price touches them, it has a high probability of bouncing.
Sometimes, after the entry order is filled, the price is returned to the opposite side. If price touch the Bollinger band in the same previous conditions, another order is filled in the same direction of the position to improve the average entry price, (% MINIMUM BETTER PRICE ': Minimum price for the re-entry to be executed and that is better than the price of the previous position in a given %) in this way we give the trade a chance that the Take Profit is executed before. The downside is that the position is doubled in size. 'ACTIVATE DIVIDE TP': Divide the size of the TP in half. More probability of the trade closing but less profit.
█ STOP LOSS and RISK MANAGEMENT.
A good risk management is what can make your equity go up or be liquidated.
The % risk is the percentage of our capital that we are willing to lose by operation. This is recommended to be between 1-5%.
% Risk: (% Stop Loss x % Equity per trade x Leverage) / 100
First the strategy is calculated with Stop Loss, then the risk per operation is determined and from there, the amount per operation is calculated and not vice versa.
In this script you can use a normal Stop Loss or one according to the ATR. Also activate the option to trigger it earlier if the risk percentage is reached. '% RISK ALLOWED' wich is calculated according with: '%EQUITY ON EACH ENTRY'. Only works with Stop Loss on 'NORMAL' or 'BOTH' mode.
'STOP LOSS CONFIRMED': The Stop Loss is only activated if the closing of the previous bar is in the loss limit condition. It's useful to prevent the SL from triggering when they do a ‘pump’ to sweep Stops and then return the price to the previous state.
█ ALERTS
There is an alert for each leverage, therefore a maximum of 8 alerts can be set for 'long' and 8 for 'short', plus an alert to close the trade with Take Profit or Stop Loss in market mode. You can also place Take Profit limit and Stop Loss limit orders a few seconds after filling the position entry order.
- 'MAXIMUM LEVERAGE': It is the maximum allowed multiplier of the % quantity entered on each entry for 1X according to the volume condition.
- 'ADVANCE ALERTS': There is always a time delay from when the alert is triggered until it reaches the exchange and can be between 1-15 seconds. With this parameter, you can advance the alert by the necessary seconds to activate it earlier. In this way it can be synchronized with the exchange so that the execution time of the entry order to the position coincides with the opening of the bar.
The settings are for Bitcoin at Binance Futures (BTC: USDTPERP) in 30 minutes.
For other pairs and other timeframes, the settings have to be adjusted again. And within a month, the settings will be different because we all know the market and the trend are changing.
█ 888 BOT (SPANISH)
Este es un Expert Advisor 'EA' o script de trading automatizado para ‘longs’ y ‘shorts’, el cual, utiliza solo un Take Profit o, en el peor de los casos, un Stop Loss para cerrar el trade.
Es una versión muy mejorada del anterior ‘Repanocha’. No utiliza ‘Trailing Stop’, ni funciones ‘security()’ (aunque usar una función security no significa que el script repinte) y todas las señales son confirmadas, por consiguiente, el script no repinta en modo alertas y es preciso en en el modo backtest.
Aparte de los anteriores indicadores se han añadido algunos más y otras funciones para Stop-Loss, de re-entrada y apalancamiento.
Utiliza 8 indicadores, (muchos ya sabéis sobradamente lo que son, pero por si hay alguien nuevo), son los siguientes:
1. Jurik Moving Average
Es una media móvil creada por Mark Jurik para profesionales la cual elimina el ‘lag’ o retardo de la señal. Es mejor que otras medias móviles como la EMA, DEMA, AMA o T3.
Hay dos formas de disminuir el ruido utilizando JMA. El aumento del parámetro 'LENGTH' hará que JMA se mueva más lentamente y, por lo tanto, reducirá el ruido a expensas de añadir ‘lag’
Los parámetros 'JMA LENGTH', 'PHASE' y 'POWER' ofrecen una forma de seleccionar el equilibrio óptimo entre ‘lag’ y sobre impulso.
Verde : Alcista, Rojo: Bajista.
2. Range filter
Creado por Donovan Wall, su función es la de filtrar o eliminar el ruido y poder determinar mejor la tendencia del precio a corto plazo.
Primero, se calcula un rango de precio promedio uniforme 'SAMPLING PERIOD' para la base del filtro y se multiplica por una cantidad específica 'RANGE MULTIPLIER'.
A continuación, el filtro se calcula ajustando los movimientos de precios que no exceden el rango especificado.
Por último, los rangos objetivo se trazan para mostrar los precios que activarán el movimiento del filtro.
Verde : Alcista, Rojo: Bajista.
3. Average Directional Index (ADX Classic) y (ADX Masanakamura)
Es un indicador diseñado por Welles Wilder para medir la fuerza y dirección de la tendencia del mercado. El movimiento del precio tiene fuerza cuando el ADX tiene pendiente positiva y está por encima de cierto nivel mínimo 'ADX THRESHOLD' y para un periodo dado 'ADX LENGTH'.
El color verde de las barras indica que la tendencia es alcista y que el ADX está por encima del nivel establecido por el threshold.
El color Rojo de las barras indica que la tendencia es bajista y que el ADX está por encima del nivel de threshold.
El color naranja de las barras indica que el precio no tiene fuerza y seguramente lateralizará.
Se puede elegir entre la opción clásica y la creada por un tal 'Masanakamura'. La diferencia principal entre los dos es que en el primero utiliza RMA() y en el segundo SMA() en su cálculo.
4. Parabolic SAR
Este indicador, creado también por Welles Wilder, coloca puntos que ayudan a definir una tendencia. El Parabolic SAR puede seguir al precio por encima o por debajo, la particularidad que ofrece es que cuando el precio toca al indicador, este salta al otro lado del precio (si el Parabolic SAR estaba por debajo del precio salta arriba y viceversa) a una distancia predeterminada por el indicador. En este momento el indicador vuelve a seguir al precio, reduciendo la distancia con cada vela hasta que finalmente es tocado otra vez por el precio y se vuelve a iniciar el proceso. Este procedimiento explica el nombre del indicador: el Parabolic SAR va siguiendo al precio generando una característica forma parabólica, cuando el precio lo toca, se para y da la vuelta (SAR son las siglas en inglés de ‘stop and reverse’), dando lugar a un nuevo ciclo. Cuando los puntos están por debajo del precio, la tendencia es alcista, mientras que los puntos por encima del precio indica una tendencia bajista.
5. RSI with Volume
Este indicador lo creo un tal LazyBear de TV a partir del popular RSI.
El RSI es un indicador tipo oscilador utilizado en análisis técnico y creado también por Welles Wilder que muestra la fuerza del precio mediante la comparación de los movimientos individuales al alza o a la baja de los sucesivos precios de cierre.
LazyBear le añadió un parámetro de volumen que lo hace más preciso al movimiento del mercado.
Una buena forma de usar el RSI es teniendo en cuenta la línea central de 50 'RSI CENTER LINE'. Cuando el oscilador está por encima, la tendencia es alcista y cuando está por debajo la tendencia es bajista.
6. Moving Average Convergence Divergence (MACD) y (MAC-Z)
Fue creado por Gerald Appel. Posteriormente se añadió el histograma para anticipar el cruce de medias. A grandes rasgos podemos decir que el MACD es un oscilador consistente en dos medias móviles que van girando en torno a la línea de cero. La línea del MACD no es más que la diferencia entre una media móvil corta 'MACD FAST MA LENGTH' y una media móvil larga 'MACD SLOW MA LENGTH'. Es un indicador que nos permite tener una referencia sobre la tendencia del activo sobre el cual se está operando, generando de este modo señales de entrada y salida del mercado.
Podemos hablar de mercado alcista cuando el histograma del MACD se sitúe por encima de la línea cero, junto con la línea de señal, mientras que hablaremos de mercado bajista cuando el histograma MACD se situará por debajo de la línea cero.
Está la opción de utilizar el indicador MAC-Z creado por LazyBear que según su autor es más eficaz, por utilizar el parámetro VWAP (precio medio ponderado por volumen) 'Z-VWAP LENGTH' junto con una desviación standard 'STDEV LENGTH' en su cálculo.
7. Volume Condition
El volumen indica el número de participantes en esta guerra entre toros y osos, cuanto más volumen más probabilidad de que se mueva el precio a favor de la tendencia. Un volumen bajo de negociación indica un menor número de participantes e interés por el instrumento en cuestión. Los bajos volúmenes pueden revelar debilidad detrás de un movimiento de precios.
Con esta condición se filtran aquellas señales cuyo volumen es inferior a la SMA de volumen para un periodo 'SMA VOLUME LENGTH' multiplicado por un factor 'VOLUME FACTOR'. Además, determina el apalancamiento utilizado, a más volumen, más participantes, más probabilidad de que se mueva el precio a nuestro favor, es decir, podemos utilizar más apalancamiento. El apalancamiento en este script lo determina las veces que está el volumen por encima de la línea de la SMA.
El apalancamiento máximo es de 8.
8. Bollinger Bands
Este indicador fue creado por John Bollinger y consiste en tres bandas que se dibujan superpuestas al gráfico de evolución del precio.
La banda central es una media móvil, normalmente se emplea una media móvil simple calculada con 20 períodos. ('BB LENGTH' Número de periodos de la media móvil)
La banda superior se calcula sumando al valor de la media móvil simple X veces la desviación típica de la media móvil. ('BB MULTIPLIER' Número de veces la desviación típica de la media móvil)
La banda inferior de calcula restando a la media móvil simple X veces la desviación típica de la media móvil.
la franja comprendida entre las bandas superior e inferior contiene, estadísticamente, casi un 90% de las posibles variaciones del precio, lo que significa que cualquier movimiento del precio fuera de las bandas tiene especial relevancia.
En términos prácticos, las bandas de Bollinguer se comporta como si de una banda elástica se tratara de manera que, si el precio las toca, éste tiene mucha probabilidad de rebotar.
En ocasiones, después de rellenarse la orden de entrada, el precio se devuelve hacia el lado contrario. Si toca la banda de Bollinger se rellena otra orden en la misma dirección de la posición para mejorar el precio medio de entrada, (% MINIMUM BETTER PRICE': Precio mínimo para que se ejecute la re-entrada y que sea mejor que el precio de la posición anterior en un % dado) de esta manera damos una oportunidad al trade de que el Take Profit se ejecute antes. La desventaja es que se dobla el tamaño de la posición. 'ACTIVATE DIVIDE TP': Divide el tamaño del TP a la mitad. Más probabilidad de que se cierre el trade pero menos ganancias.
█ STOP LOSS y RISK MANAGEMENT.
Una buena gestión de las pérdidas o gestión del riesgo es lo que puede hacer que tu cuenta suba o se liquide en poco tiempo.
El % de riesgo es el porcentaje de nuestro capital que estamos dispuestos a perder por operación. Este se aconseja que debe estar comprendido entre un 1-5%.
% Risk = (% Stop Loss x % Equity per trade x Leverage) / 100
Primero se calcula la estrategia con Stop Loss, después se determina el riesgo por operación y a partir de ahí se calcula el monto por operación y no al revés.
En este script puedes usar un Stop Loss normal o uno según el ATR. También activar la opción de que salte antes si se alcanza el porcentaje de riesgo. '% RISK ALLOWED' que se calcula según el porcentaje de tu capital para 1X '% EQUITY ON EACH ENTRY'.
'STOP LOSS CONFIRMED': Solamente se activa el Stop Loss si el cierre de la barra anterior se encuentra en la condición de límite de pérdidas. Es útil para evitar que se dispare el SL cuando hacen un ‘pump’ para barrer Stops y luego se devuelve el precio a la normalidad.
█ ALERTAS
Hay una alerta por cada apalancamiento por consiguiente como máximo se pueden poner 8 alertas para 'long' y 8 para 'short', más una alerta para cerrar el trade con Take Profit o Stop Loss en modo market. Tambien puedes colocar las ordenes Take Profit limit y Stop Loss limit unos segundos despues de rellenar la orden de entrada de la posición.
- 'MAXIMUM LEVERAGE': Es el máximo multiplicador permitido de la cantidad introducida para 1X según la condición de volumen.
- 'ADVANCE ALERTS': Siempre existe un retardo de tiempo desde que se activa la alerta hasta que llega al exchange y que puede ser de entre 1-15 segundos. Con este párametro se puede adelantar la alerta los segundos necesarios para que se active antes. De este modo se puede sincronizar con el exchange para que el tiempo de ejecución de la orden de entrada a la posición coincida con la de apertura de la barra.
Los settings son para Bitcoin en Binance Futures (BTC:USDTPERP) en 30 minutos.
Para otro pares y otras temporalidades se tienen que ajustar las opciones de nuevo. Además para dentro de un mes, los ajustes serán otros distintos ya que el mercado y la tendencia es cambiante.
BEST RSI Divergences Screener (Regular and Hidden)Hello traders
My way to fight this situation is to stay productive.
Hope some of my scripts will help you out as most of us are locked-down at home, hence have more time for trading - and preparing ourselves when the sun will shine on us again
I - Concept
This is an upgrade of this script which captured only the regular divergences
This screener detects whether the regular RSI divergences based on the TradingView Divergence built-in indicator (made by the gentleman @everget I believe)
With this screener, you can see in 1 view which of your favorite cryptos/stocks/forex pairs/etc. showing strong regular and hidden divergences
The gentlemen (and demoiselles) traders can play with the lookback/ranges inputs to adjust the divergences based on what they think is best of their trading/timeframe/instrument/life
On that script screenshot, I'm showing the BYBIT:BTCUSD part of the screener matching with the divergences on the chart
II - How did I set the screener
The visual signals are as follow:
- square: whenever a regular or hidden divergence is detected
Then the colors are:
- green when there is bullish divergence
- red when there is bearish divergence
🔔🔔 I also added the alerts for capturing those bullish/bearish divergences
III - Does it repaint?
It should not :)
Best regards
Dave
BEST Risk to Reward UtilityHello Traders
This is a proof of concept and a cool pinescript utility
It displays a risk to reward division as a fractional value.
For example
Risk: 300
Reward: 600
This will be displayed as 1/2 as we can earn 2 units for a potential loss of 1 unit
(600/300 = 2) for those wondering the NASA level mathematics behind :)
Best regards
Dave
BEST ABCD Pattern StrategyHello traders
This is the strategy version of this script
I - Concept
I present to you, ladies and gentlemen, the first screener for harmonic patterns.
Starting with an ACBD pattern screener this time!!
I used the calculations from Ricardo Santo's script
In short, he's using fractals (regular or Bill Williams ) for the pattern calculations. A masterpiece !!!
II - Definitions
The ABCD pattern ( AB=CD ) is one of the classic chart patterns which is repeated over and over again.
The ABCD pattern shows perfect harmony between price and time.
The Williams Fractal is an indicator, developed by Bill Williams, that aims to detect reversal points (highs and lows) and marks them with arrows.
Up fractals and down fractals have specific shapes. The Williams Fractal indicator helps users determine in which direction price will develop
💎Strategy filters💎
I included some cool backtest filters:
- flexible take profit in USD value (plotted in blue)
- flexible stop loss in USD value (plotted in red)
The take profit and stop loss should work with Forex/FX pairs as well
All the BEST
Dave
inwCoin Specific Buy/Sell Price Alert for AutoviewJust simple script to act as conditional stop loss
Problem : Traditional Market Stop or Limit Stop, you have to set it with specific price and wait for the price to drop/pump to your stop then it will trigger. But sometime ( so many times ) the price will leave a very long wick up or down to hunt the stoploss that already set in the exchanges.. then it turn back to the opposite side after stop our position from existent!!
Thank to Autoview, with this simple script, you can setup your "stop level" without put "stop market" in the order.
Just stop when price close below or above specific level in the script, then you can just setup alert to fire the TP/Stop order to exchange via autoview after alert fire.
Example;
You need to stop loss / TP your position when price "close below 9500" in daily BTC chart
- Just set "sell price" to 9500
- and set "Cross down" option
When daily chart close below 9500, the script will trigger alert for you to catch and send to any exchange via Autoview.
Note;
1) When setting alert in tradingview, make sure to use..
- Crossing Down + 0.8 in alert trigger condition
- Set to "Once per bar" ( If you set "once per bar close", it will fire alert in next 2nd candle! )
2) You need to subscribe to autoview to use the bot. And it's not for everyone. Just do your own research before using! ( try to test with small amount of money first! )
Cheers!