# Setup Calculator

***

### 1. Overview

Tools included:

1. **Position Sizing** → Calculate lot size or contract size based on your risk tolerance.
2. **P/L & Breakeven** → Determine required moves to break even, calculate pip/dollar gains.
3. **Leverage / Margin** → Find required margin or maximum leverage for a given position.
4. **ATR Stop** → Compute Average True Range–based stop-loss levels.
5. **Fibonacci / Algo Zone** → Identify key retracement/extension zones automatically.
6. **Cycle Date** → Calculate cyclical turning points using historical pivots.

***

### 2. Position Sizing

> **“Figuring out the right position size based on your risk is a hassle—this tool does it instantly.”**

**Fields:**

* **Account Balance ($):** Your total equity (e.g., 10 000).
* **Risk Per Trade (%):** Slider (0.1 %–5 %).
* **Entry Price:** E.g., 142.50.
* **Stop Price:** E.g., 138.20.
* **Take Profit (optional):** E.g., 150.00 (used to calculate risk/reward).

**How It Works:**

1. Enter your current account balance.
2. Set risk (slider) to the percentage you’re willing to lose (e.g., 1 %).
3. Type in your entry and stop levels.
4. (Optional) Provide a take-profit for instantaneous R/R ratio.
5. Click **Calculate Size**.

**Result:**

* **Position Size** (number of shares/contracts) so that if the stop is hit, you only lose your chosen % of the account.
* **Risk/Reward Ratio** based on TP (if provided).

> 💡 Pro Tip: Always round down position size to the nearest whole contract or standard lot.

***

### 3. P/L & Breakeven

> **“Calculate required move in pips or dollars to hit profit targets or breakeven.”**

**Fields:**

* **Entry Price** (e.g., 1.2000)
* **Exit Price** (e.g., 1.2100)
* **Lot/Contract Size** (e.g., 100 000 units or 1 standard lot)
* **Pip Value** (for Forex) or **Contract Size** (for futures/crypto)

**How It Works:**

1. Enter entry and exit prices.
2. Select your lot/contract size.
3. The calculator shows:
   * **P/L** in dollars (or base currency).
   * **Breakeven Price** if you reverse trade at zero profit.

> 💡 Handy for multi-leg spreads and options: find breakeven points quickly.

***

### 4. Leverage / Margin

> **“See exactly how much margin you need or what leverage you can pull.”**

**Fields:**

* **Account Balance ($)**
* **Desired Leverage** (dropdown or input, e.g., 10×, 20×)
* **Position Notional** (e.g., $100 000)
* **Margin Type** (Isolated or Cross)

**How It Works:**

1. Enter your account balance.
2. Enter notional size (the total value of the position).
3. Choose your desired leverage multiple.
4. Select margin type.
5. Click **Calculate Margin**.

**Result:**

* **Required Margin** ($) for the chosen leverage.
* **Maximum Leverage** possible based on base margin requirements.

> 💡 Always double-check margin requirements, especially when markets are volatile—some exchanges raise margin rates.

***

### 5. ATR Stop

> **“Use ATR (Average True Range) to set dynamic stop-loss levels that adapt to current volatility.”**

**Fields:**

* **Symbol** (e.g., BTC/USD, AAPL)
* **Timeframe** (1 m, 5 m, 1 H, 1 D)
* **ATR Period** (default 14)
* **Multiplier** (e.g., 1.5×, 2×)
* **Current Price** (auto‐fetched if exchange is linked; otherwise, manual)

**How It Works:**

1. Select the symbol and timeframe.
2. Enter ATR period and multiplier.
3. Click **Calculate**.
4. Tool fetches ATR from the last 14 bars (or manual price if not linked).
5. Displays **Stop‐Loss Level** above/below current price.

> 💡 ATR stops adjust to widen during high volatility—avoid being stopped out prematurely.

***

### 6. Fibonacci / Algo Zone

> **“Identify key retracement, extension, or algorithmic zones without drawing by hand.”**

**Fields:**

* **Symbol & Timeframe**
* **Swing High Price**
* **Swing Low Price**
* **Retracement Levels** (Default: 38.2 %, 50 %, 61.8 %)
* **Extension Levels** (Default: 127.2 %, 161.8 %)

**How It Works:**

1. Enter your chosen swing high and swing low.
2. (Optional) Adjust Fibonacci levels.
3. Click **Generate Zones**.
4. Visual output:
   * Table of prices at each retracement/extension.
   * Zone shading (if the exchange is linked to draw on chart).

> 💡 Great for algorithmic traders—feed these levels into your scripts directly.

***

### 7. Cycle Date

> **“Forecast potential turning points by counting cycles from past pivots.”**

**Fields:**

1. **Symbol & Market**
2. **Historic Pivot Date** (e.g., 2025-01-15)
3. **Cycle Length** (days, e.g., 90 days)
4. **Offset** (optional, e.g., ± 2 days)

**How It Works:**

1. Select symbol/timeframe.
2. Input the last known pivot date.
3. Enter cycle length (common: 30 , 60 , 90 days—choose based on your strategy).
4. (Optional) Add an offset for tolerance (± 2 days).
5. Click **Compute**.
6. Result: a list of future dates where cycles may turn.

> 💡 Use with historical pattern analysis—overlay cycle dates on your chart to see if price indeed turned around then.

***


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.tradingwizard.ai/trading-tools/setup-calculator.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
