INVITE-ONLY SCRIPT

[pAulseperformance] PSStrategyX

Updated
█ 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
  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.



Release Notes
## Changelog
- Added Color Scheme to Total Trades to help indicate attention to low samples.
- Added Circuit breaker risk management "Max Drawdown" to shut off strategy if amount is exceeded.
- Added Circuit Breaker Risk Management "Max Consecutive Losing Trades" to shut off strategy is losing x amount of trades consecutively.
- Added hint for day filters
- Added opposite signal reverses position option to mimic traditional TV back tester.
Release Notes
Improvements
- Updated Circuit breakers to show realtime errors when reached, helping end user understand why trades are not being filled.

Bug Fixes
- Fixed bug where close signals were not closing orders properly.
Release Notes
Bug Fixes
- Forgot to remove debug helper plot in last update before publishing.
Release Notes
- Fixed Day filters, so they turn off trading when all days are checked. Previously, glitched and would allow trading. Though whats the point of filtering all the days 🤷🏻‍♂️
- Updated Color scheme for table.
- Updated default values to match strategy optimizer so transition is easier.
- Added Pivot Point for Entry Stop condition. More on the way.
Release Notes
- Added Metric For ROI based on 1 Day, 30 days, and 365 days. Just Hover over ROI on Table to view.
- Added Pivot Points and Chandelier Exit to SL/TP conditions
- Minor code overhaul resulting in faster compilation.
Release Notes
Minor Update
- Added Sharpe And Sortino Ratio (Credits To PineCoders for Equation)
- Added Input to Set RIsk Free Rate. TV Strategy Tester defaults to 2.0 in Strategy Summary. On this data US Interest Rates are at 5.5% so the input default is there.
- Minor default value changes for inputs.
- Color enhancement for Trade Summary
Release Notes
- Added external source for entry stop.
- Fixed issue with RR:TP not triggering on early trades when Pivot point stop loss length was too long.
Release Notes
Update

- Removed "Order Size" input from properties. Now order quantity will be set inside the strategy properties tab. This will allow for contracts, order size % equity and dollar amount order sizes to be set. Note: this will enhance backtesting capabilities, but reduces automation when live trading. Please test on test account before live trading as quantity values will no longer be sent to Autoview. You must set the quantity in Autoview now.
Release Notes
- Added tick entry stop and tick take profit
- Fixed a bug where summary table wouldn't show during weekends.
3commasautotraderautoviewbacktesterforwardtestingPine utilitiesPortfolio managementstatisticsstrategytesting

Invite-only script

Access to this script is restricted to users authorized by the author and usually requires payment. You can add it to your favorites, but you will only be able to use it after requesting permission and obtaining it from its author. Contact pAulseperformance for more information, or follow the author's instructions below.

TradingView does not suggest paying for a script and using it unless you 100% trust its author and understand how the script works. In many cases, you can find a good open-source alternative for free in our Community Scripts.

Author's instructions

Want to use this script on a chart?

Warning: please read before requesting access.

Trade, Code, & Travel.

pinescriptstrategy.com
Also on:

Disclaimer