---
title: Understanding reverse_order_close in PickMyTrade
slug: reverse-order-close-pickmytrade
date: 2025-08-12
modified: 2025-08-12
author: PickMyTrade Team
excerpt: ""
meta_description: "Learn how the reverse_order_close setting in PickMyTrade works for TradingView indicators and strategies, and how it affects position closing and reversals."
focus_keyword: ""
canonical_url: "https://docs.pickmytrade.io/docs/reverse-order-close-pickmytrade/"
og_title: Understanding reverse_order_close in PickMyTrade
og_description: "Learn how the reverse_order_close setting in PickMyTrade works for TradingView indicators and strategies, and how it affects position closing and reversals."
og_image: ""
schema_type: WebPage
categories: []
tags: []
reading_time: 1
word_count: 314
robots: "index, follow"
lang: en-US
---

# Understanding reverse_order_close in PickMyTrade

**Last Updated:** August 12, 2025  |  **Published:** August 12, 2025

The `reverse_order_close` parameter controls how PickMyTrade handles existing positions when an alert signal is received in the **opposite direction**. This feature applies to **both TradingView indicators and strategies**, but with **different defaults** to avoid potential position mismatches.

---

## **1. How It Works**

### **Case 1 — Adding to a Position**

- **Example:** You have **1 Buy** position.
- **Alert Sent:** `Buy` order for **1 unit**.
- **Result:** Position increases to **2 Buy**.
- **Explanation:** Since the order is in the same direction, it **adds to the position**.

---

### **Case 2 — Opposite Order, `reverse_order_close: false`**

- **Example:** You have **1 Buy** position.
- **Alert Sent:** `Sell` order for **1 unit**, `reverse_order_close = false`.
- **Result:** The existing **Buy** position is **closed**.
- **Explanation:** The system offsets the existing position without opening a new one in the opposite direction.

---

### **Case 3 — Opposite Order, `reverse_order_close: true`**

- **Example:** You have **1 Buy** position.
- **Alert Sent:** `Sell` order for **1 unit**, `reverse_order_close = true`.
- **Result:**
  1. Existing **Buy** position is **closed**.
  2. A new **Sell** position is **opened**.
- **Explanation:** This setting **reverses** the position in a single step.

---

## **2. Applicability**

- **Indicators** → Fully supports both `reverse_order_close: true` and `false`.
- **Strategies** → Supports both values, **but defaults to `false`** to avoid position mismatches.

---

## **3. Why Strategies Default to `false`**

- Strategies in TradingView often send orders **on every bar** based on backtesting logic.
- If `reverse_order_close` is set to `true` by default, it can:
  - Rapidly flip positions in volatile markets.
  - Cause **position mismatch** between PickMyTrade, your broker, and TradingView’s backtester.
- Setting it to `false` ensures that an opposite signal simply **closes the current position** without automatically reversing.

---

## **4. Key Takeaways**

- Use `reverse_order_close: true` only when you **intentionally want immediate reversals**.
- For most **strategies**, keeping it `false` ensures position tracking stays consistent.
- For **indicators**, either option can be used depending on your trading style.

[Get PickMyTrade → Automate Your TradingView Strategies](https://pickmytrade.io "PickMyTrade - Automated Trading")

Last updated: **August 12, 2025**

For AI tools &amp; developers:[View Markdown →](https://docs.pickmytrade.io/docs/reverse-order-close-pickmytrade.md)