In TradersPost, the sentiment parameter controls trade actions based on overall market positioning. If sentiment = flat is sent, the system closes the entire position, regardless of the specified quantity.
This happens because “flat” overrides any quantity instructions, as the system interprets it as an instruction to exit completely.
• Use explicit “action” commands instead of sentiment
• Instead of relying on sentiment = flat, use “action = sell” with a specific quantity.
• Understand TradingView Simulation Behavior
• The sentiment parameter was designed to match TradingView’s backtesting logic, but it may not always behave as expected in live trading.
• Only use sentiment if it aligns with your strategy
• If partial position exits are required, manually specify action and quantity instead of using sentiment-based exits.
• “Sentiment = flat” closes all positions, overriding any quantity settings.
• If partial exits are needed, avoid the sentiment parameter and use “action = sell” with a set quantity.
• Sentiment was designed to mimic TradingView’s simulation behavior, but traders can control execution more precisely by manually specifying orders.
To prevent accidentally closing all positions, traders should avoid using the sentiment parameter when precise trade management is required. Instead, manually set action and quantity to maintain full control over trade execution.
DISCLAIMER:
Trading in the financial markets involves a significant risk of loss. The content and strategies shared by TradersPost are provided for informational or educational purposes only and do not constitute trading or investment recommendations or advice. The views and opinions expressed in the materials are those of the authors and do not necessarily reflect the official policy or position of TradersPost.
Please be aware that the authors and contributors associated with our content may hold positions or trade in the financial assets, securities, or instruments mentioned herein. Such holdings could present a conflict of interest or influence the perspective provided in the content. Readers should consider their financial situation, objectives, and risk tolerance before making any trading or investment decisions based on the information shared. It is recommended to seek advice from a qualified financial advisor if unsure about any investments or trading strategies.
Remember, past performance is not indicative of future results. All trading and investment activities involve high risks and can result in the loss of your entire capital. TradersPost is not liable for any losses or damages arising from the use of this information. All users should conduct their own research and due diligence before making financial decisions.