Documentation
WebsiteReleases
  • What is TradersPost?
  • Getting Started
  • What's new?
  • Core Concepts
    • Brokers
      • TradeStation
      • Alpaca
      • Tradier
      • Robinhood
      • Tradovate
      • NinjaTrader
      • E*TRADE
      • tastytrade
      • Interactive Brokers
      • Coinbase
      • Bybit
      • Kraken
      • Webull
      • Binance
      • TDAmeritrade
      • Broker Roadmap
        • Schwab
    • Strategies
    • Subscriptions
    • Webhooks
  • Learn
    • Rate Limits
    • TradingView
    • Prop Firm Trading
    • TrendSpider
    • MetaTrader 5 - MT5
    • Backtesting
    • Order Behavior
    • Order Queueing
    • Order Classes
    • Paper Trading
    • Position Sizing
    • Fractional Shares
    • Custom Code Examples
    • Discord Trading Bot
    • API
  • Assets
    • Stocks
    • Futures
    • Options
    • Crypto
    • Forex
  • Strategies & Indicators
    • Strategy Developers
    • Example Strategies
      • Simple Strategy
      • EMA Crossovers
      • Automate Channel Trading
      • Range Trade Heikin Ashi RSI
      • Scheduled Alerts
      • Simple Trend Lines
      • 8-55 EMA Cross Strategy
      • High-Low Range Trend-Following
      • LuxAlgo SMC Trade Signals
      • Confluence of Alerts
      • Automated Channel
      • SSL Hybrid
      • Engulfing Candles
      • Supertrend and Bollinger Bands
    • Premium
    • Free
    • Build Your Own
  • Additional Information
    • Glossary
    • Error Messages
    • Troubleshooting
    • Frequently Asked Questions
    • Office Hours
    • Known Limitations
    • Trading Communities
    • Trade Journaling
    • Useful URLs
    • WebhookMessage Library
    • Maintenance Windows
    • Releases
  • Links
    • Discord
    • Community
    • Pricing
    • Register
    • Login
Powered by GitBook
On this page

Was this helpful?

Edit on GitHub
  1. Strategies & Indicators
  2. Example Strategies

Simple Strategy

A TradingView example strategy for firing many alerts to test how automated trading works on TradersPost.

PreviousExample StrategiesNextEMA Crossovers

Last updated 4 months ago

Was this helpful?

To showcase how to send JSON messages for a strategy from TradingView, we have created this simple strategy that takes very frequent trades and can be tested on the 1 minute chart. It can also be tested on long only, short only, or both directions. to see the strategy. You can also create an alert from this chart and send the messages to your own webhook URL.

Steps to use it:

  1. on your TradersPost account using the , if you plan to test stocks. Strategies are based on an asset class, so you'll need to make this choice first.

  2. Then subscribe a paper broker to that strategy using a .

    1. There will be default settings when you create the subscription. The settings you'll want to change are:

      1. Auto Submit: On

      2. Sides: Both (Bullish & Bearish)

      3. Entry order type: Market

      4. Exit order type: Market

  3. When the subscription is successfully created, copy the .

  4. Create a new alert on TradingView from the .

    1. Under condition, choose the Simple Strategy (Both)

      1. It will say Both if the strategy settings are allowing long and short.

    2. The Message will say {{strategy.order.alert_message}}. Leave this alone the messages will be coming from your strategy settings and this placeholder is used to tell the strategy it should use the internal messages.

    3. Click the Notifications tab and check the box for Webhook URL. Paste in the webhook URL you copied.

    4. Hit Create.

Links:

You should now have trades coming in every minute to go long or short or exit those positions. Under your , you can click the Trades button next to your strategy to see the list of trades that are coming in. You can also review the to see the messages we parsed as they came in.

Add this example to your TradingView favorites.

You can find the source code for this .

subscriptions tab
Webhooks log
Simple Strategy
simple strategy here
Head to this TradingView chart
Create a strategy
stocks asset class
strategy subscription
Webhook URL
Simple Strategy Chart we provided
https://www.tradingview.com/chart/QIsX3O3T/