Releases
WebsiteDocumentation
  • May 12th, 2025
  • Old Releases
    • April 20th, 2025
    • March 22nd, 2025
    • March 18th, 2025
    • March 14th, 2025
    • March 6th, 2024
    • February 17th, 2025
    • February 16th, 2025
    • February 6th, 2025
    • February 5th, 2025
    • February 3rd, 2025
    • January 6th, 2025
    • November 29th, 2024
    • November 9th, 2024
    • November 5th, 2024
    • October 6th, 2024
    • August 23rd, 2024
    • August 12th, 2024
    • August 6th, 2024
    • August 4th, 2024
    • July 20th, 2024
    • July 6th, 2024
    • June 24th, 2024
    • June 1st, 2024
    • April 27th, 2024
    • April 13th, 2024
    • March 11th, 2024
    • March 9th, 2024
    • February 16th, 2024
    • February 13th, 2024
    • January 30th, 2024
    • January 20th, 2024
    • January 17th, 2024
    • January 16th, 2024
    • January 3rd, 2024
    • November 28th, 2023
    • November 24th, 2023
    • November, 15th, 2023
    • November 5th, 2023
    • October 20th, 2023
    • October 12th, 2023
    • September 13th, 2023
    • September 5th, 2023
    • September 3rd, 2023
    • June 3rd, 2023
    • May 29th, 2023
    • April 11th, 2023
    • March 31st, 2023
    • March 4th, 2023
    • February 27th, 2023
    • February 18th, 2023
    • December 21st, 2022
    • December 5th, 2022
    • December 3rd, 2022
    • November 28th, 2022
    • October 21st, 2022
    • October 4th, 2022
    • July 20, 2022
    • July 19, 2022
    • July 1, 2022
    • June 17, 2022
    • May 31, 2022
    • May 11, 2022
    • May 7, 2022
    • May 4, 2022
    • May 2, 2022
    • April 5, 2022
    • April 4, 2022
    • April 2, 2022
    • March 19, 2022
    • February 19, 2022
    • February 12, 2022
    • February 5, 2022
Powered by GitBook
On this page
  • Improvements
  • Sides Isolated
  • Disable Side Swapping
  • TradingView Integration Improvements

Was this helpful?

  1. Old Releases

June 17, 2022

PreviousJuly 1, 2022NextMay 31, 2022

Last updated 2 years ago

Was this helpful?

Improvements

This release contains a few improvements to make managing strategies a little bit more flexible and compatible with TradingView strategies out of the box.

Sides Isolated

In the Basic Options section of a strategy configuration, you will now see a new Sides isolated checkbox. When this checkbox is checked with Sides set to Bullish or Bearish, the strategy will never close a position if the position is on the other side. So for example if you have Sides set to Bullish and there is currently an open bearish position not created by this strategy subscription, then when you receive a bullish signal, the bearish position will not be exited and a bullish position will not be entered because sides are isolated. Without Sides isolated checked, the bearish position would be exited before entering a bullish position.

Disable Side Swapping

In the Basic Options section of a strategy configuration, you will now see a new Disable side swapping checkbox. When this checkbox is checked with Sides set to Both, then TradersPost will never automatically enter a new position on the other side after exiting a position. For example if you have an open bullish position and you receive a bearish sell signal, the bullish position will be exited and a bearish position will not be entered until you send another bearish sell signal at a later time. Without Disable side swapping checked, TradersPost will automatically exit the open position and enter on the other side with one signal.

TradingView Integration Improvements

Quantity Management

In the Position Size section when editing a strategy subscription, you will see a new checkbox labeled Subtract exit quantity from signal quantity.

When this checkbox is checked, if you send a quantity that is greater than the quantity of your open position, then we will subtract the exit quantity from signal quantity and then the remainder will be used for the quantity in the entry order. So in the below example we had an open position with a quantity of 5 and we sent a quantity of 12 in the signal, so it exited the 5 short and entered 7 long.

If you send a quantity equal to the quantity of the open position, then the open position will be fully exited and a new position will be entered on the opposite side with the same quantity. If you want to only exit the open position and don't want to enter on the opposite side, then you will also need to send sentiment=flat in the signal. Read more on that below.

Signal Sentiment

To make it easier to integrate TradingView strategies with TradersPost out of the box, we've introduced a new parameter named sentiment that you can use when sending signals. The sentiment parameter indicates to TradersPost what the sentiment of the open position should be after executing the trade.

The sentiment parameter can have the following values:

  • bullish - exit bearish position and enter bullish position

  • bearish - exit bullish position and enter bearish position

  • flat - no open position after executing trade

Here is an example of what that would look like if you are using a TradingView strategy. The {{strategy.market_position}} variable has a value of long, short or flat and it represents the side of the position you will be on after the strategy order is executed.

{
    "ticker": "{{ticker}}",
    "action": "{{strategy.order.action}}",
    "sentiment": "{{strategy.market_position}}"
}

To make TradersPost compatible with TradingView {{strategy.market_position}} variable out of the box, you can send long or short instead of bullish or bearish when using the sentiment parameter.

So for example say you currently have an open bearish position and you only want to exit the position without entering bullish on the other side. This signal would flatten the bearish position and would not enter bullish on the opposite side.

{
    "ticker": "SPY",
    "action": "buy",
    "sentiment": "flat"
}

Or if you currently have an open bullish position and you only want to exit the position without entering bearish on the other side. This signal would flatten the bullish position and would not enter bearish on the opposite side.

{
    "ticker": "SPY",
    "action": "sell",
    "sentiment": "flat"
}

This is effectively the same as using the action=exit. However, the exit action is not compatible with TradingView strategies out of the box so using a combination of action and sentiment allows TradersPost to work with TradingView strategies more seamlessly out of the box.

Sending action=exit or sentiment=flat will always exit the full quantity of the open position regardless of the quantity sent in the signal.

Additionally, say for example if you have an open bearish position and you send action=buy and sentiment=bearish then the bearish position will only be exited and a bullish position will not be entered on the other side. This is useful when you are only partially exiting a bearish position.

For example say you have an open bearish position with a quantity of 5, you could partially exit 2 quantity and remain in a bearish position with a quantity of 3.

{
    "ticker": "SPY",
    "action": "buy",
    "sentiment": "bearish",
    "quantity": 2
}

You can optionally specify the Sentiment parameter when manually sending a signal to a webhook with the Send Request functionality.

Sides isolated checkbox
Disable side swapping checkbox
Subtract exit quantity from signal quantity
Exit quantity subtracted from signal quantity and remainder used for entry quantity.