# What is Product?

RedFox Copier Pro is an intelligent tool to automatically copy the signals shared on any Telegram channels

### Enjoy Life While Your Trades Are Managed Automatically

<figure><img src="https://336892245-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FtVjBgAJnVI2mruGw1wLX%2Fuploads%2FJ5hIXIQmNmYFWIJoa4yB%2Fezgif-3-acedc27d20.gif?alt=media&amp;token=504263ec-e8dc-4a9e-982d-b03dd5e77549" alt=""><figcaption></figcaption></figure>

#### **One compact solution can delight your forex journey and fuel your profit.**

<img src="https://336892245-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FtVjBgAJnVI2mruGw1wLX%2Fuploads%2FkrEbEF7xyDji8SmUT9dF%2Fimage.png?alt=media&amp;token=3d0cba29-9ca0-426c-9e40-ac8527b64380" alt="" data-size="original">![](https://336892245-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FtVjBgAJnVI2mruGw1wLX%2Fuploads%2FgyQObhel6Vu4RxVwppSl%2Fezgif-3-fc6ab9def3.gif?alt=media\&token=aa6412ff-816f-4d49-9737-d2b48db9111c)

### 🤩 FEATURES

<figure><img src="https://336892245-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FtVjBgAJnVI2mruGw1wLX%2Fuploads%2FvP39Qr8UWI5gulnUnDZf%2FGroup%2047972.png?alt=media&amp;token=91d4c847-252e-41f5-befa-e7846ada4194" alt=""><figcaption></figcaption></figure>

**Time saving and fast execution**

Whether you’re traveling or sleeping, always know that Telegram To Mt4 performs the trades for you. In other words, Our [**Telegram MT4 Signal Trader**](https://www.mql5.com/en/market/product/71929) will analyze the trading signals you receive on your selected Telegram channels and execute them to your Telegram to MT4 account.

**Reduce The Risk**

Telegram To Mt4 defines the whole experience of copying signals from [Telegram signal copier to mt4](https://www.mql5.com/en/market/product/71929) platforms. Users not only can follow all instructions from the signal provider, but also can create their own strategies by picking the trading signals and setting their own money & risk management.

**Control And Modify Easy**

Quickly modifying take profit or stop loss targets for individual orders can be easily done through editing the original post or replying to the original post.

Easily close orders by volume.

Link Driver: <https://bit.ly/redfox-copier-pro-mt4>


# Contact Supporter

Contact support to <https://t.me/RedFox_Support>


# News Update

Update at <https://t.me/redfox_copierpro>

\=======New Update v1.31 ======&#x20;

✅ Add feature Symbol Mapping

* You can map Symbol if signal and broker is diff.
* Use syntax: SymbolSignal=SymbolBroker,
* Exam: US30=.US30Cash,NAS100=NDX100

✅ Add feature use footer signal to order comment.

* Use syntax: "From: name\_order" below signal
* Exam: From: Channel Forex VIP

✅Fixbug

* Fix not get TP5 when use Level Target TP5
* Fix bug get price market from RFC MARKET \[SYMBOL]
* Fix bug AUTO\_OPEN\_PENDING when Slippage Price

\======= Update v1.30 ======&#x20;

✅ Add config "Use title channel for order comment" : Allow use title channel for order comment&#x20;

✅ Add config "MOVE TP CONFIG" include Active Move TP when negative pips can move TP to entry&#x20;

✅ Fixbug Percent Lot Close&#x20;

✅ Fixbug TRAILING STOP

Contact support to <https://t.me/RedFox_Support>


# Download RedFox Copier Pro From Market mql5 To MT4/MT5

Open Application MetaTrader 4 and click open bottom tab Market

![Market mql5](https://336892245-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FtVjBgAJnVI2mruGw1wLX%2Fuploads%2FHMjmN85utTvCAsbOqjU8%2Fimage.png?alt=media\&token=bca34dfe-89ab-4bd8-9d66-946329deb993)

In Tab Market please search RedFox Copier Pro and Download

![Open detail product](https://336892245-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FtVjBgAJnVI2mruGw1wLX%2Fuploads%2FimdmtqLPmlrieX6FvKyW%2Fimage.png?alt=media\&token=41cfbccf-29e5-4786-a5e6-193043adb007)

After download complete please check it at Navigator

![Install success](https://336892245-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FtVjBgAJnVI2mruGw1wLX%2Fuploads%2FWBPJlJR1hr9DUTegfvxy%2Fimage.png?alt=media\&token=c5bc2719-f0ea-4e2c-8f2c-b16c404fed2a)


# How to create a bot and API Token From TELEGRAM

1\. Open your Telegram APP and search for "BotFather" and open windown chat

![](https://336892245-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FtVjBgAJnVI2mruGw1wLX%2Fuploads%2FQqx8jauSK6K2ov8wGwyG%2Fimage.png?alt=media\&token=5f199edf-9b41-4360-ba49-4b84189b0cf4)

2\. Type */start* and click/type */newbot* to create a new bot. Enter your bot name and send

![Enter your bot name](https://336892245-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FtVjBgAJnVI2mruGw1wLX%2Fuploads%2F4WJzCgx9poiltcDSQ4GU%2Fimage.png?alt=media\&token=59a3e772-67a1-4f1c-9bf7-853559cfcebd)

Congratulations! You have created your Telegram bot.

3\. Save your bot **API token** (e.g. 236148657:MMKjjjhkp\_iMAnkKLm1rGmkhAA\_Am98m)&#x20;

![](https://336892245-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FtVjBgAJnVI2mruGw1wLX%2Fuploads%2FfXsVPUBUUcq6T1jXEZpW%2Fimage.png?alt=media\&token=1f75866e-76cc-47c2-bcf5-d3c5916735c5)


# How to create Telegram channel and add Bot To Channel

1. Open your Telegram APP -> menu and select New Channel

![](https://336892245-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FtVjBgAJnVI2mruGw1wLX%2Fuploads%2FPZJchXtVeiQgOoGy90CM%2Fimage.png?alt=media\&token=d560df2f-a822-4c50-aa51-78247244ac0c)

2\. Give your channel a name, then click “CREATE”.

3\. In your channel, add your bot and set it as “Administrator” so that your bot can receive messages from your channel

![Click to Administrators](https://336892245-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FtVjBgAJnVI2mruGw1wLX%2Fuploads%2Fn0AklE8hSK1sRAUKSfSQ%2Fimage.png?alt=media\&token=34bab430-0136-4a64-b8f8-cdced8e8f588)

![Next click to Add Administrator](https://336892245-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FtVjBgAJnVI2mruGw1wLX%2Fuploads%2FlaS1SIVvAHUGpycSg4bB%2Fimage.png?alt=media\&token=4c6916dc-29e9-44a2-a588-ac319fe59b68)

![Search your bot and click add bot as admin](https://336892245-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FtVjBgAJnVI2mruGw1wLX%2Fuploads%2FF35f8Q1OxwWr1N5hQ4ef%2Fimage.png?alt=media\&token=ef8d37cb-1535-4680-aa4b-598ce7fa21fa)

![Add bot success](https://336892245-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FtVjBgAJnVI2mruGw1wLX%2Fuploads%2Fz6kzcC2CsyhqBwL9I1my%2Fimage.png?alt=media\&token=60b4f327-60a3-4f8a-a19c-9fe9963e730d)

Congratulations! You have created your channel and add bot success. Close back channel


# Install RedFox Copier EA and active From Market

1. Open application MT4. Select Tools -> Options

![](https://336892245-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FtVjBgAJnVI2mruGw1wLX%2Fuploads%2FNBkUIHtmDqS88hHJ55RJ%2Fimage.png?alt=media\&token=7ed91734-0234-47ee-9738-203213a545d2)

2\. Click to tab Expert Advisors

3\. Tick Allow automated trading and Allow WebRequest for listed URL

4\. At Allow WebRequest enter url **<https://api.telegram.org>**

5\. Click OK

![Options Config](https://336892245-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FtVjBgAJnVI2mruGw1wLX%2Fuploads%2F7c2FkxnblgNvzw402GRg%2Fimage.png?alt=media\&token=ab3d26a5-0a42-4878-9737-76313f65d7cc)

6\. Open any a chart

7\. Click the right mouse pointer to the EA select Attach a chart

![Attach EA to chart](https://336892245-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FtVjBgAJnVI2mruGw1wLX%2Fuploads%2FzJsyi1nLrCtLM5oY5247%2Fimage.png?alt=media\&token=7c9a8ef7-7d82-4ac9-b0f2-4dceb02172e3)

8\. Use API Token From [How to create a bot and API Token From TELEGRAM](/guides/how-to-create-a-bot-and-api-token-from-telegram) fill to Telegram Token

![](https://336892245-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FtVjBgAJnVI2mruGw1wLX%2Fuploads%2FUeViTD1W67pEBDCk0LU1%2Fimage.png?alt=media\&token=72711127-c501-4ba4-80a1-6b7e91678093)

9\. Config your strategy bot then click OK ([**See config description here**](/guides/ea-input-describe))

![](https://336892245-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FtVjBgAJnVI2mruGw1wLX%2Fuploads%2FT4wWGDfGupSxeFPNXkal%2Fimage.png?alt=media\&token=67beb6fa-d29b-4014-b3a8-1c1bf75c0058)

10\. Congratulations! You have active EA success.

![](https://336892245-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FtVjBgAJnVI2mruGw1wLX%2Fuploads%2F1Sljs802gxLtjoXnlGWm%2Fimage.png?alt=media\&token=9bd9de6e-1b51-4818-8d95-2c839830c1e2)

11\. Back to channel enter **rfc help** to get command support

![](https://336892245-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FtVjBgAJnVI2mruGw1wLX%2Fuploads%2F18ngXYfR8fkNd0jR4nBc%2Fimage.png?alt=media\&token=6d3bf114-fe80-4639-a516-22b1b7378bd3)


# Install RedFox Copier EA and active without mql5 market

**Copy RedFoxCopierPro.ex4 to Experts**

1. On MT4 select File -> Open Data Folder

![](https://336892245-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FtVjBgAJnVI2mruGw1wLX%2Fuploads%2FnO8KKSfZH7aa6AMeyh1S%2Fimage.png?alt=media\&token=c21fcf50-5ff8-4419-97df-01868a80255d)

&#x20;  2\. Next select folder MQL4

![](https://336892245-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FtVjBgAJnVI2mruGw1wLX%2Fuploads%2FpCGS3j4mospxA7EfgEaX%2Fimage.png?alt=media\&token=9e420414-a096-4cde-930a-ad982283d2b0)

3\. Paste file RedFoxCopierPro.ex4 to Folder Experts

![](https://336892245-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FtVjBgAJnVI2mruGw1wLX%2Fuploads%2FV62IPBFGvZYwqGcocRYL%2Fimage.png?alt=media\&token=b77ed003-520f-4e3e-8d2e-32f4a5fad84e)

4\. Back to MT4 and refresh Experts

![](https://336892245-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FtVjBgAJnVI2mruGw1wLX%2Fuploads%2FCnZefRpvxocsbHUWBVNv%2Fimage.png?alt=media\&token=bce5d9f8-0240-474c-b74a-4c9fca7d2340)

#### Install RedFox Copier Pro

1. Next, Open application MT4. Select Tools -> Options

![](https://336892245-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FtVjBgAJnVI2mruGw1wLX%2Fuploads%2FNBkUIHtmDqS88hHJ55RJ%2Fimage.png?alt=media\&token=7ed91734-0234-47ee-9738-203213a545d2)

&#x20;2\. Click to tab Expert Advisors

&#x20;3\. Tick Allow automated trading and Allow WebRequest for listed URL

&#x20;4\. At Allow WebRequest enter url&#x20;

**<https://api.telegram.org>**

**<https://redfox-capital.com>**

![](https://336892245-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FtVjBgAJnVI2mruGw1wLX%2Fuploads%2FTxCzOa3MVVqrZmI6C2yZ%2Fimage.png?alt=media\&token=e3749be0-5bf5-4eca-92dd-3b2fbcf3e438)

5\. Click OK

6\. Open any a chart

7\. Click the right mouse pointer to the EA select Attach a chart

![Attach EA to chart](https://336892245-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FtVjBgAJnVI2mruGw1wLX%2Fuploads%2FzJsyi1nLrCtLM5oY5247%2Fimage.png?alt=media\&token=7c9a8ef7-7d82-4ac9-b0f2-4dceb02172e3)

8\. Use API Token From [How to create a bot and API Token From TELEGRAM](/guides/how-to-create-a-bot-and-api-token-from-telegram) fill to Telegram Token

![](https://336892245-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FtVjBgAJnVI2mruGw1wLX%2Fuploads%2FUeViTD1W67pEBDCk0LU1%2Fimage.png?alt=media\&token=72711127-c501-4ba4-80a1-6b7e91678093)

9\. Config your strategy bot then click OK([**See config description here**](/guides/ea-input-describe))

![](https://336892245-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FtVjBgAJnVI2mruGw1wLX%2Fuploads%2FT4wWGDfGupSxeFPNXkal%2Fimage.png?alt=media\&token=67beb6fa-d29b-4014-b3a8-1c1bf75c0058)

10\. Congratulations! You have active EA success.

![](https://336892245-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FtVjBgAJnVI2mruGw1wLX%2Fuploads%2F1Sljs802gxLtjoXnlGWm%2Fimage.png?alt=media\&token=9bd9de6e-1b51-4818-8d95-2c839830c1e2)

11\. Back to channel enter **rfc help** to get command support

![](https://336892245-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FtVjBgAJnVI2mruGw1wLX%2Fuploads%2F18ngXYfR8fkNd0jR4nBc%2Fimage.png?alt=media\&token=6d3bf114-fe80-4639-a516-22b1b7378bd3)


# EA INPUT Describe

![](https://336892245-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FtVjBgAJnVI2mruGw1wLX%2Fuploads%2F2wRq86VYVxuAMfdzSgcV%2Fimage.png?alt=media\&token=1ce316af-4ebc-4973-9d78-7e23f78a5d2f)

![](https://336892245-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FtVjBgAJnVI2mruGw1wLX%2Fuploads%2FG4ifbvjLea51tu6DKtOM%2Fimage.png?alt=media\&token=5ded3d74-fc6f-4af5-9608-1c9c6ae4bb90)

✳️Telegram Token => Token Bot when create with BotFather

✳️Signal Provider

\=> Use **REDFOX\_SIGNAL** when you use signals from RedFox, **OTHER\_SIGNAL** when use signal other.

✳️LOTSIZE MODE

&#x20;     \=>**AUTO\_LOT** : If you want auto calculator position size by % of Balance to risk in one trade

&#x20;     \=>**FIXED\_LOTSIZE**: If you want fix position size

✳️Account Balance => Use to calculator position size when **LOTSIZE MODE** =**AUTO\_LOT**&#x20;

✳️% of balance to risk in one trade => Use to calculator position size when **LOTSIZE MODE** =**AUTO\_LOT**  and **Number open order by TP =1**

✳️Lotsize Fixed => Position size when open order and use **LOTSIZE MODE** =**FIXED\_LOTSIZE** and **Number open order by TP =1**

✳️Number open order by TP&#x20;

\=> **Number of open orders same signal**

**E.g: Number = 3 if will open 3 orders with TP respectively TP1 TP2 TP3 of signal**

**=== CONFIG FIXED\_LOTSIZE FOR OPEN BY TP ===**

{% hint style="warning" %}
Config will activated when Number open order > 1&#x20;

and **LOTSIZE MODE** =**FIXED\_LOTSIZE**
{% endhint %}

✳️Lotsize TP1 =>  Position size for order one

✳️Lotsize TP2 =>  Position size for order two

✳️Lotsize TP3 =>  Position size for order three

**=== CONFIG AUTO\_LOT FOR OPEN BY TP ===**

{% hint style="warning" %}
Config will activated when Number open order > 1&#x20;

and **LOTSIZE MODE** =**AUTO\_LOT**&#x20;
{% endhint %}

✳️% of balance to risk for TP1 **=>** Auto calculator Position size for order one

✳️% of balance to risk for TP2 **=>** Auto calculator Position size for order two

✳️% of balance to risk for TP3 **=>** Auto calculator Position size for order three

**=== Config SL & TP ===**

{% hint style="warning" %}
Note: FIXED,ATR only support open with a TP order
{% endhint %}

✳️Set SL & TP by

&#x20;     **=> SAME\_AS\_SIGNAL** : SL, TP will same signal

&#x20;     **=> SL\_TP\_FIXED**: SL, TP will fixed

&#x20;     **=> TP\_FIXED**: TP will fixed and SL same signal

&#x20;     **=> SL\_FIXED**: SL will fixed and TP will same signal

&#x20;     **=> ATR**: SL, TP will by ATR

**== SL & TP FIXED==**

✳️SL Pips Fixed : Number of pips to be set for SL

✳️TP Pips Fixed : Number of pips to be set for TP

**== SL & TP BY ATR ==**

✳️ATRPeriod

✳️SLATRMultiplier

✳️TPATRMultiplier

**========== MODE TRADE ==========**

**-----\[CLOSE CONFIG]-----**

✳️Percent Lot Close When TP1 (ex.1-100%) => When order hit TP1 it will auto close lotsize by percent&#x20;

✳️Percent Lot Close When TP2 (ex.1-100%) => When order hit TP2 it will auto close lotsize by percent&#x20;

✳️Active Close when pips to => When order hit pips config it will auto close lotsize by percent&#x20;

✳️Percent Lot Close When pips to target (ex.1-100%) => Percent close lotsize when hit pips

\-----\[MOVE SL CONFIG]-----

✳️Active Move SL when target to TP1&#x20;

&#x20;    \=> Config move SL when price hit TP1 with option **SL\_TO\_ENTRY**

✳️Active Move SL when target to TP2

&#x20;    \=> Config move SL when price hit TP1 with option **SL\_TO\_ENTRY, SL\_TO\_TP1**

✳️Active Move SL when pips to => When order hit pips config it will handle move sl&#x20;

✳️Move SL when pip to target&#x20;

&#x20;    Config move SL when pips hit target with option **SL\_TO\_ENTRY, SL\_TO\_TP1**

✳️Extra pips for sl target => Plus pips to price when move sl

\========== ORDER CONFIG ==========

✳️Open order same type by&#x20;

&#x20;    \=> DISTANCE\_TIME : Config allow  open same type by time

&#x20;    \=> DISTANCE\_PIPS: Config allow open same type by pips

✳️Time distance to open order same type (seconds) => Config for DISTANCE\_TIME&#x20;

✳️Pips distance to open order same type (pips) => Config for DISTANCE\_PIPS

✳️Limit orders allowed to open same type(Default 0: No Limit)

&#x20;   \=> Limit orders allowed to open same type in list order running

✳️When have order opposite type => If you want close order opposite you can select **CLOSE\_ORDER\_PREVIOUS**

✳️Skip Open Order Without TP AND SL => true if you want open order Without TP AND SL

\========== TRAILING STOP ==========

✳️Active Trailing Stop when target to

✳️Points Of Distance From The Current Stop

✳️Points Of Increment The Current Stop

\========== FILTERS ==========

✳️Filter Signals Mode

&#x20;   \=> ALL : No filter

&#x20;   \=> INCLUDE : Only open order in list symbols filter

&#x20;   \=> EXCLUDE : Skip open order in list symbols filter

✳️Enter Symbols Filter (ex: XAUUSD,EURUSD,.or skip) => Enter list symbols

✳️FILTER TYPE OPEN

&#x20;   \=>BUY\_SELL: Allow open all type

&#x20;   \=>ONLY\_BUY : Only allow open order type BUY

&#x20;   \=>ONLY\_SELL : Only allow open order type SELL

\=== TIME FILTER ===

✳️Start hour => Time bot will start  work time(E.g: 00)

✳️Ending hour => Time bot will end work(E.g: 24)

\========== SLIPPAGE ==========

✳️Enable Slippage => Turn on config Slippage

✳️Enter Slippage => Slippage allow open order

✳️Slippage conditions => Add conditions when open order been Slippage

\========== OTHERS ==========

✳️Suffix symbol ( Ex: XXXUSDc -> c ) => Add Suffix if symbols have contain Suffix&#x20;

✳️Limit of orders allowed to open (Default 0: No Limit)=> Limit order open


# Lot Size & Risk Management Guide

### 📋 Overview

This section controls how the EA calculates lot sizes for each trade. You can choose between automatic lot sizing based on risk percentage, or fixed lot sizes.

***

### ⚙️ Settings Explained

#### **1. Lot Size Calculation Mode**

```
LotMode = AUTO_LOT | FIXED_LOTSIZE | LOT_BY_BALANCE
```

**AUTO\_LOT**: EA automatically calculates lot size based on your risk percentage and Stop Loss distance.

* ✅ Best for consistent risk management
* ✅ Adapts to different Stop Loss sizes
* ⚠️ Requires proper SL in signals

**FIXED\_LOTSIZE**: Uses predetermined lot sizes regardless of risk.

* ✅ Simple and predictable
* ✅ Good for testing strategies
* ⚠️ Risk varies with SL distance

**LOT\_BY\_BALANCE**: Scales lot size with account balance.

***

#### **2. Basic Risk Settings**

**Balance**

```
Balance = 1000  // Account balance for calculations
```

* Set to `0` → EA uses your current MT4 account balance
* Set to specific value → EA uses this for risk calculations
* Useful for testing with virtual balance

**MaxRiskPerTrade**

```
MaxRiskPerTrade = 1  // Risk 1% per trade
```

* Percentage of balance you're willing to risk per trade
* Example: $10,000 balance × 1% = $100 risk per trade
* **Conservative**: 0.5-1%
* **Moderate**: 1-2%
* **Aggressive**: 2-5%

**LotDefault**

```
LotDefault = 0.01  // Fixed lot size
```

* Used when `LotMode = FIXED_LOTSIZE`
* This is your default lot for all trades

***

#### **3. TP Level Configuration**

**MaxTPLevel**

```
MaxTPLevel = TP5  // Can be TP1, TP2, TP3, TP4, TP5
```

Sets the highest Take Profit level EA will use from signals.

**Example:**

* Signal has: TP1, TP2, TP3, TP4, TP5
* You set: `MaxTPLevel = TP3`
* EA will only open orders for TP1, TP2, TP3
* TP4 and TP5 are ignored

**MaxOrdersPerSignal**

```
MaxOrdersPerSignal = 1  // Max orders per signal
```

* `1` = Open only 1 order per signal
* `3` = Open up to 3 orders (for TP1, TP2, TP3)
* `5` = Open 5 orders (one for each TP level)

**numberOpenOrderConfig**

```
numberOpenOrderConfig = NUMBER_BY_TP_SIGNAL | NUMBER_BY_CONFIG
```

**NUMBER\_BY\_TP\_SIGNAL**: Opens orders based on TP levels in signal

* Signal has TP1, TP2, TP3 → Opens 3 orders

**NUMBER\_BY\_CONFIG**: Opens orders based on `MaxOrdersPerSignal`

* Even if signal has 5 TPs, opens only `MaxOrdersPerSignal` orders

***

#### **4. Fixed Lot Per TP Level**

Used when `LotMode = FIXED_LOTSIZE`

```
LotTP1 = 0.03  // 0.03 lot for TP1 order
LotTP2 = 0.02  // 0.02 lot for TP2 order
LotTP3 = 0.01  // 0.01 lot for TP3 order
LotTP4 = 0.01
LotTP5 = 0.01
```

**Example Scenario:**

* Signal: EURUSD BUY with TP1, TP2, TP3
* EA opens:
  * Order 1: 0.03 lot → TP1
  * Order 2: 0.02 lot → TP2
  * Order 3: 0.01 lot → TP3
* Total exposure: 0.06 lot

***

#### **5. Auto Lot Risk Per TP Level**

Used when `LotMode = AUTO_LOT`

```
RiskPerTradeTP1 = 1  // Risk 1% for TP1
RiskPerTradeTP2 = 1  // Risk 1% for TP2
RiskPerTradeTP3 = 1  // Risk 1% for TP3
RiskPerTradeTP4 = 1
RiskPerTradeTP5 = 1
```

**How it works:**

For each TP level, EA calculates:

```
Lot Size = (Balance × Risk%) / (SL Distance in $ per lot)
```

**Example:**

* Balance: $10,000
* Risk per TP: 1%
* SL Distance: 50 pips
* Pip Value: $10/lot for EURUSD

Calculation for TP1:

```
Risk Amount = $10,000 × 1% = $100
SL Value = 50 pips × $10 = $500 per lot
Lot Size = $100 / $500 = 0.20 lot
```

***

#### **6. AllowPendingForDualEntry**

```
AllowPendingForDualEntry = true
```

When signal has 2 entry prices:

* `true`: Opens 1 market order at current price + 1 pending order at 2nd entry
* `false`: Opens only 1 market order, ignores 2nd entry

***

### 📊 Configuration Examples

#### **Example 1: Conservative Trader**

```
LotMode = AUTO_LOT
Balance = 0  // Use current balance
MaxRiskPerTrade = 0.5  // Risk only 0.5%
MaxTPLevel = TP3
MaxOrdersPerSignal = 3
RiskPerTradeTP1 = 0.5
RiskPerTradeTP2 = 0.3
RiskPerTradeTP3 = 0.2
```

**Result:** Very low risk, takes profit at 3 levels with decreasing risk allocation.

***

#### **Example 2: Aggressive Trader**

```
LotMode = AUTO_LOT
Balance = 0
MaxRiskPerTrade = 2  // Risk 2% per trade
MaxTPLevel = TP5
MaxOrdersPerSignal = 5
RiskPerTradeTP1 = 2
RiskPerTradeTP2 = 1.5
RiskPerTradeTP3 = 1
RiskPerTradeTP4 = 0.5
RiskPerTradeTP5 = 0.5
```

**Result:** Higher risk, takes all 5 TP levels with front-loaded risk.

***

#### **Example 3: Fixed Lot Scalper**

```
LotMode = FIXED_LOTSIZE
LotDefault = 0.10
MaxTPLevel = TP1
MaxOrdersPerSignal = 1
LotTP1 = 0.10
```

**Result:** Simple setup, 0.10 lot per trade, only TP1.

***

#### **Example 4: Balanced Pyramiding**

```
LotMode = FIXED_LOTSIZE
MaxTPLevel = TP3
MaxOrdersPerSignal = 3
LotTP1 = 0.05  // Largest position
LotTP2 = 0.03  // Medium
LotTP3 = 0.02  // Smallest
```

**Result:** Classic pyramiding - larger position at closer TP, smaller at distant TP.

***

#### **Example 5: Equal Risk Distribution**

```
LotMode = AUTO_LOT
Balance = 0
MaxRiskPerTrade = 1.5
MaxTPLevel = TP4
MaxOrdersPerSignal = 4
RiskPerTradeTP1 = 1.5
RiskPerTradeTP2 = 1.5
RiskPerTradeTP3 = 1.5
RiskPerTradeTP4 = 1.5
```

**Result:** Each TP level has equal 1.5% risk.

***

### ⚠️ Important Notes

#### **Risk Calculation Formula**

When using AUTO\_LOT:

```
Lot = (Balance × Risk%) / (SL in pips × Pip Value)
```

**Key factors:**

1. **Balance**: Higher balance → larger lots
2. **Risk%**: Higher % → larger lots
3. **SL Distance**: Larger SL → smaller lots (to maintain risk)
4. **Pip Value**: Varies by instrument (EURUSD ≠ XAUUSD)

***

#### **Common Mistakes to Avoid**

❌ **Setting MaxRiskPerTrade = 0 with AUTO\_LOT**

* EA will fail to initialize
* Must be > 0

❌ **Total risk > account balance**

* Example: 5 orders × 2% each = 10% total risk
* With losing streak, can blow account quickly

❌ **Not considering correlation**

* Opening EURUSD, GBPUSD, AUDUSD at once
* All may move together = multiplied risk

❌ **Using AUTO\_LOT without SL**

* EA cannot calculate lot size
* Will skip order or use default

***

### 💡 Best Practices

#### ✅ **1. Start Conservative**

```
MaxRiskPerTrade = 0.5-1%
Total risk per signal (all TPs) < 3%
```

#### ✅ **2. Decrease Risk for Higher TPs**

```
RiskPerTradeTP1 = 1.0  // Close TP = higher confidence
RiskPerTradeTP2 = 0.7  // Medium TP
RiskPerTradeTP3 = 0.5  // Distant TP = lower confidence
```

#### ✅ **3. Test on Demo First**

* Run for 1-2 weeks
* Verify lot sizes are reasonable
* Check total exposure

#### ✅ **4. Monitor Drawdown**

* Max drawdown should be < 20%
* If exceeds, reduce risk%

#### ✅ **5. Account for Leverage**

* Higher leverage ≠ higher profit
* Use proper risk% regardless of leverage

***

### 🎯 Quick Start Recommendations

#### **Small Account ($500-$2000)**

```
LotMode = AUTO_LOT
Balance = 0
MaxRiskPerTrade = 1
MaxTPLevel = TP2
MaxOrdersPerSignal = 2
RiskPerTradeTP1 = 1
RiskPerTradeTP2 = 0.5
```

#### **Medium Account ($2000-$10000)**

```
LotMode = AUTO_LOT
Balance = 0
MaxRiskPerTrade = 1
MaxTPLevel = TP3
MaxOrdersPerSignal = 3
RiskPerTradeTP1 = 1
RiskPerTradeTP2 = 0.8
RiskPerTradeTP3 = 0.5
```

#### **Large Account ($10000+)**

```
LotMode = AUTO_LOT
Balance = 0
MaxRiskPerTrade = 0.5-1
MaxTPLevel = TP4
MaxOrdersPerSignal = 4
RiskPerTradeTP1 = 1
RiskPerTradeTP2 = 0.8
RiskPerTradeTP3 = 0.6
RiskPerTradeTP4 = 0.4
```

***

### 📞 Support

If you have questions about lot sizing:

1. Check your EA logs for lot calculation details
2. Test on demo account first
3. Contact support with specific scenarios

**Remember:** Good risk management = Long-term success! 🚀


# Directional Risk Strategy Guide

### 📋 Overview

Directional Risk Strategy allows you to adjust lot sizes and enable/disable orders based on trade direction (BUY vs SELL). This is useful when you have a market bias or want to trade only one direction.

**Key Concept:** Instead of equal lot sizes for BUY and SELL, you can risk more on BUYs (bullish bias) or more on SELLs (bearish bias), or trade only one direction.

***

### ⚙️ Settings Explained

#### **1. DirectionalRiskPreset**

```
DirectionalRiskPreset = PRESET_DISABLED | PRESET_BUY_AGGRESSIVE | 
                        PRESET_BUY_VERY_AGGRESSIVE | PRESET_BUY_ONLY |
                        PRESET_SELL_AGGRESSIVE | PRESET_SELL_VERY_AGGRESSIVE |
                        PRESET_SELL_ONLY | PRESET_BALANCED | PRESET_CUSTOM
```

***

### 🎯 Preset Configurations

#### **PRESET\_DISABLED** (Default)

```
Buy:  100% risk (normal)
Sell: 100% risk (normal)
```

* No directional bias
* Standard risk management applies
* **Use when:** No market opinion, trade both directions equally

***

#### **PRESET\_BUY\_AGGRESSIVE**

```
Buy:  150% risk (1.5x multiplier)
Sell: 100% risk (normal)
```

**Example:**

* Base risk: 1% per trade
* BUY signal: EA risks 1.5%
* SELL signal: EA risks 1%

**Use when:**

* Bullish market trend
* You expect more profit from BUY trades
* Want larger positions on BUYs

**Real Example:**

```
Signal: EURUSD BUY, SL 50 pips
Balance: $10,000
Base Risk: 1% = $100

Normal lot: 0.20 lot
With PRESET_BUY_AGGRESSIVE: 0.30 lot (50% larger)
```

***

#### **PRESET\_BUY\_VERY\_AGGRESSIVE**

```
Buy:  200% risk (2x multiplier)
Sell: 100% risk (normal)
```

**Example:**

* Base risk: 1%
* BUY trades: 2% risk (double)
* SELL trades: 1% risk (normal)

**Use when:**

* Very strong bullish conviction
* Most signals are expected to be profitable BUYs
* ⚠️ Higher risk - use carefully!

***

#### **PRESET\_BUY\_ONLY**

```
Buy:  100% risk (normal)
Sell: DISABLED (orders blocked)
```

**What happens:**

* BUY signals: Opens normally
* SELL signals: Completely ignored/skipped
* EA logs: "Sell orders are disabled by directional risk preset"

**Use when:**

* Only want to trade long positions
* Strong bullish bias
* Bearish signals historically unprofitable

**Example Scenario:**

```
Signal 1: XAUUSD BUY → ✅ Opens order
Signal 2: EURUSD SELL → ⚠️ Skipped
Signal 3: GBPUSD BUY → ✅ Opens order
```

***

#### **PRESET\_SELL\_AGGRESSIVE**

```
Buy:  100% risk (normal)
Sell: 150% risk (1.5x multiplier)
```

**Use when:**

* Bearish market trend
* Expect better performance from SELL trades
* Want larger short positions

***

#### **PRESET\_SELL\_VERY\_AGGRESSIVE**

```
Buy:  100% risk (normal)
Sell: 200% risk (2x multiplier)
```

**Use when:**

* Very strong bearish conviction
* Most profitable signals expected to be SELLs

***

#### **PRESET\_SELL\_ONLY**

```
Buy:  DISABLED (orders blocked)
Sell: 100% risk (normal)
```

**What happens:**

* BUY signals: Completely ignored
* SELL signals: Opens normally

**Use when:**

* Only want short positions
* Strong bearish bias
* Long signals historically unprofitable

***

#### **PRESET\_BALANCED**

```
Buy:  100% risk
Sell: 100% risk
```

* Same as PRESET\_DISABLED
* Explicit equal treatment
* Use for clarity in configuration

***

#### **PRESET\_CUSTOM**

```
Allows you to set your own multipliers
```

***

### 🔧 Custom Multipliers (PRESET\_CUSTOM only)

When `DirectionalRiskPreset = PRESET_CUSTOM`, you can set:

#### **BuyMultiplier**

```
BuyMultiplier = 1.0  // 1.0 = normal, 1.5 = +50%, 2.0 = double, 0.5 = half
```

**Examples:**

* `1.0` = Normal BUY risk
* `1.3` = 30% more risk on BUYs
* `0.7` = 30% less risk on BUYs
* `2.5` = 2.5x risk on BUYs (very aggressive!)
* `0` = Disable BUY orders

#### **SellMultiplier**

```
SellMultiplier = 1.0
```

Same logic as BuyMultiplier but for SELL orders.

#### **BuyMaxLot**

```
BuyMaxLot = 0  // 0 = use global LotMax
```

* Set maximum lot size specifically for BUY orders
* Overrides global `LotMax` for BUYs
* `0` = uses global setting

**Example:**

```
LotMax = 0.50  // Global max
BuyMaxLot = 0.80  // BUY orders can go up to 0.80
SellMaxLot = 0.30  // SELL orders limited to 0.30
```

#### **SellMaxLot**

```
SellMaxLot = 0
```

Maximum lot size for SELL orders.

***

### 📊 Real-World Examples

#### **Example 1: Bullish Gold Trader**

**Scenario:** Trading XAUUSD, believe gold will go up long-term.

**Configuration:**

```
DirectionalRiskPreset = PRESET_BUY_AGGRESSIVE
MaxRiskPerTrade = 1%
```

**Results:**

```
Signal: XAUUSD BUY, SL 50 pips
→ Opens with 1.5% risk (0.30 lot if calculated)

Signal: XAUUSD SELL, SL 50 pips
→ Opens with 1% risk (0.20 lot if calculated)
```

**Outcome:** More profit potential from BUY trades you believe in.

***

#### **Example 2: Only Sell EURUSD**

**Scenario:** ECB dovish, USD strong, only want short EUR.

**Configuration:**

```
DirectionalRiskPreset = PRESET_SELL_ONLY
```

**Results:**

```
Signal: EURUSD SELL → ✅ Executes
Signal: EURUSD BUY → ⚠️ Blocked (logged as "Buy orders disabled")
Signal: EURUSD SELL → ✅ Executes
```

***

#### **Example 3: Custom Asymmetric Risk**

**Scenario:** Want 2x risk on BUYs, 0.5x risk on SELLs.

**Configuration:**

```
DirectionalRiskPreset = PRESET_CUSTOM
BuyMultiplier = 2.0
SellMultiplier = 0.5
BuyMaxLot = 1.0
SellMaxLot = 0.20
```

**Results:**

```
Base risk: 1%

BUY signal:
- Risk: 2% (doubled)
- Max lot: 1.0

SELL signal:
- Risk: 0.5% (halved)
- Max lot: 0.20
```

***

#### **Example 4: Moderate Directional Bias**

**Scenario:** Slightly bullish but still want to trade both directions.

**Configuration:**

```
DirectionalRiskPreset = PRESET_CUSTOM
BuyMultiplier = 1.3  // 30% more on BUYs
SellMultiplier = 0.8  // 20% less on SELLs
```

**Result:** Subtle bias without extreme positions.

***

#### **Example 5: Testing One Direction**

**Scenario:** Want to backtest BUY-only strategy.

**Configuration:**

```
DirectionalRiskPreset = PRESET_BUY_ONLY
```

**Benefit:**

* Clean backtest of long-only strategy
* No need to manually filter signals
* Can compare vs SELL\_ONLY and BALANCED

***

### 💡 Strategy Ideas

#### **1. Trend Following**

During **uptrend:**

```
PRESET_BUY_AGGRESSIVE or PRESET_BUY_VERY_AGGRESSIVE
```

During **downtrend:**

```
PRESET_SELL_AGGRESSIVE or PRESET_SELL_VERY_AGGRESSIVE
```

***

#### **2. Carry Trade**

For currency pairs where you earn swap on longs:

```
PRESET_BUY_ONLY or BuyMultiplier = 1.5, SellMultiplier = 0.5
```

***

#### **3. Index Trading**

Stock indices tend to go up long-term:

```
PRESET_BUY_AGGRESSIVE
```

Short-term trading during crashes:

```
PRESET_SELL_ONLY
```

***

#### **4. Commodity Bias**

**Gold (bullish long-term):**

```
PRESET_BUY_AGGRESSIVE
```

**Oil (volatile, short opportunities):**

```
PRESET_BALANCED or PRESET_SELL_AGGRESSIVE
```

***

#### **5. News-Based**

**Before positive news (ECB rate cut expected):**

```
PRESET_SELL_ONLY on EURUSD
```

**After news (if trend reverses):**

```
Switch to PRESET_BUY_ONLY
```

***

### ⚠️ Important Warnings

#### **❌ Don't Use Without Reason**

Bad:

```
DirectionalRiskPreset = PRESET_BUY_ONLY
Reason: "I just like BUYs"
```

Good:

```
DirectionalRiskPreset = PRESET_BUY_ONLY
Reason: "Strong uptrend on 4H/Daily, fundamentals bullish"
```

***

#### **❌ Don't Forget to Switch**

* Market conditions change!
* Uptrend → Downtrend: Change from BUY\_AGGRESSIVE to SELL\_AGGRESSIVE
* Set calendar reminders to review settings weekly

***

#### **❌ Multipliers > 2.0 Are Dangerous**

```
BuyMultiplier = 3.0  // 3x risk = VERY risky!
```

* Can blow account quickly
* Only use > 2.0 if you have **very strong** conviction
* Prefer 1.0-1.5 range for safety

***

#### **❌ Testing Required**

* Always backtest new directional settings
* Run on demo for 2-4 weeks
* Verify performance before live

***

### 🎯 Best Practices

#### ✅ **1. Start with PRESET\_DISABLED**

* Get comfortable with standard trading first
* Add directional bias only after consistent results

#### ✅ **2. Use Moderate Multipliers**

```
Good: 1.3 - 1.5
Risky: 2.0 - 2.5
Dangerous: > 3.0
```

#### ✅ **3. Align with Higher Timeframes**

* Daily/Weekly uptrend → BUY\_AGGRESSIVE
* Daily/Weekly downtrend → SELL\_AGGRESSIVE

#### ✅ **4. Combine with Filters**

```
DirectionalRiskPreset = PRESET_BUY_AGGRESSIVE
+ ListSymbol = "XAUUSD"  // Only on Gold
```

#### ✅ **5. Document Your Bias**

Keep notes:

```
Date: 2024-10-28
Setting: PRESET_BUY_AGGRESSIVE
Reason: Fed dovish, expect USD weakness
Review Date: 2024-11-15
```

***

### 🔍 How EA Logs Directional Decisions

When you enable directional risk, EA will log:

```
========== DIRECTIONAL RISK CONFIGURATION ==========
Preset: PRESET_BUY_AGGRESSIVE
Buy Orders: ENABLED (Multiplier: 1.5x)
Sell Orders: ENABLED (Multiplier: 1x)
=====================================================
```

When order is blocked:

```
Buy orders are disabled by directional risk preset
```

When multiplier is applied:

```
Base risk: 1.0%
Direction: BUY
Applied multiplier: 1.5x
Final risk: 1.5%
Calculated lot: 0.30
```

***

### 📊 Performance Comparison

#### **Test Results** (Example - Your results may vary)

**Symbol:** XAUUSD **Period:** 3 months **Signals:** 100 total (50 BUY, 50 SELL)

| Preset          | Profit | Drawdown | Win Rate          |
| --------------- | ------ | -------- | ----------------- |
| DISABLED        | +15%   | -8%      | 55%               |
| BUY\_AGGRESSIVE | +22%   | -12%     | 58% BUY, 52% SELL |
| BUY\_ONLY       | +18%   | -10%     | 58%               |
| SELL\_ONLY      | +8%    | -6%      | 52%               |

**Conclusion:** BUY\_AGGRESSIVE was most profitable but with higher drawdown.

***

### 💼 When to Use Each Preset

| Market Condition     | Recommended Preset                         |
| -------------------- | ------------------------------------------ |
| Strong uptrend       | BUY\_AGGRESSIVE or BUY\_VERY\_AGGRESSIVE   |
| Strong downtrend     | SELL\_AGGRESSIVE or SELL\_VERY\_AGGRESSIVE |
| Sideways/Ranging     | BALANCED or DISABLED                       |
| Bullish fundamentals | BUY\_AGGRESSIVE                            |
| Bearish fundamentals | SELL\_AGGRESSIVE                           |
| Testing strategy     | BUY\_ONLY or SELL\_ONLY                    |
| No clear bias        | DISABLED                                   |

***

### 🚀 Quick Start Guide

#### **Step 1:** Analyze Market

* Check trend on Daily/Weekly
* Review fundamentals
* Identify bias (bullish/bearish/neutral)

#### **Step 2:** Choose Preset

```
Strong bias → AGGRESSIVE or VERY_AGGRESSIVE
Moderate bias → CUSTOM (1.3-1.5 multiplier)
No bias → DISABLED
Testing → _ONLY presets
```

#### **Step 3:** Monitor & Adjust

* Review results weekly
* Adjust if market changes
* Document reasons for changes

***

### 📞 Support

**Common Questions:**

**Q: Can I change preset during live trading?** A: Yes, but EA restart required. Close positions first for clean state.

**Q: What if I set BuyMultiplier = 0?** A: Same as BUY\_ONLY preset - BUY orders disabled.

**Q: Does this affect pending orders?** A: Yes, all order types (market, limit, stop) affected equally.

**Q: Can I use different settings per symbol?** A: Not directly. Use separate EA instances or file config feature.

***

**Remember:** Directional bias should be based on analysis, not gut feeling! 📈📉


# Stop Loss & Take Profit Configuration Guide

### 📋 Overview

RedFox Copier Pro offers flexible SL (Stop Loss) and TP (Take Profit) configuration with multiple calculation modes. You can use signal values directly, apply fixed values, calculate based on ATR (Average True Range), or use Risk-Reward ratios.

**Key Capabilities:**

* 4 SL modes: SAME\_AS\_SIGNAL, FIXED, ATR\_BASED, RR\_BASED
* 4 TP modes: SAME\_AS\_SIGNAL, FIXED, ATR\_BASED, RR\_BASED
* Support for multiple TP levels (TP1, TP2, TP3)
* Dynamic ATR calculation
* Flexible Risk-Reward ratios

***

### ⚙️ Stop Loss Settings

#### **1. SL\_Mode**

```
SL_Mode = SAME_AS_SIGNAL | FIXED | ATR_BASED | RR_BASED
```

***

#### **SAME\_AS\_SIGNAL** (Default)

**Behavior:** Uses SL value directly from Telegram signal.

**Example Signal:**

```
📊 EURUSD BUY @ 1.0850
SL: 1.0800
TP: 1.0900
```

**Result:**

```
EA opens: BUY EURUSD @ 1.0850
Stop Loss: 1.0800 (exactly as signal)
```

**When to use:**

* Trust signal provider's SL placement
* Signal provider has good risk management
* Signals include optimal SL values

**Pros:**

* ✅ Respects signal provider's analysis
* ✅ No additional calculation needed
* ✅ Simple and reliable

**Cons:**

* ❌ No customization
* ❌ May not fit your risk tolerance

***

#### **FIXED** Mode

**Behavior:** Replaces signal SL with your fixed pip/point value.

**Settings:**

```
SL_Mode = FIXED
SL_Fixed_Pips = 50  // 50 pips for all orders
```

**Example:**

```
Signal: GBPUSD BUY @ 1.2700, SL: 1.2650 (50 pips)
Your Setting: SL_Fixed_Pips = 30

Result:
Opens: BUY @ 1.2700
Stop Loss: 1.2670 (30 pips, overrides signal's 50)
```

**When to use:**

* Consistent SL distance for all trades
* Signal SL too wide/tight for your strategy
* Backtesting different SL values

**Configuration Examples:**

**Tight SL (Scalping):**

```
SL_Fixed_Pips = 15  // 15 pips
```

**Medium SL (Day Trading):**

```
SL_Fixed_Pips = 50  // 50 pips
```

**Wide SL (Swing Trading):**

```
SL_Fixed_Pips = 200  // 200 pips
```

**Important:**

* Value in **pips** for Forex (0.0001 for EUR, 0.01 for JPY)
* Value in **points** for Gold/Indices (e.g., 50 = $5 for XAUUSD)

***

#### **ATR\_BASED** Mode

**Behavior:** Calculates SL based on market volatility using Average True Range.

**Settings:**

```
SL_Mode = ATR_BASED
SL_ATR_Period = 14      // ATR calculation period
SL_ATR_Multiplier = 1.5  // ATR multiplier
SL_ATR_Timeframe = PERIOD_H1  // Timeframe for ATR
```

**Formula:**

```
SL Distance = ATR(Period, Timeframe) × Multiplier

Example:
ATR(14, H1) = 40 pips
Multiplier = 1.5
SL Distance = 40 × 1.5 = 60 pips
```

**Real Example:**

```
Signal: EURUSD BUY @ 1.0850
ATR(14, H1) = 35 pips
Multiplier = 2.0

Calculation:
SL Distance = 35 × 2.0 = 70 pips
Stop Loss = 1.0850 - 0.0070 = 1.0780
```

**When to use:**

* Want SL to adapt to market volatility
* Wider SL in volatile markets, tighter in calm markets
* Professional risk management approach

**Timeframe Selection:**

| Timeframe | Use Case         | Typical ATR  |
| --------- | ---------------- | ------------ |
| M15       | Scalping         | 10-20 pips   |
| H1        | Day trading      | 30-50 pips   |
| H4        | Swing trading    | 60-100 pips  |
| D1        | Position trading | 100-200 pips |

**Multiplier Guidelines:**

| Multiplier | Risk Level | Description                   |
| ---------- | ---------- | ----------------------------- |
| 0.5 - 1.0  | Tight      | Frequent SL hits, quick exits |
| 1.0 - 2.0  | Balanced   | Good balance of protection    |
| 2.0 - 3.0  | Wide       | More room, fewer false stops  |
| > 3.0      | Very Wide  | Use with caution              |

**Configuration Examples:**

**Conservative (Scalping):**

```
SL_ATR_Period = 14
SL_ATR_Multiplier = 1.0
SL_ATR_Timeframe = PERIOD_M15
```

**Balanced (Day Trading):**

```
SL_ATR_Period = 14
SL_ATR_Multiplier = 1.5
SL_ATR_Timeframe = PERIOD_H1
```

**Aggressive (Swing Trading):**

```
SL_ATR_Period = 20
SL_ATR_Multiplier = 2.5
SL_ATR_Timeframe = PERIOD_H4
```

***

#### **RR\_BASED** Mode

**Behavior:** Calculates SL based on desired Risk-Reward ratio using TP distance.

**Settings:**

```
SL_Mode = RR_BASED
RR_Ratio = 2.0  // Risk-Reward ratio (TP:SL)
```

**Formula:**

```
SL Distance = TP Distance / RR_Ratio

Example:
TP Distance = 100 pips
RR_Ratio = 2.0
SL Distance = 100 / 2.0 = 50 pips
```

**Real Example:**

```
Signal: XAUUSD BUY @ 2650
TP: 2700 (50 points distance)
RR_Ratio = 2.5

Calculation:
SL Distance = 50 / 2.5 = 20 points
Stop Loss = 2650 - 20 = 2630
```

**When to use:**

* Want consistent risk-reward ratios
* Professional trading with defined RR targets
* Risk management based on profit targets

**RR Ratio Guidelines:**

| RR Ratio | SL vs TP       | Win Rate Needed |
| -------- | -------------- | --------------- |
| 1:1      | Equal          | 50%             |
| 1:2      | SL half of TP  | 34%             |
| 1:3      | SL third of TP | 26%             |
| 1:5      | SL 1/5 of TP   | 17%             |

**Note:** Higher RR = Tighter SL = More frequent stops. Lower win rate acceptable.

***

### 🎯 Take Profit Settings

#### **2. TP\_Mode**

```
TP_Mode = SAME_AS_SIGNAL | FIXED | ATR_BASED | RR_BASED
```

All modes work identically to SL modes but calculate TP instead.

***

#### **SAME\_AS\_SIGNAL** (Default)

**Behavior:** Uses TP values directly from signal (TP1, TP2, TP3).

**Example Signal:**

```
GBPUSD SELL @ 1.2700
TP1: 1.2650 (50 pips)
TP2: 1.2600 (100 pips)
TP3: 1.2550 (150 pips)
```

**Result:**

```
EA opens 3 orders with exact TP levels:
Order 1: TP @ 1.2650
Order 2: TP @ 1.2600
Order 3: TP @ 1.2550
```

***

#### **FIXED** Mode

**Settings:**

```
TP_Mode = FIXED
TP_Fixed_Pips = 100  // 100 pips for all TP
```

**Example:**

```
Signal: EURUSD BUY @ 1.0850
Your Setting: TP_Fixed_Pips = 80

Result:
Opens: BUY @ 1.0850
Take Profit: 1.0930 (80 pips, ignores signal TP)
```

**When to use:**

* Consistent profit targets
* Signal TPs don't match your strategy
* Testing different TP distances

***

#### **ATR\_BASED** Mode

**Settings:**

```
TP_Mode = ATR_BASED
TP_ATR_Period = 14
TP_ATR_Multiplier = 2.0
TP_ATR_Timeframe = PERIOD_H1
```

**Formula:**

```
TP Distance = ATR(Period, Timeframe) × Multiplier

Example:
ATR(14, H1) = 40 pips
Multiplier = 2.0
TP Distance = 40 × 2.0 = 80 pips
```

**When to use:**

* Profit targets based on volatility
* Higher TP in volatile markets
* Professional adaptive trading

**Configuration Example:**

```
TP_ATR_Multiplier = 2.0  // TP is 2x ATR
SL_ATR_Multiplier = 1.0  // SL is 1x ATR
// Results in 2:1 RR ratio
```

***

#### **RR\_BASED** Mode

**Settings:**

```
TP_Mode = RR_BASED
RR_Ratio = 2.0
```

**Formula:**

```
TP Distance = SL Distance × RR_Ratio

Example:
SL Distance = 50 pips
RR_Ratio = 2.0
TP Distance = 50 × 2.0 = 100 pips
```

**Real Example:**

```
Signal: EURUSD BUY @ 1.0850
SL: 1.0800 (50 pips)
RR_Ratio = 3.0

Calculation:
TP Distance = 50 × 3.0 = 150 pips
Take Profit = 1.0850 + 0.0150 = 1.1000
```

**When to use:**

* Enforce minimum RR ratio
* Professional risk management
* Consistent profitability targets

***

### 📊 Multiple TP Levels

#### **3. Number\_TP\_Level**

```
Number_TP_Level = 1 | 2 | 3
```

**Controls how many TP levels to use.**

***

#### **Single TP (Number\_TP\_Level = 1)**

**Behavior:** Opens one order per signal with one TP.

**Example:**

```
Signal: XAUUSD BUY, TP1: 2700, TP2: 2720
Setting: Number_TP_Level = 1

Result:
Opens: 1 order with TP @ 2700 (only TP1 used)
```

**When to use:**

* Simple trading, one profit target
* Signals rarely have multiple TPs
* Reduced order count

***

#### **Dual TP (Number\_TP\_Level = 2)**

**Behavior:** Opens two orders, each with different TP level.

**Example:**

```
Signal: EURUSD SELL, TP1: 1.0800, TP2: 1.0750
Setting: Number_TP_Level = 2

Result:
Order 1: TP @ 1.0800 (TP1)
Order 2: TP @ 1.0750 (TP2)
```

**When to use:**

* Partial profit taking strategy
* Balance risk and reward
* Most common configuration

***

#### **Triple TP (Number\_TP\_Level = 3)**

**Behavior:** Opens three orders with three TP levels.

**Example:**

```
Signal: GBPUSD BUY
TP1: 1.2750 (50 pips)
TP2: 1.2800 (100 pips)
TP3: 1.2850 (150 pips)

Setting: Number_TP_Level = 3

Result:
Order 1: TP @ 1.2750
Order 2: TP @ 1.2800
Order 3: TP @ 1.2850
```

**When to use:**

* Maximum profit potential
* Strong trending signals
* Accept more order management complexity

**Note:** If signal only has 2 TPs but you set Number\_TP\_Level = 3, EA only opens 2 orders.

***

### 🔧 Advanced Settings

#### **4. SkipOrderWithoutTP**

```
SkipOrderWithoutTP = true | false
```

**Purpose:** Control whether to open orders when signal has no TP.

**When true:**

```
Signal: EURUSD BUY @ 1.0850, SL: 1.0800, TP: (none)
Result: ⚠️ Signal skipped (logged as "No TP level found")
```

**When false:**

```
Signal: EURUSD BUY @ 1.0850, SL: 1.0800, TP: (none)
Result: ✅ Opens order without TP (manual management needed)
```

**Recommendation:**

* `true` (default): Safer, enforces TP requirement
* `false`: Use only if you manually manage exits

***

#### **5. MinSLPips / MaxSLPips**

```
MinSLPips = 5   // Minimum SL distance
MaxSLPips = 500 // Maximum SL distance
```

**Purpose:** Validate calculated SL is within acceptable range.

**Example:**

```
MinSLPips = 10
MaxSLPips = 200

Scenario 1: Calculated SL = 5 pips
Result: ⚠️ Order rejected (too tight, below minimum)

Scenario 2: Calculated SL = 100 pips
Result: ✅ Order accepted (within range)

Scenario 3: Calculated SL = 300 pips
Result: ⚠️ Order rejected (too wide, above maximum)
```

**When to use:**

* Prevent extremely tight SL (broker limitations, spread)
* Prevent extremely wide SL (risk management)
* Validate ATR-based calculations

**Broker Considerations:**

| Broker Type    | Min SL Recommended |
| -------------- | ------------------ |
| ECN/Low Spread | 3-5 pips           |
| Standard       | 10-15 pips         |
| High Spread    | 20-30 pips         |

**Symbol-Specific:**

| Symbol | Min SL    | Max SL      |
| ------ | --------- | ----------- |
| EURUSD | 5 pips    | 200 pips    |
| GBPUSD | 10 pips   | 300 pips    |
| XAUUSD | 20 points | 500 points  |
| US30   | 50 points | 2000 points |

***

#### **6. MinTPPips / MaxTPPips**

```
MinTPPips = 10   // Minimum TP distance
MaxTPPips = 1000 // Maximum TP distance
```

Same validation logic as SL but for Take Profit.

***

### 💼 Real-World Configuration Examples

#### **Example 1: Copy Signals Exactly**

**Goal:** Trust signal provider completely.

**Configuration:**

```
SL_Mode = SAME_AS_SIGNAL
TP_Mode = SAME_AS_SIGNAL
Number_TP_Level = 3
SkipOrderWithoutTP = true
```

**Result:** Exact copy of all signal values.

***

#### **Example 2: Fixed Risk-Reward**

**Goal:** 50 pip SL, 100 pip TP on all trades.

**Configuration:**

```
SL_Mode = FIXED
SL_Fixed_Pips = 50

TP_Mode = FIXED
TP_Fixed_Pips = 100

Number_TP_Level = 1
```

**Result:** Consistent 2:1 RR ratio, one TP per signal.

***

#### **Example 3: Volatility-Based (Professional)**

**Goal:** Adapt SL/TP to market conditions using ATR.

**Configuration:**

```
SL_Mode = ATR_BASED
SL_ATR_Period = 14
SL_ATR_Multiplier = 1.5
SL_ATR_Timeframe = PERIOD_H1

TP_Mode = ATR_BASED
TP_ATR_Period = 14
TP_ATR_Multiplier = 3.0  // 2:1 RR (3.0 / 1.5)
TP_ATR_Timeframe = PERIOD_H1

Number_TP_Level = 1
```

**Result:**

* Calm market: Tight SL/TP (e.g., 20/40 pips)
* Volatile market: Wide SL/TP (e.g., 80/160 pips)

***

#### **Example 4: Enforce Minimum RR**

**Goal:** Use signal TPs but ensure 2:1 minimum RR.

**Configuration:**

```
SL_Mode = SAME_AS_SIGNAL

TP_Mode = RR_BASED
RR_Ratio = 2.0

Number_TP_Level = 2
```

**Example:**

```
Signal: GBPUSD BUY @ 1.2700
SL: 1.2650 (50 pips)
TP1: 1.2750 (signal value ignored)

Calculation:
TP Distance = 50 × 2.0 = 100 pips
TP1: 1.2800 (calculated)
```

***

#### **Example 5: Scalping Setup**

**Goal:** Tight SL/TP for quick trades.

**Configuration:**

```
SL_Mode = ATR_BASED
SL_ATR_Period = 14
SL_ATR_Multiplier = 0.8
SL_ATR_Timeframe = PERIOD_M15

TP_Mode = RR_BASED
RR_Ratio = 1.5

Number_TP_Level = 1
MinSLPips = 5
MaxSLPips = 30
```

**Result:** 5-15 pip SL, 1.5:1 RR, M15 volatility-based.

***

#### **Example 6: Swing Trading Setup**

**Goal:** Wide SL/TP for long-term positions.

**Configuration:**

```
SL_Mode = ATR_BASED
SL_ATR_Period = 20
SL_ATR_Multiplier = 2.5
SL_ATR_Timeframe = PERIOD_H4

TP_Mode = ATR_BASED
TP_ATR_Period = 20
TP_ATR_Multiplier = 5.0  // 2:1 RR
TP_ATR_Timeframe = PERIOD_H4

Number_TP_Level = 2
MinSLPips = 50
MaxSLPips = 500
```

**Result:** 100-200 pip SL, 200-400 pip TP, H4 trend-based.

***

### ⚠️ Common Mistakes

#### ❌ **Mistake 1: ATR Timeframe Mismatch**

**Bad:**

```
Trading Style: Scalping (M5 signals)
SL_ATR_Timeframe = PERIOD_D1  // Daily ATR too wide!
```

**Good:**

```
Trading Style: Scalping
SL_ATR_Timeframe = PERIOD_M15  // Match trading timeframe
```

***

#### ❌ **Mistake 2: Unrealistic RR Ratios**

**Bad:**

```
RR_Ratio = 10.0  // 10:1 requires only 9% win rate (unrealistic!)
```

**Good:**

```
RR_Ratio = 2.0 - 3.0  // Balanced and achievable
```

***

#### ❌ **Mistake 3: No SL Validation**

**Bad:**

```
MinSLPips = 0  // No minimum!
MaxSLPips = 0  // No maximum!
// Result: 1 pip SL accepted = instant stop out
```

**Good:**

```
MinSLPips = 10
MaxSLPips = 200
```

***

#### ❌ **Mistake 4: Fixed Values for All Symbols**

**Bad:**

```
SL_Fixed_Pips = 50  // Same for EURUSD and XAUUSD
// EURUSD: 50 pips = $5/lot (OK)
// XAUUSD: 50 points = $50/lot (too wide!)
```

**Good:** Use ATR\_BASED or separate EA instances per symbol group.

***

#### ❌ **Mistake 5: Too Many TP Levels**

**Bad:**

```
Number_TP_Level = 3
Signal rarely has TP2/TP3
// Result: Most signals only open 1 order anyway
```

**Good:** Match your setting to signal provider's format.

***

### ✅ Best Practices

#### ✅ **1. Start Simple**

* Begin with SAME\_AS\_SIGNAL for both SL and TP
* Get comfortable with signal provider's style
* Add customization later if needed

#### ✅ **2. Match Timeframes**

```
Scalping (M5): ATR_Timeframe = M15
Day Trading (H1): ATR_Timeframe = H1
Swing Trading (H4): ATR_Timeframe = H4/D1
```

#### ✅ **3. Test RR Ratios**

* Backtest different ratios (1.5, 2.0, 3.0)
* Find optimal for your signal provider
* Consider win rate vs RR tradeoff

#### ✅ **4. Use Min/Max Validation**

* Always set MinSLPips/MaxSLPips
* Prevent extreme values
* Symbol-specific settings preferred

#### ✅ **5. Document Your Logic**

```
Configuration Notes:
Date: 2024-10-28
SL_Mode: ATR_BASED (1.5x H1)
TP_Mode: RR_BASED (2.0)
Reason: Want volatility-based SL, enforce 2:1 RR
Review Date: 2024-11-15
```

***

### 🎯 Strategy Combinations

#### **Conservative Trader**

```
SL_Mode = ATR_BASED (Multiplier: 2.0, Wide SL)
TP_Mode = RR_BASED (RR_Ratio: 1.5, Modest target)
Number_TP_Level = 1
```

#### **Aggressive Trader**

```
SL_Mode = FIXED (Tight SL: 20 pips)
TP_Mode = RR_BASED (RR_Ratio: 3.0, High target)
Number_TP_Level = 1
```

#### **Balanced Trader**

```
SL_Mode = ATR_BASED (Multiplier: 1.5)
TP_Mode = ATR_BASED (Multiplier: 3.0)  // 2:1 RR
Number_TP_Level = 2
```

#### **Signal Follower**

```
SL_Mode = SAME_AS_SIGNAL
TP_Mode = SAME_AS_SIGNAL
Number_TP_Level = 3
```

***

### 📊 Performance Comparison

**Test Period:** 3 months, 200 signals

| Configuration        | Win Rate | Avg RR | Profit | Drawdown |
| -------------------- | -------- | ------ | ------ | -------- |
| SAME\_AS\_SIGNAL     | 55%      | 1.8:1  | +18%   | -9%      |
| FIXED (50/100)       | 52%      | 2.0:1  | +22%   | -12%     |
| ATR\_BASED (1.5x/3x) | 58%      | 2.0:1  | +25%   | -8%      |
| RR\_BASED (2.5)      | 48%      | 2.5:1  | +20%   | -15%     |

**Conclusion:** ATR\_BASED offers best balance of win rate and risk management.

***

### 🚀 Quick Start Recommendations

#### **Beginner:**

```
SL_Mode = SAME_AS_SIGNAL
TP_Mode = SAME_AS_SIGNAL
Number_TP_Level = 1
```

#### **Intermediate:**

```
SL_Mode = ATR_BASED (1.5, H1)
TP_Mode = RR_BASED (2.0)
Number_TP_Level = 2
```

#### **Advanced:**

```
SL_Mode = ATR_BASED (1.5, H4)
TP_Mode = ATR_BASED (3.0, H4)
Number_TP_Level = 2
MinSLPips = 20
MaxSLPips = 300
```

***

### 📞 Troubleshooting

**Q: Orders not opening with ATR\_BASED** A: Check if calculated SL violates MinSLPips/MaxSLPips. Review logs for "SL validation failed".

**Q: TP too close to entry** A: Increase TP\_ATR\_Multiplier or use larger timeframe.

**Q: Too many SL hits** A: SL too tight. Increase SL\_ATR\_Multiplier or use wider timeframe.

**Q: All TPs set to same level** A: Check Number\_TP\_Level setting and signal format (may only have 1 TP).

***

**Remember:** SL/TP configuration is critical for risk management. Test thoroughly on demo before live trading! 🎯


# Order Management & Validation Guide

### 📋 Overview

RedFox Copier Pro includes sophisticated order management to prevent duplicates, validate orders before execution, and enforce risk limits. This ensures clean, controlled trading without manual intervention.

**Key Features:**

* Duplicate order prevention (same symbol/direction)
* Order validation (SL/TP/lot size checks)
* Position limits (max orders per symbol/total)
* Pending order management
* Risk exposure limits

***

### 🔒 Duplicate Prevention

#### **1. AllowDuplicateOrders**

```
AllowDuplicateOrders = true | false
```

**Controls whether multiple orders on same symbol/direction are allowed.**

***

#### **false** (Recommended - Default)

**Behavior:** Blocks new orders if existing order on same symbol + direction exists.

**Example:**

```
Current Orders:
- EURUSD BUY @ 1.0850 (open)

New Signal: EURUSD BUY @ 1.0860
Result: ⚠️ Blocked
EA Logs: "Duplicate order detected - EURUSD BUY already exists"
```

**When to use:**

* Signal provider sends same signal multiple times
* Prevent over-exposure on one symbol/direction
* Clean trading with one position per direction

**Pros:**

* ✅ Prevents accidental duplicate positions
* ✅ Controls risk exposure
* ✅ Cleaner order management

**Cons:**

* ❌ Can't add to winning positions (pyramiding)
* ❌ Misses additional signals on same direction

***

#### **true** (Allow Duplicates)

**Behavior:** Opens every signal regardless of existing orders.

**Example:**

```
Current Orders:
- EURUSD BUY @ 1.0850 (open)

New Signal: EURUSD BUY @ 1.0860
Result: ✅ Opens new order
Now have: 2 EURUSD BUY orders
```

**When to use:**

* Pyramiding strategy (add to winners)
* Layer orders feature enabled
* Signal provider rarely duplicates

**Warning:** Can lead to over-exposure if not controlled with position limits!

***

### 📊 Position Limits

#### **2. MaxOrdersPerSymbol**

```
MaxOrdersPerSymbol = 0  // 0 = unlimited, >0 = max orders per symbol
```

**Controls maximum orders on each symbol (both directions combined).**

**Example with MaxOrdersPerSymbol = 2:**

```
Current Orders:
- GBPUSD BUY @ 1.2700
- GBPUSD SELL @ 1.2750

New Signal: GBPUSD BUY @ 1.2680
Result: ⚠️ Blocked
EA Logs: "Max orders per symbol reached (2/2) - GBPUSD"
```

**Configuration Examples:**

**Conservative (1 order):**

```
MaxOrdersPerSymbol = 1
AllowDuplicateOrders = false
// Result: Only 1 position per symbol (BUY or SELL)
```

**Moderate (3 orders):**

```
MaxOrdersPerSymbol = 3
AllowDuplicateOrders = true
// Result: Up to 3 orders per symbol
```

**Aggressive (10 orders):**

```
MaxOrdersPerSymbol = 10
// Result: Multiple positions, pyramiding allowed
```

**Unlimited:**

```
MaxOrdersPerSymbol = 0
// Result: No limit (use with caution!)
```

**When to use:**

* Prevent over-concentration on one symbol
* Limit risk per instrument
* Professional risk management

***

#### **3. MaxTotalOrders**

```
MaxTotalOrders = 0  // 0 = unlimited, >0 = max total orders across all symbols
```

**Controls maximum total orders across entire account.**

**Example with MaxTotalOrders = 10:**

```
Current Orders:
- EURUSD BUY
- GBPUSD SELL
- XAUUSD BUY
... (total: 10 orders)

New Signal: USDJPY BUY
Result: ⚠️ Blocked
EA Logs: "Max total orders reached (10/10)"
```

**Configuration by Account Size:**

**Small Account ($500-$2,000):**

```
MaxTotalOrders = 5
// Reason: Limited margin, focus on quality
```

**Medium Account ($2,000-$10,000):**

```
MaxTotalOrders = 15
// Reason: More capacity, diversification
```

**Large Account ($10,000+):**

```
MaxTotalOrders = 30
// Reason: Professional diversification
```

**Why use this?**

* Margin management (prevent margin call)
* Focus on best signals only
* Reduce complexity
* Server performance (too many orders = lag)

***

#### **4. MaxOrdersPerDirection**

```
MaxOrdersPerDirection = 0  // Max orders per direction (BUY or SELL) per symbol
```

**Controls maximum orders per symbol AND direction.**

**Example with MaxOrdersPerDirection = 2:**

```
MaxOrdersPerDirection = 2
AllowDuplicateOrders = true

Current: EURUSD BUY (2 orders)
New Signal: EURUSD BUY
Result: ⚠️ Blocked ("Max orders per direction reached - EURUSD BUY")

New Signal: EURUSD SELL
Result: ✅ Allowed (different direction)
```

**Strategy Example (Hedging):**

```
MaxOrdersPerSymbol = 6
MaxOrdersPerDirection = 3
AllowDuplicateOrders = true

// Can have: 3 BUY + 3 SELL on same symbol = 6 total
```

***

### ✅ Order Validation

#### **5. MinLot / MaxLot**

```
MinLot = 0.01  // Minimum lot size
MaxLot = 10.0  // Maximum lot size (per order)
```

**Purpose:** Validate calculated lot size before opening order.

**Example:**

```
MinLot = 0.01
MaxLot = 0.50

Scenario 1: Calculated lot = 0.005
Result: ⚠️ Adjusted to 0.01 (minimum)

Scenario 2: Calculated lot = 0.25
Result: ✅ Accepted

Scenario 3: Calculated lot = 1.50
Result: ⚠️ Adjusted to 0.50 (maximum)
```

**When to adjust:**

**Broker Limits:**

```
ECN Broker: MinLot = 0.01, MaxLot = 100
Standard Broker: MinLot = 0.10, MaxLot = 50
Cent Account: MinLot = 0.01, MaxLot = 1000
```

**Risk Management:**

```
Conservative: MaxLot = 0.20
Moderate: MaxLot = 0.50
Aggressive: MaxLot = 2.0
```

**Note:** This limit is **per order**. If you open 3 orders per signal (3 TP levels), each can be up to MaxLot.

***

#### **6. MinSLPips / MaxSLPips**

```
MinSLPips = 5    // Minimum SL distance
MaxSLPips = 500  // Maximum SL distance
```

**(Covered in SL/TP Configuration doc - see 03\_SL\_TP\_CONFIGURATION.md)**

**Purpose:** Reject orders with SL outside acceptable range.

**Example:**

```
MinSLPips = 10
MaxSLPips = 200

Signal: GBPUSD BUY, SL = 5 pips
Result: ⚠️ Rejected ("SL too tight - 5 pips < minimum 10 pips")

Signal: EURUSD BUY, SL = 300 pips
Result: ⚠️ Rejected ("SL too wide - 300 pips > maximum 200 pips")
```

***

#### **7. SkipOrderWithoutTP**

```
SkipOrderWithoutTP = true | false
```

**Purpose:** Enforce TP requirement on all orders.

**When true (Recommended):**

```
Signal: XAUUSD BUY @ 2650, SL: 2630, TP: (none)
Result: ⚠️ Skipped
EA Logs: "Order skipped - No TP level found"
```

**When false:**

```
Signal: XAUUSD BUY @ 2650, SL: 2630, TP: (none)
Result: ✅ Opens without TP (manual exit required)
```

**When to use:**

* `true`: Automated trading, no manual intervention
* `false`: You manually manage exits via Telegram commands

***

### ⏱️ Pending Orders Management

#### **8. AllowPendingOrders**

```
AllowPendingOrders = true | false
```

**Controls whether EA opens pending orders (Buy Stop, Sell Limit, etc.).**

***

#### **true** (Allow Pending Orders)

**Behavior:** Opens pending orders when signal specifies entry price.

**Signal Example:**

```
📊 EURUSD BUY STOP @ 1.0900
Current Price: 1.0850
SL: 1.0850
TP: 1.0950
```

**EA Action:**

```
Opens: Buy Stop pending order @ 1.0900
Triggers when: Price reaches 1.0900
```

**When to use:**

* Signal provider sends breakout strategies
* Want automated entry at specific levels
* Professional pending order strategies

***

#### **false** (Block Pending Orders)

**Behavior:** Skips all pending order signals.

**Signal Example:**

```
GBPUSD SELL LIMIT @ 1.2800 (pending)
```

**EA Action:**

```
⚠️ Skipped
EA Logs: "Pending orders are disabled"
```

**When to use:**

* Only want market execution
* Don't trust pending order signals
* Reduce complexity

***

#### **9. TimeOrderNext**

```
TimeOrderNext = 10  // Seconds to wait between orders on same symbol
```

**Purpose:** Prevent rapid-fire duplicate orders from signal provider.

**Example with TimeOrderNext = 10:**

```
10:00:00 - EURUSD BUY signal → ✅ Opens
10:00:03 - EURUSD BUY signal → ⚠️ Blocked ("Too soon, wait 7 more seconds")
10:00:15 - EURUSD BUY signal → ✅ Opens (10 seconds passed)
```

**Configuration:**

**Strict (30 seconds):**

```
TimeOrderNext = 30
// Prevents signal spam effectively
```

**Moderate (10 seconds):**

```
TimeOrderNext = 10
// Balance between protection and responsiveness
```

**Permissive (3 seconds):**

```
TimeOrderNext = 3
// Quick signals allowed
```

**Disabled:**

```
TimeOrderNext = 0
// No time restriction (risky!)
```

**When to use:**

* Signal provider sometimes duplicates
* Telegram connectivity issues cause message repeats
* Protect against network glitches

***

### 🎯 Risk Exposure Validation

#### **10. MaxRiskPerTrade**

```
MaxRiskPerTrade = 1.0  // Maximum % of balance to risk per trade
```

**(Covered in Lot Size & Risk Management doc - see 01\_LOT\_SIZE\_AND\_RISK\_MANAGEMENT.md)**

**Purpose:** Limit risk amount per order.

**Example:**

```
Balance: $10,000
MaxRiskPerTrade: 2%
Max Risk Amount: $200 per order

Signal: GBPUSD BUY, SL 100 pips
Calculated lot: 0.25 (risks $250)
Result: ⚠️ Adjusted to 0.20 lot (risks $200)
```

***

#### **11. MaxTotalRiskPercent**

```
MaxTotalRiskPercent = 10.0  // Maximum % of balance at risk across all orders
```

**Purpose:** Limit total exposure across all open orders.

**Example:**

```
Balance: $10,000
MaxTotalRiskPercent: 10%
Max Total Risk: $1,000

Current Orders:
- EURUSD: Risking $300
- GBPUSD: Risking $400
- XAUUSD: Risking $250
Total Risk: $950

New Signal: USDJPY (would risk $200)
Result: ⚠️ Blocked ("Total risk would exceed 10% limit")
```

**Configuration:**

**Conservative:**

```
MaxTotalRiskPercent = 5%
MaxRiskPerTrade = 1%
// Max 5 trades at once (5 × 1% = 5%)
```

**Moderate:**

```
MaxTotalRiskPercent = 10%
MaxRiskPerTrade = 1%
// Max 10 trades at once
```

**Aggressive:**

```
MaxTotalRiskPercent = 20%
MaxRiskPerTrade = 2%
// Max 10 trades at once (10 × 2% = 20%)
```

**Why important:**

* Prevents over-exposure during high signal volume
* Drawdown protection
* Forces position selectivity

***

### 💼 Real-World Configuration Examples

#### **Example 1: Conservative Single Position**

**Goal:** Only one position per symbol, strict limits.

**Configuration:**

```
AllowDuplicateOrders = false
MaxOrdersPerSymbol = 1
MaxTotalOrders = 5
MaxRiskPerTrade = 1%
MaxTotalRiskPercent = 5%
TimeOrderNext = 30
SkipOrderWithoutTP = true
```

**Result:**

* Max 5 symbols traded
* 1 position per symbol
* 1% risk each = 5% total exposure
* No duplicates possible

***

#### **Example 2: Pyramiding Strategy**

**Goal:** Add to winners, up to 3 positions per symbol.

**Configuration:**

```
AllowDuplicateOrders = true
MaxOrdersPerSymbol = 3
MaxOrdersPerDirection = 3
MaxTotalOrders = 15
MaxRiskPerTrade = 1%
MaxTotalRiskPercent = 15%
TimeOrderNext = 60
```

**Result:**

* Can open 3 BUY + 3 SELL per symbol = 6 total per symbol
* Up to 15 total orders (5 symbols × 3 orders)
* Each risks 1%, max 15% total exposure

***

#### **Example 3: High Volume Trading**

**Goal:** Trade many signals, diversified portfolio.

**Configuration:**

```
AllowDuplicateOrders = false
MaxOrdersPerSymbol = 2
MaxTotalOrders = 30
MaxRiskPerTrade = 0.5%
MaxTotalRiskPercent = 10%
TimeOrderNext = 5
```

**Result:**

* Up to 30 orders (15 symbols × 2)
* Low risk per trade (0.5%)
* Controlled total exposure (10%)

***

#### **Example 4: Strict Risk Management**

**Goal:** Absolute control, no exceptions.

**Configuration:**

```
AllowDuplicateOrders = false
MaxOrdersPerSymbol = 1
MaxOrdersPerDirection = 1
MaxTotalOrders = 8
MaxRiskPerTrade = 1%
MaxTotalRiskPercent = 8%
MinLot = 0.01
MaxLot = 0.30
MinSLPips = 10
MaxSLPips = 150
SkipOrderWithoutTP = true
TimeOrderNext = 60
```

**Result:**

* Every limit enforced
* Maximum protection
* Clean, controlled trading

***

#### **Example 5: Aggressive Scalping**

**Goal:** Many quick trades, accept more orders.

**Configuration:**

```
AllowDuplicateOrders = true
MaxOrdersPerSymbol = 5
MaxTotalOrders = 50
MaxRiskPerTrade = 0.5%
MaxTotalRiskPercent = 15%
TimeOrderNext = 3
AllowPendingOrders = false
```

**Result:**

* High frequency trading
* Many small positions
* Market orders only
* Fast execution

***

### ⚠️ Common Mistakes

#### ❌ **Mistake 1: Unlimited Everything**

**Bad:**

```
AllowDuplicateOrders = true
MaxOrdersPerSymbol = 0  // Unlimited!
MaxTotalOrders = 0      // Unlimited!
MaxTotalRiskPercent = 0 // No limit!
```

**Risk:** 50+ orders on one symbol, 100% account risk, margin call!

**Good:**

```
Set ALL limits appropriately based on account size
```

***

#### ❌ **Mistake 2: Conflicting Settings**

**Bad:**

```
AllowDuplicateOrders = false  // Block duplicates
MaxOrdersPerSymbol = 5         // But allow 5 per symbol?
// Conflict: Can only have 1 per direction, so max 2 total (BUY + SELL)
```

**Good:**

```
AllowDuplicateOrders = true
MaxOrdersPerSymbol = 5
// Now makes sense: Up to 5 orders per symbol
```

***

#### ❌ **Mistake 3: No Time Buffer**

**Bad:**

```
TimeOrderNext = 0
// Result: Signal repeats → 10 duplicate orders in 1 second
```

**Good:**

```
TimeOrderNext = 10-30
```

***

#### ❌ **Mistake 4: MaxLot Too High**

**Bad:**

```
Balance: $1,000
MaxLot = 10.0
// Result: One order risks entire account + margin call
```

**Good:**

```
Balance: $1,000
MaxLot = 0.10-0.20  // Proportional to account
```

***

#### ❌ **Mistake 5: Ignoring Total Risk**

**Bad:**

```
MaxRiskPerTrade = 2%
MaxTotalOrders = 50
MaxTotalRiskPercent = 0  // No total limit!
// Result: 50 × 2% = 100% risk possible!
```

**Good:**

```
MaxRiskPerTrade = 2%
MaxTotalOrders = 10
MaxTotalRiskPercent = 20%  // Enforces 2% × 10 = 20% max
```

***

### ✅ Best Practices

#### ✅ **1. Always Set All Limits**

Minimum required:

```
MaxOrdersPerSymbol = (value)
MaxTotalOrders = (value)
MaxLot = (value)
MaxTotalRiskPercent = (value)
TimeOrderNext = (value > 0)
```

#### ✅ **2. Start Conservative**

First week:

```
MaxTotalOrders = 5
MaxRiskPerTrade = 0.5%
MaxTotalRiskPercent = 2.5%
```

Then gradually increase if comfortable.

#### ✅ **3. Match Account Size**

| Account Size | Max Total Orders | Max Risk/Trade | Max Total Risk |
| ------------ | ---------------- | -------------- | -------------- |
| $500-$2K     | 5                | 1%             | 5%             |
| $2K-$10K     | 10-15            | 1-2%           | 10-15%         |
| $10K+        | 20-30            | 1-2%           | 15-20%         |

#### ✅ **4. Test Configuration**

* Run on demo for 2 weeks
* Monitor order count, exposure, behavior
* Adjust limits based on signal frequency

#### ✅ **5. Document Your Limits**

```
Configuration Notes:
Date: 2024-10-28
MaxTotalOrders: 10 (account size: $5,000)
MaxOrdersPerSymbol: 2 (diversification)
MaxTotalRiskPercent: 10% (conservative)
Review Date: 2024-11-15
```

***

### 🔍 EA Logging Examples

**Order Accepted:**

```
========== ORDER VALIDATION PASSED ==========
Symbol: EURUSD
Direction: BUY
Lot: 0.15
SL: 50 pips (within 5-200 range)
TP: 100 pips
Risk: $150 (1.5% of balance)
Total Risk: $450 (4.5% of balance)
Orders on EURUSD: 1/3
Total Orders: 5/15
==============================================
```

**Order Rejected (Duplicate):**

```
⚠️ ORDER REJECTED: Duplicate order
Symbol: GBPUSD BUY
Reason: AllowDuplicateOrders = false
Existing order: GBPUSD BUY #12345678
```

**Order Rejected (Position Limit):**

```
⚠️ ORDER REJECTED: Position limit reached
Symbol: XAUUSD
Current orders on XAUUSD: 3/3 (MaxOrdersPerSymbol)
```

**Order Rejected (Total Risk):**

```
⚠️ ORDER REJECTED: Total risk limit
Current Total Risk: $950 (9.5%)
This Order Would Risk: $100
Total Would Be: $1,050 (10.5%)
MaxTotalRiskPercent: 10%
```

***

### 📊 Monitoring Your Orders

**Telegram Command:**

```
/status
```

**EA Response:**

```
📊 ACCOUNT STATUS
Balance: $10,000
Total Orders: 8/15
Total Risk: $720 (7.2%)

EURUSD: 2 orders (BUY, SELL)
GBPUSD: 1 order (BUY)
XAUUSD: 3 orders (BUY×2, SELL×1)
USDJPY: 2 orders (SELL×2)

Max Total Risk: 10%
Available Risk: $280 (2.8%)
```

***

### 🚀 Quick Start Guide

#### **Step 1: Determine Your Risk Profile**

Conservative: Smaller limits, strict validation Aggressive: Higher limits, more flexibility

#### **Step 2: Set Core Limits**

```
// Position Limits
MaxTotalOrders = ?
MaxOrdersPerSymbol = ?

// Risk Limits
MaxRiskPerTrade = ?
MaxTotalRiskPercent = ?

// Lot Limits
MaxLot = ?
```

#### **Step 3: Configure Duplicate Handling**

```
AllowDuplicateOrders = ?
TimeOrderNext = ?
```

#### **Step 4: Enable Validation**

```
MinSLPips = 10
MaxSLPips = 200
SkipOrderWithoutTP = true
```

#### **Step 5: Test & Monitor**

* Run on demo
* Check EA logs for rejections
* Adjust limits if too strict/loose

***

### 📞 FAQ

**Q: Orders not opening at all?** A: Check logs for rejection reasons. Likely exceeding MaxTotalOrders or MaxTotalRiskPercent.

**Q: Too many duplicate orders?** A: Set `AllowDuplicateOrders = false` and `TimeOrderNext = 30`.

**Q: EA only opens 1 order per symbol?** A: Increase `MaxOrdersPerSymbol` and set `AllowDuplicateOrders = true`.

**Q: Can I have different limits per symbol?** A: Not directly. Use separate EA instances or file config feature.

***

**Remember:** Proper order management is key to long-term profitability. Better to miss a trade than blow your account! 🎯


# Close & Modify Orders Guide

### 📋 Overview

RedFox Copier Pro provides powerful features to close and modify orders automatically or via Telegram commands. You can partially close positions at TP levels, move SL to breakeven, adjust TP levels, and close all orders with simple commands.

**Key Features:**

* Partial close at TP1/TP2 (scale out strategy)
* Move SL to breakeven/entry automatically
* Move SL/TP via Telegram commands
* Close individual or all orders
* Close by symbol, direction, or profit level

***

### 📉 Partial Close at TP Levels

#### **1. EnableCloseAtTP**

```
EnableCloseAtTP = true | false
```

**Controls whether EA partially closes orders when TP1/TP2 is hit.**

***

#### **false** (Default - Full Close)

**Behavior:** Orders close completely when TP is hit (standard MT4 behavior).

**Example:**

```
Order: EURUSD BUY 0.30 lot @ 1.0850
TP1: 1.0900 (50 pips)

Price reaches 1.0900:
→ Order closes completely (0.30 lot)
→ Profit: $150 (50 pips × 0.30 lot)
```

***

#### **true** (Partial Close - Recommended)

**Behavior:** Partially closes order at TP1/TP2, keeps remaining for higher TP levels.

**Example with 3 TP Levels:**

```
Signal: GBPUSD BUY
Entry: 1.2700
TP1: 1.2750 (50 pips)
TP2: 1.2800 (100 pips)
TP3: 1.2850 (150 pips)

EA Opens: 0.30 lot (calculated based on risk)

Price Action:
1. Price hits 1.2750 (TP1)
   → Close 33% (0.10 lot)
   → Remaining: 0.20 lot
   → Profit: $50

2. Price hits 1.2800 (TP2)
   → Close 33% of original (0.10 lot)
   → Remaining: 0.10 lot
   → Additional profit: $50

3. Price hits 1.2850 (TP3)
   → Close remaining (0.10 lot)
   → Additional profit: $50
   → Total Profit: $150
```

**Benefits:**

* ✅ Lock in profits progressively
* ✅ Reduce risk as trade moves in your favor
* ✅ Let runners capture larger moves
* ✅ Professional scaling out strategy

**When to use:**

* Multi-TP signals (TP1, TP2, TP3)
* Want to secure partial profits
* Trending markets (let winners run)

***

#### **2. ClosePercentAtTP1**

```
ClosePercentAtTP1 = 33  // Percentage to close at TP1 (0-100)
```

**Controls what percentage of position to close when TP1 is hit.**

**Examples:**

**Conservative (Close 50% at TP1):**

```
ClosePercentAtTP1 = 50

Order: 0.40 lot
TP1 Hit:
→ Close: 0.20 lot (50%)
→ Remaining: 0.20 lot
```

**Balanced (Close 33% at TP1):**

```
ClosePercentAtTP1 = 33

Order: 0.30 lot
TP1 Hit:
→ Close: 0.10 lot (33%)
→ Remaining: 0.20 lot
```

**Aggressive (Close 20% at TP1):**

```
ClosePercentAtTP1 = 20

Order: 0.50 lot
TP1 Hit:
→ Close: 0.10 lot (20%)
→ Remaining: 0.40 lot (80% for bigger move)
```

**Strategy Impact:**

| Close % | Remaining | Strategy                      |
| ------- | --------- | ----------------------------- |
| 100%    | 0%        | Full exit at TP1 (no runners) |
| 50%     | 50%       | Equal risk/reward approach    |
| 33%     | 67%       | Let most position run         |
| 25%     | 75%       | Aggressive runners strategy   |

***

#### **3. ClosePercentAtTP2**

```
ClosePercentAtTP2 = 33  // Percentage to close at TP2
```

**Controls what percentage to close when TP2 is hit.**

**Important:** This is percentage of **original order size**, not remaining.

**Example:**

```
Original Order: 0.90 lot
ClosePercentAtTP1 = 33
ClosePercentAtTP2 = 33

TP1 Hit:
→ Close: 0.30 lot (33% of 0.90)
→ Remaining: 0.60 lot

TP2 Hit:
→ Close: 0.30 lot (33% of original 0.90)
→ Remaining: 0.30 lot (33% for TP3)

TP3 Hit:
→ Close: 0.30 lot (remaining)
→ Total closed: 100%
```

**Configuration Examples:**

**Equal Distribution (33/33/33):**

```
ClosePercentAtTP1 = 33
ClosePercentAtTP2 = 33
// Remaining for TP3: 34%
```

**Early Exit Focus (50/30/20):**

```
ClosePercentAtTP1 = 50
ClosePercentAtTP2 = 30
// Remaining for TP3: 20%
```

**Runner Focus (20/30/50):**

```
ClosePercentAtTP1 = 20
ClosePercentAtTP2 = 30
// Remaining for TP3: 50%
```

***

### 🎯 Move SL to Breakeven

#### **4. MoveSLToEntry**

```
MoveSLToEntry = true | false
```

**Controls whether EA automatically moves SL to entry price when TP1 is hit.**

***

#### **true** (Auto Move SL - Recommended)

**Behavior:** When TP1 is hit, SL is moved to entry price (breakeven + spread).

**Example:**

```
Order: EURUSD BUY @ 1.0850
SL: 1.0800 (-50 pips)
TP1: 1.0900 (+50 pips)

Price hits 1.0900 (TP1):
1. Close 33% of position (partial close)
2. Move SL: 1.0800 → 1.0850 (entry price)
→ Trade now risk-free!
```

**Benefits:**

* ✅ Risk-free trade after TP1
* ✅ Can't lose money on runners
* ✅ Psychological comfort
* ✅ Protect initial profit

**When to use:**

* Always recommended for risk management
* Especially in volatile markets
* When holding runners overnight

**Important:** EA adds spread to breakeven level to account for broker costs:

```
BUY: Breakeven = Entry + Spread
SELL: Breakeven = Entry - Spread
```

***

#### **false** (Keep Original SL)

**Behavior:** SL stays at original level even after TP1 is hit.

**Example:**

```
Order: GBPUSD SELL @ 1.2700
SL: 1.2750 (+50 pips)
TP1: 1.2650 (-50 pips)

Price hits 1.2650 (TP1):
→ Close 33%
→ SL remains at 1.2750 (original)
→ Risk still exists on remaining position
```

**When to use:**

* Wide SL that serves as true invalidation level
* Don't want tight SL after TP1
* Advanced strategy with specific SL logic

***

### 🔧 Modify Orders via Telegram

#### **5. Move SL Commands**

EA recognizes these commands in Telegram:

```
"move sl entry"
"move sl to"
"move sl to entry"
"move stop loss to entry"
```

***

#### **Move SL to Entry (Breakeven)**

**Telegram Command:**

```
move sl entry EURUSD
```

**EA Action:**

```
Finds all EURUSD orders
→ Moves SL to entry price + spread
→ Confirms via Telegram: "✅ Moved SL to entry for 3 EURUSD orders"
```

**Example:**

```
Current Orders:
- EURUSD BUY @ 1.0850, SL: 1.0800
- EURUSD BUY @ 1.0860, SL: 1.0810

Command: move sl entry EURUSD

Result:
- EURUSD BUY @ 1.0850, SL: 1.0850 ✅
- EURUSD BUY @ 1.0860, SL: 1.0860 ✅
```

***

#### **Move SL to Specific Price**

**Telegram Command:**

```
move sl to 1.0870 EURUSD
```

**EA Action:**

```
Finds all EURUSD orders
→ Moves SL to 1.0870
→ Confirms: "✅ Moved SL to 1.0870 for 2 EURUSD orders"
```

**Example:**

```
Current: GBPUSD SELL @ 1.2700, SL: 1.2750
Command: move sl to 1.2680 GBPUSD
Result: GBPUSD SELL @ 1.2700, SL: 1.2680 ✅
```

**Validation:**

* BUY orders: New SL must be below entry
* SELL orders: New SL must be above entry
* If invalid: EA sends error message

***

#### **6. Move TP Commands**

```
"move tp"
"move take profit"
```

**Telegram Command:**

```
move tp 1.0920 EURUSD
```

**EA Action:**

```
Finds all EURUSD orders
→ Moves TP to 1.0920
→ Confirms: "✅ Moved TP to 1.0920 for 3 EURUSD orders"
```

**Example:**

```
Current: XAUUSD BUY @ 2650, TP: 2700
Command: move tp 2720 XAUUSD
Result: XAUUSD BUY @ 2650, TP: 2720 ✅ (extended target)
```

***

### ❌ Close Orders via Telegram

#### **7. Close All Orders**

**Telegram Command:**

```
close
close all
```

**EA Action:**

```
Closes ALL open orders immediately
→ Confirms: "✅ Closed 12 orders. Total profit: $245.50"
```

**When to use:**

* Emergency exit (major news event)
* End of trading day
* Account protection
* System maintenance

***

#### **8. Close Orders by Symbol**

**Telegram Command:**

```
close EURUSD
close XAUUSD
```

**EA Action:**

```
Closes all orders on specified symbol (both BUY and SELL)
→ Confirms: "✅ Closed 3 EURUSD orders. Profit: $85.20"
```

**Example:**

```
Current Orders:
- EURUSD BUY (2 orders)
- EURUSD SELL (1 order)
- GBPUSD BUY (2 orders)

Command: close EURUSD

Result:
→ 3 EURUSD orders closed ✅
→ 2 GBPUSD orders remain open
```

***

#### **9. Close Orders by Direction**

**Telegram Command:**

```
close buy
close sell
close buy EURUSD
close sell GBPUSD
```

**EA Action:**

```
Closes all BUY or SELL orders (optionally filtered by symbol)
```

**Examples:**

**Close all BUY orders:**

```
Command: close buy
Result: Closes all BUY orders on all symbols
```

**Close SELL orders on specific symbol:**

```
Command: close sell XAUUSD
Result: Closes only SELL orders on XAUUSD
```

***

#### **10. Close Profitable Orders**

**Telegram Command:**

```
close profit
close profit EURUSD
```

**EA Action:**

```
Closes all orders in profit (optionally by symbol)
→ Confirms: "✅ Closed 5 profitable orders. Total profit: $312.40"
```

**When to use:**

* Lock in profits before weekend
* News event approaching
* Hit daily profit target

***

#### **11. Close Loss Orders**

**Telegram Command:**

```
close loss
close loss GBPUSD
```

**EA Action:**

```
Closes all orders in loss (optionally by symbol)
→ Confirms: "✅ Closed 3 loss orders. Total loss: -$95.30"
```

**When to use:**

* Cut losses during adverse market move
* Clear losing trades to refocus
* Emergency risk reduction

***

### 💼 Real-World Scenarios

#### **Scenario 1: Scale Out Strategy**

**Configuration:**

```
EnableCloseAtTP = true
ClosePercentAtTP1 = 50
ClosePercentAtTP2 = 50
MoveSLToEntry = true
Number_TP_Level = 2
```

**Trade Example:**

```
Signal: EURUSD BUY @ 1.0850
TP1: 1.0900 (50 pips)
TP2: 1.0950 (100 pips)
Lot: 0.40

Timeline:
1. Entry @ 1.0850
   Open: 0.40 lot, SL: 1.0800

2. Price hits 1.0900 (TP1)
   → Close 50% (0.20 lot)
   → Remaining: 0.20 lot
   → Move SL: 1.0800 → 1.0850 (breakeven)
   → Profit locked: $100, Risk: $0

3. Price hits 1.0950 (TP2)
   → Close remaining (0.20 lot)
   → Additional profit: $100
   → Total profit: $200
```

**Result:** Professional risk-free scaling out.

***

#### **Scenario 2: Emergency Exit Before News**

**Situation:** NFP news in 5 minutes, want to close all.

**Action:**

```
Telegram Command: close all
```

**EA Response:**

```
✅ Closed 15 orders
Total profit: $320.50
Orders remaining: 0
```

***

#### **Scenario 3: Gold Reversal**

**Situation:** XAUUSD BUY orders in profit, chart shows reversal pattern.

**Action:**

```
Telegram Command: close profit XAUUSD
```

**EA Response:**

```
✅ Closed 3 profitable XAUUSD orders
Total profit: $245.80
```

***

#### **Scenario 4: Cut EUR Losses**

**Situation:** EUR news negative, all EUR pairs losing.

**Action:**

```
Telegram Command: close loss EUR
```

**EA Response:**

```
✅ Closed loss orders on EUR pairs
EURUSD: 2 orders (-$45.20)
EURGBP: 1 order (-$12.30)
Total loss: -$57.50
```

***

#### **Scenario 5: Protect Runners**

**Situation:** TP1 hit manually, want to move SL to breakeven.

**Action:**

```
Telegram Command: move sl entry GBPUSD
```

**EA Response:**

```
✅ Moved SL to entry for 2 GBPUSD orders
GBPUSD BUY @ 1.2700: SL moved 1.2650 → 1.2700
GBPUSD BUY @ 1.2710: SL moved 1.2660 → 1.2710
Trades now risk-free!
```

***

### ⚠️ Common Mistakes

#### ❌ **Mistake 1: Close Percentages Don't Add Up**

**Bad:**

```
ClosePercentAtTP1 = 50
ClosePercentAtTP2 = 60
// Total: 110% (more than 100%!)
```

**Good:**

```
ClosePercentAtTP1 = 33
ClosePercentAtTP2 = 33
// Remaining: 34% for TP3
```

***

#### ❌ **Mistake 2: Partial Close Without Multiple TPs**

**Bad:**

```
EnableCloseAtTP = true
Number_TP_Level = 1  // Only 1 TP!
// Result: Partial close happens, but no TP2/TP3 to reach
```

**Good:**

```
EnableCloseAtTP = true
Number_TP_Level = 2 or 3
```

***

#### ❌ **Mistake 3: Forget to Enable MoveSLToEntry**

**Bad:**

```
EnableCloseAtTP = true
MoveSLToEntry = false
// Result: Partial profit taken, but full risk remains!
```

**Good:**

```
EnableCloseAtTP = true
MoveSLToEntry = true  // Risk-free after TP1
```

***

#### ❌ **Mistake 4: Wrong Close Command**

**Bad:**

```
Command: close EURUSD buy
// Wrong syntax!
```

**Good:**

```
Command: close buy EURUSD
// Correct: action first, symbol last
```

***

### ✅ Best Practices

#### ✅ **1. Always Enable MoveSLToEntry**

```
MoveSLToEntry = true
```

Reason: Free insurance! No downside to risk-free trades.

***

#### ✅ **2. Match Close Percentages to TP Count**

**For 2 TP levels:**

```
ClosePercentAtTP1 = 50
// Remaining 50% for TP2
```

**For 3 TP levels:**

```
ClosePercentAtTP1 = 33
ClosePercentAtTP2 = 33
// Remaining 34% for TP3
```

***

#### ✅ **3. Test Partial Close Logic**

* Open test order with 0.30 lot, 3 TPs
* Verify close amounts at each TP
* Check SL moves to breakeven
* Confirm calculations correct

***

#### ✅ **4. Use Telegram Commands Actively**

Don't just set-and-forget:

* Move SL when profit grows
* Close before major news
* Adjust TP based on chart patterns
* Active management = better results

***

#### ✅ **5. Document Your Strategy**

```
Scaling Out Strategy Notes:
Date: 2024-10-28
EnableCloseAtTP: true
TP1: Close 33% + Move SL to entry
TP2: Close 33%
TP3: Close remaining 34%
Reason: Balance profit taking and runners
Review Date: 2024-11-15
```

***

### 📊 Partial Close Examples by Strategy

#### **Conservative (Secure Profits Early)**

```
ClosePercentAtTP1 = 60
ClosePercentAtTP2 = 40
MoveSLToEntry = true
```

**Result:** Most profit secured at TP1, small runner.

***

#### **Balanced (Equal Distribution)**

```
ClosePercentAtTP1 = 33
ClosePercentAtTP2 = 33
MoveSLToEntry = true
```

**Result:** Equal profit at each level, smooth scaling.

***

#### **Aggressive (Let It Run)**

```
ClosePercentAtTP1 = 20
ClosePercentAtTP2 = 30
MoveSLToEntry = true
```

**Result:** 50% stays for TP3, maximum runner potential.

***

### 🔍 EA Logging Examples

**Partial Close at TP1:**

```
========== PARTIAL CLOSE AT TP1 ==========
Order: #12345678
Symbol: EURUSD BUY
Original Lot: 0.30
Close Percent: 33%
Closed: 0.10 lot
Remaining: 0.20 lot
Profit: $50.00
SL Moved: 1.0800 → 1.0850 (breakeven)
==========================================
```

**Move SL Command:**

```
📩 TELEGRAM COMMAND RECEIVED
User: @YourUsername
Command: move sl entry GBPUSD
Action: Moving SL to entry for GBPUSD orders...
✅ SUCCESS: 2 orders updated
- #12345678: SL 1.2650 → 1.2700
- #12345679: SL 1.2660 → 1.2710
```

**Close Command:**

```
📩 TELEGRAM COMMAND RECEIVED
User: @YourUsername
Command: close profit
Action: Closing all profitable orders...
✅ SUCCESS: 8 orders closed
Total Profit: $432.50
Remaining Orders: 4 (in loss)
```

***

### 🚀 Quick Start Guide

#### **Step 1: Configure Partial Close**

```
EnableCloseAtTP = true
ClosePercentAtTP1 = 33
ClosePercentAtTP2 = 33
MoveSLToEntry = true
Number_TP_Level = 3
```

#### **Step 2: Test on Demo**

* Open multi-TP order
* Wait for TP1 hit
* Verify:
  * Partial close correct amount
  * SL moved to entry
  * Remaining orders have higher TPs

#### **Step 3: Learn Telegram Commands**

Practice on demo:

```
close EURUSD
move sl entry GBPUSD
close profit
close buy
```

#### **Step 4: Use in Live Trading**

* Monitor TP1 hits
* Manually move SL if needed
* Close before major events
* Adjust TPs based on market

***

### 📞 FAQ

**Q: Can I disable partial close for specific signals?** A: Not directly. Disable `EnableCloseAtTP` to turn off for all, or close manually via Telegram.

**Q: What if I close order manually before TP1?** A: EA respects your manual close. Partial close only triggers if order still open when TP1 is hit.

**Q: SL not moving to breakeven?** A: Check `MoveSLToEntry = true` and verify TP1 was actually hit (check logs).

**Q: Can I move SL beyond entry (to profit)?** A: Yes! Command: `move sl to 1.0900 EURUSD` (any valid price).

**Q: Close commands not working?** A: Verify Telegram connection, check logs for command recognition, ensure correct syntax.

***

**Remember:** Professional traders scale out of winners and actively manage positions. Use these tools! 📈


# Trailing Stop Guide

### 📋 Overview

Trailing Stop is a dynamic stop loss that automatically follows price movement in your favor. Instead of fixed SL, it "trails" behind price at a specified distance, locking in profits as the trade moves favorably while giving room for continued profit.

**Key Benefits:**

* ✅ Lock in profits automatically
* ✅ Let winning trades run
* ✅ No manual intervention needed
* ✅ Protect against sudden reversals

**How It Works:**

```
1. Price moves in your favor
2. SL follows at fixed distance
3. If price reverses, SL remains (profit locked)
4. Order closes when price hits trailing SL
```

***

### ⚙️ Core Settings

#### **1. EnableTrailingStop**

```
EnableTrailingStop = true | false
```

**Controls whether trailing stop is active for all orders.**

***

#### **false** (Default - Fixed SL)

**Behavior:** Stop Loss stays at original level (standard trading).

**Example:**

```
Order: EURUSD BUY @ 1.0850
SL: 1.0800 (50 pips)
TP: 1.0950 (100 pips)

Price moves to 1.0920 (+70 pips profit)
→ SL remains at 1.0800 (original)
→ Risk: Still -50 pips if reversal
```

***

#### **true** (Trailing Stop Active)

**Behavior:** SL automatically follows price movement.

**Example:**

```
Order: EURUSD BUY @ 1.0850
Initial SL: 1.0800
Trailing Distance: 30 pips

Price Movement:
1. Entry: 1.0850, SL: 1.0800 (50 pips below)
2. Price → 1.0880: SL → 1.0850 (30 pips trail distance)
3. Price → 1.0910: SL → 1.0880 (follows)
4. Price → 1.0940: SL → 1.0910 (follows)
5. Price reverses to 1.0910: Order closes at SL 1.0910
   → Profit: 60 pips locked!

Without Trailing: Would still have SL at 1.0800
With Trailing: Locked 60 pips profit ✅
```

***

### 🎯 Configuration Settings

#### **2. TrailingStop\_Pips**

```
TrailingStop_Pips = 30  // Distance in pips to trail behind price
```

**Defines how far SL trails behind current price.**

***

#### **Small Distance (10-20 pips) - Tight Trailing**

```
TrailingStop_Pips = 15
```

**Behavior:** SL very close to price.

**Pros:**

* ✅ Lock profits quickly
* ✅ Minimize drawdown
* ✅ Good for scalping

**Cons:**

* ❌ Frequent stops due to normal volatility
* ❌ May exit too early on runners
* ❌ Requires calm markets

**Best for:**

* Scalping strategies (M1-M15)
* Low volatility pairs (EURUSD, USDCHF)
* Quick profit taking

**Example:**

```
EURUSD Scalping:
Entry: 1.0850
Trailing: 15 pips
TP: 1.0900 (50 pips)

Price → 1.0880: SL → 1.0865 (locked 15 pips)
Price → 1.0890: SL → 1.0875 (locked 25 pips)
Price reverses to 1.0875: Closed with 25 pips ✅
```

***

#### **Medium Distance (30-50 pips) - Balanced Trailing**

```
TrailingStop_Pips = 40
```

**Behavior:** Moderate distance, balance between protection and room.

**Pros:**

* ✅ Good profit protection
* ✅ Room for normal pullbacks
* ✅ Versatile for most pairs

**Cons:**

* ❌ May give back some profit
* ❌ Requires monitoring

**Best for:**

* Day trading (H1-H4)
* Standard forex pairs
* Balanced risk/reward

**Example:**

```
GBPUSD Day Trade:
Entry: 1.2700
Trailing: 40 pips
TP: 1.2850 (150 pips)

Price → 1.2800 (+100 pips): SL → 1.2760 (locked 60 pips)
Price → 1.2850 (TP hit): SL never triggered, full profit
```

***

#### **Large Distance (60-100+ pips) - Wide Trailing**

```
TrailingStop_Pips = 80
```

**Behavior:** SL far behind, maximum room for runners.

**Pros:**

* ✅ Let big trends develop
* ✅ Avoid premature exits
* ✅ Handle volatility well

**Cons:**

* ❌ Give back significant profit on reversals
* ❌ Requires strong trends

**Best for:**

* Swing trading (H4-Daily)
* Volatile pairs (GBPJPY, XAUUSD)
* Trend following strategies

**Example:**

```
XAUUSD Swing Trade:
Entry: 2650
Trailing: 80 points ($8/lot)
TP: 2800 (150 points)

Price → 2750 (+100 points): SL → 2670 (locked 20 points)
Price → 2800 (TP): SL → 2720 (locked 70 points, but TP hit first)
```

***

#### **3. TrailingStop\_Step**

```
TrailingStop_Step = 5  // Minimum price movement to trigger SL adjustment
```

**Controls how often SL updates (prevents excessive modifications).**

**Purpose:**

* Reduce broker requests (avoid "too frequent modifications" errors)
* Smooth trailing (not every tick)
* Optimize performance

***

#### **Small Step (1-5 pips) - Frequent Updates**

```
TrailingStop_Step = 1
```

**Behavior:** SL updates almost every favorable price movement.

**Pros:**

* ✅ Maximizes locked profit
* ✅ Precise trailing

**Cons:**

* ❌ Many broker requests
* ❌ May hit modification limits
* ❌ Increased execution load

**Best for:**

* Brokers with no modification limits
* Scalping with tight trailing
* High precision strategies

***

#### **Medium Step (5-10 pips) - Balanced Updates**

```
TrailingStop_Step = 5
```

**Behavior:** SL updates every 5 pip movement in your favor.

**Pros:**

* ✅ Good profit locking
* ✅ Reasonable broker requests
* ✅ Works with most brokers

**Cons:**

* ❌ May miss 1-4 pips of potential lock

**Best for:**

* Most trading styles
* Standard brokers
* Recommended default

**Example:**

```
EURUSD BUY @ 1.0850
Trailing: 30 pips, Step: 5 pips

Price: 1.0850 → 1.0854: No update (< 5 pips)
Price: 1.0850 → 1.0856: Update! SL → 1.0826
Price: 1.0856 → 1.0860: No update (< 5 pips)
Price: 1.0856 → 1.0861: Update! SL → 1.0831
```

***

#### **Large Step (10-20 pips) - Infrequent Updates**

```
TrailingStop_Step = 15
```

**Behavior:** SL updates only on significant price moves.

**Pros:**

* ✅ Minimal broker requests
* ✅ Works with restrictive brokers
* ✅ Smooth operation

**Cons:**

* ❌ Less precise profit locking
* ❌ May miss optimal SL placement

**Best for:**

* Swing trading (large moves anyway)
* Brokers with modification limits
* Wide trailing strategies

***

#### **4. TrailingStart\_Pips**

```
TrailingStart_Pips = 20  // Profit in pips before trailing activates
```

**Controls when trailing stop starts (activation threshold).**

***

#### **Zero or Low Start (0-10 pips) - Immediate Trailing**

```
TrailingStart_Pips = 0
```

**Behavior:** Trailing starts immediately at entry.

**Example:**

```
Entry: 1.0850
Trailing: 30 pips, Start: 0

Price → 1.0851 (+1 pip):
→ Trailing activates immediately
→ SL starts following
```

**Pros:**

* ✅ Maximum protection from start
* ✅ Lock any profit quickly

**Cons:**

* ❌ Frequent stops on small moves
* ❌ May exit before trade develops

**Best for:**

* Very tight scalping
* Markets with instant movement
* Maximum protection priority

***

#### **Medium Start (20-40 pips) - Delayed Activation**

```
TrailingStart_Pips = 30
```

**Behavior:** Trailing starts only after reaching profit threshold.

**Example:**

```
Order: GBPUSD BUY @ 1.2700
SL: 1.2650 (50 pips)
Trailing: 40 pips
Start: 30 pips

Timeline:
1. Entry: 1.2700, SL: 1.2650 (fixed)
2. Price → 1.2720 (+20 pips): SL stays at 1.2650 (below activation)
3. Price → 1.2730 (+30 pips): ✅ Trailing activates!
   → SL → 1.2690 (40 pips trail distance)
4. Price → 1.2760: SL → 1.2720 (follows)
5. Price reverses to 1.2720: Closed with +20 pips locked
```

**Pros:**

* ✅ Trade has room to breathe initially
* ✅ Avoids premature trailing in choppy entry
* ✅ Professional approach

**Cons:**

* ❌ Original SL risk until activation

**Best for:**

* Day trading (H1-H4)
* Most strategies (recommended)
* Balanced approach

***

#### **High Start (50-100+ pips) - Late Activation**

```
TrailingStart_Pips = 80
```

**Behavior:** Trailing only starts after significant profit.

**Example:**

```
XAUUSD BUY @ 2650
SL: 2620 (30 points)
Trailing: 50 points
Start: 80 points

Price → 2730 (+80 points): ✅ Trailing activates
→ SL: 2620 → 2680 (locked 30 points profit)
```

**Pros:**

* ✅ Maximum room for trend development
* ✅ Avoid noise in consolidation
* ✅ Only trail confirmed runners

**Cons:**

* ❌ Large risk until activation
* ❌ May never activate on small moves

**Best for:**

* Swing trading (H4-Weekly)
* Strong trend following
* Runner strategies

***

### 💼 Real-World Examples

#### **Example 1: Scalping EURUSD (Tight Trailing)**

**Configuration:**

```
EnableTrailingStop = true
TrailingStop_Pips = 15
TrailingStop_Step = 5
TrailingStart_Pips = 10
```

**Trade:**

```
Entry: EURUSD BUY @ 1.0850
Initial SL: 1.0830 (20 pips)
TP: 1.0890 (40 pips)

Timeline:
1. Entry: 1.0850, SL: 1.0830
2. Price → 1.0860 (+10 pips): Trailing activates
   → SL → 1.0845 (15 pips trail)
3. Price → 1.0870: SL → 1.0855
4. Price → 1.0880: SL → 1.0865
5. Price reverses to 1.0865: Closed
   → Profit: 15 pips (instead of -5 without trailing)
```

***

#### **Example 2: Day Trading GBPUSD (Balanced Trailing)**

**Configuration:**

```
EnableTrailingStop = true
TrailingStop_Pips = 40
TrailingStop_Step = 10
TrailingStart_Pips = 30
```

**Trade:**

```
Entry: GBPUSD SELL @ 1.2800
Initial SL: 1.2850 (50 pips)
TP: 1.2650 (150 pips)

Timeline:
1. Entry: 1.2800, SL: 1.2850 (fixed)
2. Price → 1.2770 (+30 pips): Trailing activates
   → SL: 1.2850 → 1.2810 (40 pips trail)
3. Price → 1.2720: SL → 1.2760 (locked 40 pips)
4. Price → 1.2680: SL → 1.2720 (locked 80 pips)
5. Price reverses to 1.2720: Closed
   → Profit: 80 pips ✅ (instead of losing all)
```

***

#### **Example 3: Swing Trading XAUUSD (Wide Trailing)**

**Configuration:**

```
EnableTrailingStop = true
TrailingStop_Pips = 100
TrailingStop_Step = 20
TrailingStart_Pips = 100
```

**Trade:**

```
Entry: XAUUSD BUY @ 2650
Initial SL: 2600 (50 points)
TP: 2850 (200 points)

Timeline:
1. Entry: 2650, SL: 2600 (fixed)
2. Price → 2750 (+100 points): Trailing activates
   → SL: 2600 → 2650 (100 points trail, breakeven!)
3. Price → 2820: SL → 2720 (locked 70 points)
4. Price → 2850 (TP): Full profit taken
   → Trailing never triggered, hit TP
```

***

#### **Example 4: Volatile Pair GBPJPY (Adaptive)**

**Configuration:**

```
EnableTrailingStop = true
TrailingStop_Pips = 60
TrailingStop_Step = 10
TrailingStart_Pips = 50
```

**Reasoning:** GBPJPY moves fast, needs room but also protection.

**Trade:**

```
Entry: GBPJPY BUY @ 188.50
Initial SL: 187.80 (70 pips)
TP: 190.00 (150 pips)

Timeline:
1. Entry: 188.50, SL: 187.80
2. Price spikes to 189.20, pulls back to 189.00
   → SL: 187.80 → 188.40 (locked 60 pips trail)
3. Price rallies to 189.80
   → SL → 189.20 (locked 70 pips)
4. Price hits 190.00: TP taken
```

***

### ⚠️ Common Mistakes

#### ❌ **Mistake 1: Too Tight Trailing**

**Bad:**

```
Symbol: GBPUSD (volatile)
TrailingStop_Pips = 10  // Too tight!
```

**Result:** Stopped out constantly by normal volatility.

**Good:**

```
TrailingStop_Pips = 40-50  // Match pair volatility
```

***

#### ❌ **Mistake 2: No Activation Delay**

**Bad:**

```
TrailingStart_Pips = 0
TrailingStop_Pips = 20
// Trails immediately, stops on entry noise
```

**Good:**

```
TrailingStart_Pips = 30
TrailingStop_Pips = 20
// Let trade develop first
```

***

#### ❌ **Mistake 3: Step Too Small**

**Bad:**

```
TrailingStop_Step = 1  // Updates every pip!
// Result: "Too frequent modifications" broker error
```

**Good:**

```
TrailingStop_Step = 5-10
```

***

#### ❌ **Mistake 4: Same Settings for All Pairs**

**Bad:**

```
EURUSD (low vol): TrailingStop_Pips = 50 (too wide)
XAUUSD (high vol): TrailingStop_Pips = 50 (too tight)
```

**Good:** Use separate EA instances or ATR-based trailing.

***

#### ❌ **Mistake 5: Trailing Wider Than Initial SL**

**Bad:**

```
Initial SL: 30 pips
TrailingStop_Pips = 50  // Wider than initial!
// Result: SL moves away from entry (increases risk)
```

**Good:**

```
Trailing should be ≤ Initial SL distance
```

***

### ✅ Best Practices

#### ✅ **1. Match Trailing to Timeframe**

| Timeframe         | Trailing Distance | Start Threshold |
| ----------------- | ----------------- | --------------- |
| M1-M5 (Scalp)     | 10-20 pips        | 5-10 pips       |
| M15-H1 (Day)      | 30-50 pips        | 20-40 pips      |
| H4 (Swing)        | 60-100 pips       | 50-80 pips      |
| Daily+ (Position) | 100-200 pips      | 100-150 pips    |

***

#### ✅ **2. Match Trailing to Pair Volatility**

**Low Volatility (EURUSD, USDCHF):**

```
TrailingStop_Pips = 25-35
```

**Medium Volatility (GBPUSD, AUDUSD):**

```
TrailingStop_Pips = 40-60
```

**High Volatility (GBPJPY, XAUUSD):**

```
TrailingStop_Pips = 70-120
```

***

#### ✅ **3. Use Activation Threshold**

**Recommended:**

```
TrailingStart_Pips = 1.0-1.5x TrailingStop_Pips

Example:
TrailingStop_Pips = 40
TrailingStart_Pips = 50-60
```

**Benefit:** Trade has room to develop before trailing starts.

***

#### ✅ **4. Set Step Appropriately**

```
TrailingStop_Step = 10-20% of TrailingStop_Pips

Example:
TrailingStop_Pips = 50
TrailingStop_Step = 5-10
```

***

#### ✅ **5. Test Before Live**

* Enable on demo for 1-2 weeks
* Monitor EA logs for SL modifications
* Verify trailing activates correctly
* Check profit locking works as expected

***

### 🎯 Strategy Combinations

#### **Conservative Trailing (Lock Profits Fast)**

```
EnableTrailingStop = true
TrailingStop_Pips = 25
TrailingStop_Step = 5
TrailingStart_Pips = 20
```

**Result:** Quick profit protection, accept frequent exits.

***

#### **Balanced Trailing (Recommended)**

```
EnableTrailingStop = true
TrailingStop_Pips = 40
TrailingStop_Step = 10
TrailingStart_Pips = 50
```

**Result:** Good balance of protection and room to run.

***

#### **Aggressive Trailing (Let Trends Run)**

```
EnableTrailingStop = true
TrailingStop_Pips = 80
TrailingStop_Step = 15
TrailingStart_Pips = 100
```

**Result:** Maximum runner potential, give back more on reversals.

***

### 📊 Performance Comparison

**Test:** 100 trades, EURUSD H1, 3 months

| Configuration               | Avg Profit | Win Rate | Max Drawdown |
| --------------------------- | ---------- | -------- | ------------ |
| No Trailing (Fixed SL)      | +12%       | 52%      | -8%          |
| Tight Trailing (15 pips)    | +8%        | 48%      | -6%          |
| Balanced Trailing (40 pips) | +18%       | 54%      | -7%          |
| Wide Trailing (80 pips)     | +15%       | 56%      | -9%          |

**Conclusion:** Balanced trailing (40 pips) performed best for H1 timeframe.

***

### 🔍 EA Logging Examples

**Trailing Activated:**

```
========== TRAILING STOP ACTIVATED ==========
Order: #12345678
Symbol: GBPUSD BUY
Entry: 1.2700
Current Price: 1.2730 (+30 pips profit)
Activation Threshold: 30 pips ✅
Original SL: 1.2650
New Trailing SL: 1.2690 (40 pips behind current price)
Status: Trailing now active
=============================================
```

**SL Modified (Trailing):**

```
========== TRAILING SL UPDATED ==========
Order: #12345678
Symbol: GBPUSD BUY
Price Movement: 1.2730 → 1.2750 (+20 pips)
Old SL: 1.2690
New SL: 1.2710 (+20 pips)
Locked Profit: 10 pips (was breakeven, now +10)
=========================================
```

**Order Closed by Trailing SL:**

```
========== ORDER CLOSED BY TRAILING SL ==========
Order: #12345678
Symbol: GBPUSD BUY
Entry: 1.2700
Final Price: 1.2745 (SL hit on reversal)
Profit: +45 pips ($90.00)
Note: Without trailing, would have been +30 pips
Trailing Performance: +15 pips extra ✅
=================================================
```

***

### 🚀 Quick Start Guide

#### **Step 1: Determine Your Style**

**Scalper:** Tight trailing (15-25 pips) **Day Trader:** Balanced trailing (30-50 pips) **Swing Trader:** Wide trailing (60-120 pips)

#### **Step 2: Configure Settings**

```
EnableTrailingStop = true
TrailingStop_Pips = [your choice]
TrailingStop_Step = [10-20% of trailing pips]
TrailingStart_Pips = [1-1.5x trailing pips]
```

#### **Step 3: Test on Demo**

* Open 5-10 trades
* Monitor SL modifications
* Check profit locking
* Verify no broker errors

#### **Step 4: Fine-Tune**

* Too many stops? Increase trailing distance
* Not locking profit? Decrease start threshold
* Broker errors? Increase step size

#### **Step 5: Go Live**

* Start with conservative settings
* Monitor first week closely
* Adjust based on results

***

### 📞 FAQ

**Q: Can I use trailing stop with fixed SL at same time?** A: Yes. Initial SL is fixed until trailing activates.

**Q: Does trailing work with pending orders?** A: Yes, trailing starts after order is triggered and reaches activation threshold.

**Q: Can I disable trailing for specific symbols?** A: Not directly. Use separate EA instances or disable globally.

**Q: What if price gaps through trailing SL?** A: Order closes at actual price (standard MT4 behavior), may have slippage.

**Q: Does trailing affect TP?** A: No, TP remains fixed. If TP is hit, trailing SL is irrelevant.

***

**Remember:** Trailing stop is a powerful tool to let winners run while protecting profits. Use it wisely! 📈


# Trading Filters Guide

### 📋 Overview

RedFox Copier Pro includes multiple filtering layers to control which signals are executed. You can filter by symbol, trading hours, days of week, and signal content. This ensures you only trade what fits your strategy and schedule.

**Filter Categories:**

1. **Symbol Filters** - Which instruments to trade
2. **Time Filters** - When to trade (hours & days)
3. **Content Filters** - What text patterns to allow/block

***

### 🎯 Symbol Filters

#### **1. EnableListSymbol**

```
EnableListSymbol = true | false
```

**Controls whether symbol filtering is active.**

***

#### **false** (Default - All Symbols)

**Behavior:** EA trades all symbols from signals.

**Example:**

```
Signals received:
- EURUSD BUY ✅
- XAUUSD BUY ✅
- GBPJPY SELL ✅
- US30 BUY ✅

All symbols are traded
```

**When to use:**

* Trust all signal provider's instruments
* Want maximum diversification
* No symbol preferences

***

#### **true** (Symbol Whitelist Active)

**Behavior:** EA only trades symbols in `ListSymbol` setting.

**Example:**

```
ListSymbol = "EURUSD,GBPUSD,XAUUSD"

Signals received:
- EURUSD BUY ✅ (in list)
- GBPUSD SELL ✅ (in list)
- USDJPY BUY ⚠️ (not in list, blocked)
- XAUUSD BUY ✅ (in list)
```

**When to use:**

* Focus on specific instruments
* Avoid high-spread pairs
* Limit to pairs you understand
* Broker doesn't offer all symbols

***

#### **2. ListSymbol**

```
ListSymbol = "EURUSD,GBPUSD,XAUUSD"  // Comma-separated list
```

**Defines which symbols to trade (when EnableListSymbol = true).**

***

#### **Configuration Examples:**

**Major Forex Only:**

```
EnableListSymbol = true
ListSymbol = "EURUSD,GBPUSD,USDJPY,USDCHF"
```

**Gold + EUR Pairs:**

```
EnableListSymbol = true
ListSymbol = "XAUUSD,EURUSD,EURGBP,EURJPY"
```

**Indices Only:**

```
EnableListSymbol = true
ListSymbol = "US30,SPX500,NAS100,GER40"
```

**Mixed Portfolio:**

```
EnableListSymbol = true
ListSymbol = "EURUSD,GBPUSD,XAUUSD,BTCUSD,US30"
```

**Important:**

* Use **exact** broker symbol names (check Market Watch)
* No spaces after commas: `"EUR,GBP"` not `"EUR, GBP"`
* Case-sensitive on some brokers
* Include suffix if broker requires (e.g., `EURUSDm`, `XAUUSD.`)

***

#### **Symbol Suffix Handling**

**Problem:** Brokers add suffixes to symbols (EURUSD → EURUSDm, XAUUSD.)

**Solution:** EA automatically tries multiple suffix variations.

**Settings:**

```
SymbolsEnd = ""  // Your broker's suffix (if any)
```

**Examples:**

**No Suffix (Standard):**

```
SymbolsEnd = ""
Signal: EURUSD
EA opens: EURUSD ✅
```

**With Suffix (ECN Broker):**

```
SymbolsEnd = "m"
Signal: EURUSD
EA opens: EURUSDm ✅
```

**Auto-Detection:** EA tries these variations automatically:

```
Signal: EURUSD
EA tries:
1. EURUSD
2. EURUSDm
3. EURUSD.
4. EURUSDpro
5. EURUSD_
6. [other common suffixes]

Uses first match found in Market Watch
```

**Best Practice:** Leave `SymbolsEnd = ""` and let EA auto-detect.

***

### ⏰ Time Filters

#### **3. EnableTimeFilter**

```
EnableTimeFilter = true | false
```

**Controls whether time-based filtering is active.**

***

#### **false** (Default - 24/7 Trading)

**Behavior:** EA trades any time a signal is received.

**When to use:**

* Automated 24/7 trading
* Signal provider has good timing
* No schedule restrictions

***

#### **true** (Time Filter Active)

**Behavior:** EA only trades during specified hours and days.

**When to use:**

* Avoid high-spread hours (rollover, news)
* Trade only London/NY sessions
* Weekend/holiday restrictions
* Personal trading schedule

***

#### **4. StartHour / EndHour**

```
StartHour = 8   // Trading starts at 08:00 (broker time)
EndHour = 20    // Trading ends at 20:00 (broker time)
```

**Defines trading hours (24-hour format, broker server time).**

***

#### **Configuration Examples:**

**London + NY Session (Full Overlap):**

```
EnableTimeFilter = true
StartHour = 8   // 08:00
EndHour = 20    // 20:00
// Covers 8 AM - 8 PM (most liquid hours)
```

**NY Session Only:**

```
StartHour = 13  // 13:00 (1 PM)
EndHour = 22    // 22:00 (10 PM)
```

**Asian Session:**

```
StartHour = 0   // 00:00 (midnight)
EndHour = 9     // 09:00 (9 AM)
```

**Avoid Rollover (Skip 11 PM - 1 AM):**

```
StartHour = 1   // 01:00
EndHour = 23    // 23:00
// Skips 11 PM - 1 AM high-spread period
```

**Important Notes:**

* Times are in **broker server time** (check MT4 market watch)
* Most brokers use GMT+2/GMT+3 (Europe time)
* Convert your local time to broker time!

***

#### **Example Timeline:**

```
Configuration:
StartHour = 8
EndHour = 18

Signal Timeline (Broker Time):
07:30 - Signal received ⚠️ (before 08:00, blocked)
08:15 - Signal received ✅ (within hours, executed)
12:00 - Signal received ✅ (executed)
18:30 - Signal received ⚠️ (after 18:00, blocked)
```

**EA Logs:**

```
⚠️ Signal blocked by time filter
Current Time: 07:30
Allowed Hours: 08:00 - 18:00
Reason: Outside trading hours
```

***

#### **5. StartDay / EndDay**

```
StartDay = 1  // Monday (1 = Monday, 7 = Sunday)
EndDay = 5    // Friday
```

**Defines trading days (1=Mon, 2=Tue, 3=Wed, 4=Thu, 5=Fri, 6=Sat, 7=Sun).**

***

#### **Configuration Examples:**

**Weekdays Only (Avoid Weekend Gaps):**

```
EnableTimeFilter = true
StartDay = 1  // Monday
EndDay = 5    // Friday
// Trades Mon-Fri only
```

**Exclude Friday (Avoid Weekend Risk):**

```
StartDay = 1  // Monday
EndDay = 4    // Thursday
// Trades Mon-Thu, closes all before Friday
```

**Full Week (Including Weekend):**

```
StartDay = 1  // Monday
EndDay = 7    // Sunday
// Trades any day (if broker offers weekend trading)
```

**Mid-Week Only:**

```
StartDay = 2  // Tuesday
EndDay = 4    // Thursday
// Avoid Monday open volatility and Friday close
```

***

#### **Combined Time & Day Filter Example:**

**Professional Setup (London Session, Weekdays):**

```
EnableTimeFilter = true
StartHour = 8    // 08:00
EndHour = 17     // 17:00
StartDay = 1     // Monday
EndDay = 5       // Friday

Result:
✅ Monday 10:00 - Allowed
✅ Wednesday 15:00 - Allowed
⚠️ Friday 20:00 - Blocked (after 17:00)
⚠️ Saturday 12:00 - Blocked (weekend)
⚠️ Tuesday 06:00 - Blocked (before 08:00)
```

***

### 🔍 Content Filters (Whitelist/Blacklist)

#### **6. EnableWhitelist**

```
EnableWhitelist = true | false
```

**Controls whether signal text must contain specific keywords.**

***

#### **false** (Default - No Content Filter)

**Behavior:** All signal text formats are accepted.

**When to use:**

* Trust all signal provider's messages
* No specific content requirements

***

#### **true** (Whitelist Active)

**Behavior:** Signal text must contain at least one keyword from `Whitelist`.

**Use Cases:**

* Only trade specific signal types
* Filter by strategy name
* Require specific indicators mentioned

***

#### **7. Whitelist**

```
Whitelist = "PREMIUM,VIP,CONFIRMED"  // Comma-separated keywords
```

**Signal must contain at least ONE of these keywords to be executed.**

***

#### **Configuration Examples:**

**VIP Signals Only:**

```
EnableWhitelist = true
Whitelist = "VIP,PREMIUM"

Signal 1: "🔥 VIP Signal: EURUSD BUY" ✅ (contains "VIP")
Signal 2: "EURUSD BUY" ⚠️ (no keyword, blocked)
Signal 3: "PREMIUM Trade: GBPUSD SELL" ✅ (contains "PREMIUM")
```

**Confirmed Setups Only:**

```
EnableWhitelist = true
Whitelist = "CONFIRMED,STRONG SETUP,HIGH PROBABILITY"

Signal 1: "CONFIRMED: XAUUSD BUY" ✅
Signal 2: "Possible EURUSD trade" ⚠️ (not confirmed)
```

**Specific Strategy:**

```
EnableWhitelist = true
Whitelist = "BREAKOUT,TREND FOLLOW"

Signal 1: "BREAKOUT Signal - GBPUSD" ✅
Signal 2: "Scalp trade EURUSD" ⚠️ (wrong strategy)
```

**Multiple Channels (Filter by Source):**

```
EnableWhitelist = true
Whitelist = "CHANNEL-A,CHANNEL-B"

// Only signals tagged with channel name are executed
```

***

#### **8. EnableBlacklist**

```
EnableBlacklist = true | false
```

**Controls whether certain keywords block signals.**

***

#### **false** (Default - No Blacklist)

**Behavior:** No text-based blocking.

***

#### **true** (Blacklist Active)

**Behavior:** Signal is blocked if it contains ANY keyword from `Blacklist`.

**Use Cases:**

* Avoid risky setups
* Skip specific instruments
* Filter out test signals
* Block experimental strategies

***

#### **9. Blacklist**

```
Blacklist = "TEST,DEMO,RISKY"  // Comma-separated keywords
```

**Signal is blocked if it contains ANY of these keywords.**

***

#### **Configuration Examples:**

**Avoid Test Signals:**

```
EnableBlacklist = true
Blacklist = "TEST,DEMO,PRACTICE"

Signal 1: "TEST - EURUSD BUY" ⚠️ (contains "TEST", blocked)
Signal 2: "EURUSD BUY" ✅ (no blacklist word)
```

**Skip Risky Trades:**

```
EnableBlacklist = true
Blacklist = "RISKY,HIGH RISK,AGGRESSIVE,YOLO"

Signal 1: "RISKY TRADE: GBPJPY" ⚠️ (blocked)
Signal 2: "Conservative: EURUSD" ✅
```

**Avoid Specific Pairs (Alternative to Symbol Filter):**

```
EnableBlacklist = true
Blacklist = "JPY,EXOTIC,CRYPTO"

Signal 1: "USDJPY BUY" ⚠️ (contains "JPY")
Signal 2: "EURUSD BUY" ✅
```

**Filter News Trades:**

```
EnableBlacklist = true
Blacklist = "NEWS,NFP,FOMC,PENDING"

Signal 1: "NEWS Trade - EURUSD" ⚠️ (contains "NEWS")
Signal 2: "Technical Setup - GBPUSD" ✅
```

***

#### **Whitelist + Blacklist Combined:**

**Example: Only VIP, But Skip Risky**

```
EnableWhitelist = true
Whitelist = "VIP,PREMIUM"

EnableBlacklist = true
Blacklist = "RISKY,NEWS"

Signal 1: "VIP Signal: EURUSD BUY" ✅ (VIP + no blacklist)
Signal 2: "VIP RISKY: GBPJPY" ⚠️ (VIP but contains RISKY, blocked!)
Signal 3: "EURUSD BUY" ⚠️ (no VIP keyword)
Signal 4: "PREMIUM NEWS: XAUUSD" ⚠️ (PREMIUM but contains NEWS)
```

**Logic:**

1. Check whitelist: Must contain keyword
2. Check blacklist: Must NOT contain keyword
3. Both must pass for signal to execute

***

### 💼 Real-World Configuration Examples

#### **Example 1: Conservative Trader**

**Goal:** Only major pairs, London session, weekdays only.

**Configuration:**

```
// Symbol Filter
EnableListSymbol = true
ListSymbol = "EURUSD,GBPUSD,USDCHF"

// Time Filter
EnableTimeFilter = true
StartHour = 8
EndHour = 17
StartDay = 1
EndDay = 5

// Content Filter
EnableWhitelist = true
Whitelist = "CONFIRMED,LOW RISK"
EnableBlacklist = false
```

**Result:** Very selective trading, only clean setups during optimal hours.

***

#### **Example 2: Gold Specialist**

**Goal:** Only Gold, NY session, avoid news.

**Configuration:**

```
// Symbol Filter
EnableListSymbol = true
ListSymbol = "XAUUSD"

// Time Filter
EnableTimeFilter = true
StartHour = 13  // NY open
EndHour = 22    // NY close
StartDay = 1
EndDay = 5

// Content Filter
EnableWhitelist = false
EnableBlacklist = true
Blacklist = "NEWS,NFP,FOMC,CPI"
```

**Result:** Focused Gold trading, avoids high-impact news volatility.

***

#### **Example 3: Premium Signals Only**

**Goal:** Only VIP signals, any time, any symbol.

**Configuration:**

```
// Symbol Filter
EnableListSymbol = false  // All symbols

// Time Filter
EnableTimeFilter = false  // 24/7

// Content Filter
EnableWhitelist = true
Whitelist = "VIP,PREMIUM,GOLD SIGNAL"
EnableBlacklist = false
```

**Result:** Maximum flexibility but only premium tier signals.

***

#### **Example 4: Avoid Volatility**

**Goal:** Trade major pairs, avoid news and risky setups, avoid Friday.

**Configuration:**

```
// Symbol Filter
EnableListSymbol = true
ListSymbol = "EURUSD,GBPUSD,USDCHF,AUDUSD"

// Time Filter
EnableTimeFilter = true
StartHour = 8
EndHour = 20
StartDay = 1
EndDay = 4  // Monday-Thursday only

// Content Filter
EnableBlacklist = true
Blacklist = "NEWS,RISKY,AGGRESSIVE,VOLATILE,NFP,FOMC"
```

**Result:** Safe, conservative trading avoiding high-risk periods and setups.

***

#### **Example 5: Full Diversification**

**Goal:** Trade everything (maximum signals).

**Configuration:**

```
// Symbol Filter
EnableListSymbol = false

// Time Filter
EnableTimeFilter = false

// Content Filter
EnableWhitelist = false
EnableBlacklist = false
```

**Result:** EA executes every signal received (maximum exposure).

***

### ⚠️ Common Mistakes

#### ❌ **Mistake 1: Wrong Broker Symbol Names**

**Bad:**

```
ListSymbol = "EURUSD,XAUUSD"
Broker symbols: EURUSDm, XAUUSD.
// Result: No match, no trades!
```

**Good:**

```
Check Market Watch, use exact names:
ListSymbol = "EURUSDm,XAUUSD."
// Or use SymbolsEnd for auto-suffix
```

***

#### ❌ **Mistake 2: Time Zone Confusion**

**Bad:**

```
Your Time: 9 AM EST
Broker Time: 4 PM GMT+3
StartHour = 9  // Thinks this is broker time
// Result: Actually trading at 4 PM your time!
```

**Good:**

```
Convert to broker time:
Your 9 AM EST = 4 PM broker time
StartHour = 16
```

***

#### ❌ **Mistake 3: Whitelist + Blacklist Conflict**

**Bad:**

```
Whitelist = "VIP"
Blacklist = "VIP-TEST"

Signal: "VIP-TEST Signal"
// Contains "VIP" (whitelist pass) AND "VIP-TEST" (blacklist block)
// Result: Blocked (blacklist wins)
```

**Good:** Use precise keywords without overlap.

***

#### ❌ **Mistake 4: Too Restrictive Filters**

**Bad:**

```
EnableListSymbol = true
ListSymbol = "EURUSD"  // Only 1 symbol

EnableTimeFilter = true
StartHour = 14
EndHour = 16  // Only 2 hours

EnableWhitelist = true
Whitelist = "SUPER-VIP"  // Rare keyword

// Result: Almost no signals execute!
```

**Good:** Balance filters with signal frequency.

***

#### ❌ **Mistake 5: Spaces in Lists**

**Bad:**

```
ListSymbol = "EURUSD, GBPUSD, XAUUSD"  // Spaces after commas
// May cause parsing issues
```

**Good:**

```
ListSymbol = "EURUSD,GBPUSD,XAUUSD"  // No spaces
```

***

### ✅ Best Practices

#### ✅ **1. Start Permissive, Then Restrict**

**Week 1:**

```
All filters OFF
// See what signals come in
```

**Week 2:**

```
Add symbol filter (focus on profitable pairs)
```

**Week 3:**

```
Add time filter (optimize for best hours)
```

**Week 4:**

```
Add content filters if needed
```

***

#### ✅ **2. Monitor Filter Logs**

EA logs blocked signals:

```
⚠️ Signal blocked by symbol filter: USDJPY
⚠️ Signal blocked by time filter: 22:30
⚠️ Signal blocked by whitelist: No keyword found
```

Review logs weekly:

* Missing good trades? Relax filters
* Too many bad trades? Tighten filters

***

#### ✅ **3. Match Filters to Strategy**

**Scalping:**

```
EnableTimeFilter = true (high liquidity hours only)
EnableListSymbol = true (low spread pairs only)
```

**Swing Trading:**

```
EnableTimeFilter = false (entry timing less critical)
EnableListSymbol = true (focus on trending pairs)
```

**News Trading:**

```
Blacklist = "NEWS,NFP"  // Avoid (or whitelist for specialists)
```

***

#### ✅ **4. Test Filter Combinations**

* Run on demo with different configurations
* Compare performance (profit, drawdown, trade count)
* Find optimal balance

**Example Test:**

```
Week 1: All symbols, all time
Week 2: Major pairs only, all time
Week 3: Major pairs, London+NY only
Week 4: Major pairs, London+NY, VIP only

Compare results → Choose best
```

***

#### ✅ **5. Document Your Filters**

```
Filter Configuration Notes:
Date: 2024-10-28

Symbols: EURUSD, GBPUSD, XAUUSD (low spread, liquid)
Hours: 08:00-20:00 broker time (London+NY overlap)
Days: Mon-Thu (avoid Friday risk)
Content: VIP only (premium signals)

Reason: Focus on high-quality setups during optimal hours
Review Date: 2024-11-15
```

***

### 🔍 EA Logging Examples

**Symbol Filter Block:**

```
⚠️ SIGNAL BLOCKED - Symbol Filter
Signal: USDJPY BUY
Reason: Symbol not in whitelist
Allowed Symbols: EURUSD, GBPUSD, XAUUSD
Action: Signal skipped
```

**Time Filter Block:**

```
⚠️ SIGNAL BLOCKED - Time Filter
Signal: EURUSD BUY
Current Time: 22:45 (Broker Time)
Allowed Hours: 08:00 - 20:00
Allowed Days: Mon-Fri (Today: Friday)
Action: Signal skipped
```

**Content Filter Block:**

```
⚠️ SIGNAL BLOCKED - Blacklist
Signal Text: "RISKY NEWS Trade - EURUSD BUY"
Matched Keyword: "RISKY"
Blacklist: RISKY, NEWS, AGGRESSIVE
Action: Signal skipped
```

**Filter Pass:**

```
✅ SIGNAL PASSED ALL FILTERS
Symbol: GBPUSD ✅ (in whitelist)
Time: 10:30 Tuesday ✅ (within hours)
Content: "VIP Signal: GBPUSD BUY" ✅ (whitelist match)
Action: Processing signal for order placement
```

***

### 📊 Filter Impact Analysis

**Test:** 500 signals over 3 months

| Filter Config           | Signals Passed | Win Rate | Profit | Drawdown |
| ----------------------- | -------------- | -------- | ------ | -------- |
| No Filters              | 500 (100%)     | 52%      | +15%   | -12%     |
| Symbol Only (Majors)    | 350 (70%)      | 54%      | +18%   | -10%     |
| Symbol + Time           | 200 (40%)      | 58%      | +22%   | -8%      |
| Symbol + Time + Content | 120 (24%)      | 62%      | +25%   | -6%      |

**Conclusion:** Proper filtering improves win rate and reduces drawdown by focusing on optimal conditions.

***

### 🚀 Quick Start Guide

#### **Step 1: Understand Your Signal Provider**

* What symbols do they trade?
* When do they send signals?
* Do they use specific keywords?

#### **Step 2: Set Symbol Filter**

```
EnableListSymbol = true
ListSymbol = "[your broker's exact symbol names]"
```

Verify in Market Watch!

#### **Step 3: Set Time Filter (Optional)**

```
EnableTimeFilter = true
StartHour = [optimal start]
EndHour = [optimal end]
StartDay = 1
EndDay = 5
```

#### **Step 4: Set Content Filters (Optional)**

```
// If signal provider uses tags:
EnableWhitelist = true
Whitelist = "VIP,PREMIUM"

// If you want to avoid certain types:
EnableBlacklist = true
Blacklist = "RISKY,NEWS"
```

#### **Step 5: Monitor & Adjust**

* Check EA logs for blocked signals
* Adjust filters based on performance
* Balance selectivity vs signal frequency

***

### 📞 FAQ

**Q: No orders opening at all?** A: Check logs for filter blocks. Likely symbol names don't match or time filter too restrictive.

**Q: Can I use regex in whitelist/blacklist?** A: No, simple keyword matching only. Keywords are case-insensitive.

**Q: How to trade only one specific symbol?** A: `EnableListSymbol = true`, `ListSymbol = "EURUSD"` (single symbol).

**Q: Time filter not working?** A: Verify broker server time (check MT4 Market Watch time). Convert your local time.

**Q: Can I have different filters per symbol?** A: Not directly. Use separate EA instances or file config feature.

***

**Remember:** Filters are powerful tools to align signal execution with your strategy and schedule. Use them wisely! 🎯


# Report & Dashboard Guide

### 📋 Overview

RedFox Copier Pro includes advanced analytics and reporting features to monitor performance and visualize real-time data. These professional tools help you track results, analyze patterns, and make data-driven decisions.

**Key Features:**

* 📊 **Automated Reports** - Daily/Weekly/Monthly analytics via Telegram
* 📈 **Chart Dashboard** - Real-time visual display on charts
* 📁 **CSV Export** - Data export for external analysis
* 📉 **Performance Metrics** - Win rate, profit factor, drawdown tracking

***

### 📊 Report & Analytics

#### **1. EnableReport**

```
EnableReport = true | false
```

**Controls whether EA generates and sends performance reports.**

***

#### **false** (Default - No Reports)

**Behavior:** No automated analytics, manual tracking only.

**When to use:**

* Don't want Telegram messages
* Manual tracking preferred
* Reduce EA overhead

***

#### **true** (Reports Active - Recommended)

**Behavior:** EA automatically generates reports and sends via Telegram.

**When to use:**

* Professional performance tracking
* Want accountability and transparency
* Make data-driven decisions
* Monitor multiple EA instances

**Benefits:**

* ✅ Track performance over time
* ✅ Identify best symbols/strategies
* ✅ Spot issues early
* ✅ Data-driven optimization

***

#### **2. AutoDailyReport**

```
AutoDailyReport = true | false
```

**Controls automatic daily report generation.**

***

#### **true** (Auto Daily Reports)

**Behavior:** EA sends daily summary at end of trading day.

**Report Content:**

```
📊 DAILY TRADING REPORT
Date: 2024-10-28

💰 PERFORMANCE
Starting Balance: $10,000
Ending Balance: $10,245
Profit/Loss: +$245 (+2.45%)
Highest Balance: $10,280
Lowest Balance: $9,950

📈 TRADING STATS
Total Trades: 15
Winning Trades: 9 (60%)
Losing Trades: 6 (40%)
Average Win: $45.50
Average Loss: -$18.20
Largest Win: $120.00
Largest Loss: -$35.00

🎯 SYMBOLS TRADED
EURUSD: 6 trades, +$120 (65% win rate)
GBPUSD: 5 trades, +$80 (60% win rate)
XAUUSD: 4 trades, +$45 (50% win rate)

⏱️ BEST TIME
Most Profitable Hour: 10:00-11:00 (+$95)
Worst Hour: 16:00-17:00 (-$25)

📊 RISK METRICS
Max Drawdown: -$50 (0.5%)
Risk/Reward Ratio: 2.5:1
Average Risk Per Trade: 1.2%
```

**When to use:**

* Daily performance review
* Track consistency
* Identify daily patterns
* Professional accountability

***

#### **3. AutoWeeklyReport**

```
AutoWeeklyReport = true | false
```

**Controls automatic weekly report generation.**

**Report Content:**

```
📊 WEEKLY TRADING REPORT
Week: Oct 21-27, 2024

💰 WEEKLY PERFORMANCE
Starting Balance: $10,000
Ending Balance: $10,680
Profit/Loss: +$680 (+6.8%)
Best Day: Thursday (+$245)
Worst Day: Monday (-$45)

📈 WEEKLY STATS
Total Trades: 52
Win Rate: 58%
Profit Factor: 2.15
Average Trade: +$13.08

🎯 SYMBOL BREAKDOWN
EURUSD: 20 trades, +$320 (60% WR)
GBPUSD: 18 trades, +$245 (55% WR)
XAUUSD: 14 trades, +$115 (57% WR)

📅 DAILY BREAKDOWN
Monday: 8 trades, -$45
Tuesday: 12 trades, +$180
Wednesday: 10 trades, +$125
Thursday: 14 trades, +$245
Friday: 8 trades, +$175

🏆 PERFORMANCE GRADE: A-
Recommendation: Excellent week. Consider increasing position size on EURUSD.
```

**When to use:**

* Weekly review and planning
* Compare week-over-week progress
* Strategic adjustments
* Long-term tracking

***

#### **4. AutoMonthlyReport**

```
AutoMonthlyReport = true | false
```

**Controls automatic monthly report generation.**

**Report Content:**

```
📊 MONTHLY TRADING REPORT
Month: October 2024

💰 MONTHLY PERFORMANCE
Starting Balance: $10,000
Ending Balance: $12,450
Profit/Loss: +$2,450 (+24.5%)
Peak Balance: $12,680
Max Drawdown: -$320 (3.2%)

📈 MONTHLY STATS
Total Trades: 218
Winning: 132 (60.6%)
Losing: 86 (39.4%)
Profit Factor: 2.35
Sharpe Ratio: 1.85

🎯 TOP PERFORMERS
Best Symbol: EURUSD (+$980, 65% WR)
Best Strategy: London Breakout (+$1,200)
Best Day: Oct 18 (+$385)
Best Week: Week 3 (+$780)

📉 BOTTOM PERFORMERS
Worst Symbol: GBPJPY (-$120, 42% WR)
Worst Day: Oct 5 (-$95)
Worst Week: Week 1 (-$45)

⏱️ TIME ANALYSIS
Most Profitable Session: London (08:00-12:00)
Least Profitable: Asian (00:00-06:00)

🛡️ RISK ANALYSIS
Average Risk/Trade: 1.2%
Max Simultaneous Risk: 8.5%
Risk-Adjusted Return: 7.65x

🏆 MONTHLY GRADE: A+
Growth Rate: 24.5%
Consistency: High (90% positive weeks)
Risk Management: Excellent

📌 RECOMMENDATIONS:
✅ Continue current strategy
✅ Consider increasing EURUSD allocation
⚠️ Reduce GBPJPY exposure (poor performance)
⚠️ Avoid Asian session trading
```

**When to use:**

* Monthly performance review
* Long-term strategy evaluation
* Reporting to investors/partners
* Tax/accounting records

***

#### **5. ReportTime**

```
ReportTime = "23:59"  // HH:MM format (broker time)
```

**Defines when daily report is generated (24-hour format, broker server time).**

**Configuration Examples:**

**End of Trading Day:**

```
ReportTime = "23:59"  // Just before midnight
```

**Before European Close:**

```
ReportTime = "17:00"  // 5 PM
```

**After NY Close:**

```
ReportTime = "22:00"  // 10 PM
```

**Important:** Use broker server time (check MT4 market watch).

***

#### **6. ExportReportCSV**

```
ExportReportCSV = true | false
```

**Controls whether reports are also saved as CSV files.**

***

#### **true** (Export to CSV)

**Behavior:** Report data saved to `Files/` folder as CSV.

**File Format:**

```
Files/RedFoxCopierPro_Report_2024-10-28.csv

Date,Symbol,Type,Lot,Entry,Exit,SL,TP,Profit,Duration,Result
2024-10-28,EURUSD,BUY,0.10,1.0850,1.0900,1.0800,1.0900,50.00,45m,WIN
2024-10-28,GBPUSD,SELL,0.15,1.2700,1.2650,1.2750,1.2650,75.00,1h20m,WIN
2024-10-28,XAUUSD,BUY,0.05,2650,2640,2630,2680,-50.00,25m,LOSS
...
```

**Use Cases:**

* Import to Excel/Google Sheets
* Advanced analytics (pivot tables, charts)
* Custom backtesting analysis
* Share with partners/investors
* Tax preparation

**When to enable:**

* Professional trading
* Want detailed records
* External analysis tools
* Compliance/audit requirements

***

### 📈 Chart Dashboard

#### **7. EnableChartDashboard**

```
EnableChartDashboard = true | false
```

**Controls whether real-time dashboard is displayed on chart.**

***

#### **false** (No Dashboard)

**Behavior:** Clean chart, no overlays.

**When to use:**

* Minimal screen space
* Focus on price action only
* Multiple charts (dashboard on one only)

***

#### **true** (Dashboard Active - Recommended)

**Behavior:** Real-time info panel displayed on chart.

**Dashboard Display:**

```
╔══════════════════════════════════════╗
║     REDFOX COPIER PRO v1.66          ║
╠══════════════════════════════════════╣
║ 💰 ACCOUNT INFO                      ║
║ Balance: $10,245.50                  ║
║ Equity: $10,380.25                   ║
║ Free Margin: $9,850.00               ║
║ Margin Level: 485.2%                 ║
╠══════════════════════════════════════╣
║ 📊 TODAY'S PERFORMANCE               ║
║ Starting Balance: $10,000.00         ║
║ Profit/Loss: +$245.50 (+2.45%)      ║
║ Trades: 15 | Win: 9 | Loss: 6       ║
║ Win Rate: 60.0%                      ║
╠══════════════════════════════════════╣
║ 📈 OPEN POSITIONS                    ║
║ Total: 5 orders                      ║
║ EURUSD BUY: 0.20 lot (+$35.50)      ║
║ GBPUSD SELL: 0.15 lot (+$22.80)     ║
║ XAUUSD BUY: 0.10 lot (-$12.00)      ║
║ Floating P/L: +$46.30                ║
╠══════════════════════════════════════╣
║ 🛡️ PROTECTION STATUS                ║
║ Daily Loss Limit: -$200 (0/-200)    ║
║ Daily Profit Target: $500 (245/500) ║
║ Status: ✅ ACTIVE                   ║
╠══════════════════════════════════════╣
║ 🔗 CONNECTION                        ║
║ Telegram: ✅ Connected              ║
║ Last Signal: 2m ago                  ║
║ EA Status: ✅ RUNNING               ║
╚══════════════════════════════════════╝
```

**Benefits:**

* ✅ Real-time performance monitoring
* ✅ Quick account health check
* ✅ No need to check Telegram
* ✅ Professional visual feedback
* ✅ Spot issues instantly

**When to use:**

* Active monitoring
* Professional trading setup
* Multiple monitors
* Demo/live comparison

***

#### **8. DashboardPosition**

```
DashboardPosition = TOP_LEFT | TOP_RIGHT | BOTTOM_LEFT | BOTTOM_RIGHT
```

**Controls where dashboard appears on chart.**

**Configuration:**

```
TOP_LEFT - Upper left corner (default)
TOP_RIGHT - Upper right corner
BOTTOM_LEFT - Lower left corner (good for price focus)
BOTTOM_RIGHT - Lower right corner
```

**Recommendation:** Choose position that doesn't overlap important price levels.

***

#### **9. DashboardSize**

```
DashboardSize = SMALL | MEDIUM | LARGE
```

**Controls dashboard text size and panel dimensions.**

**SMALL:**

* Compact display
* Minimal screen space
* Basic info only

**MEDIUM (Recommended):**

* Balanced size
* Good readability
* Standard info

**LARGE:**

* Maximum visibility
* Large monitors
* Detailed info
* Presentation mode

***

### 💼 Real-World Configuration Examples

#### **Example 1: Professional Trader Setup**

**Account:** $10,000

**Configuration:**

```
// Reports (comprehensive tracking)
EnableReport = true
AutoDailyReport = true
AutoWeeklyReport = true
AutoMonthlyReport = true
ReportTime = "23:59"
ExportReportCSV = true

// Dashboard (detailed monitoring)
EnableChartDashboard = true
DashboardPosition = TOP_LEFT
DashboardSize = MEDIUM
```

**Result:** Complete performance tracking with daily accountability, weekly trends, monthly analytics, and real-time dashboard.

***

#### **Example 2: Minimal Setup**

**Account:** $5,000

**Configuration:**

```
// Reports (basic only)
EnableReport = true
AutoDailyReport = true
AutoWeeklyReport = false
AutoMonthlyReport = false
ExportReportCSV = false

// Dashboard (on-chart only)
EnableChartDashboard = true
DashboardPosition = TOP_RIGHT
DashboardSize = SMALL
```

**Result:** Daily accountability without excessive data, clean dashboard for quick checks.

***

#### **Example 3: Institutional Setup**

**Account:** $50,000

**Configuration:**

```
// Reports (comprehensive + export)
EnableReport = true
AutoDailyReport = true
AutoWeeklyReport = true
AutoMonthlyReport = true
ReportTime = "17:00"  // End of London session
ExportReportCSV = true

// Dashboard (detailed + large)
EnableChartDashboard = true
DashboardPosition = TOP_RIGHT
DashboardSize = LARGE
```

**Result:** Professional reporting for compliance, detailed analytics in CSV format, large dashboard for presentation/monitoring rooms.

***

#### **Example 4: Multiple Accounts**

**Setup:** 3 accounts being monitored

**Account 1 (Main):**

```
EnableReport = true
AutoDailyReport = true
EnableChartDashboard = true
DashboardSize = MEDIUM
```

**Account 2 & 3 (Secondary):**

```
EnableReport = true
AutoDailyReport = false  // Reduce Telegram noise
EnableChartDashboard = true
DashboardSize = SMALL
```

**Result:** Detailed tracking on main account, basic monitoring on secondary accounts, reduced Telegram message volume.

***

### ⚠️ Common Mistakes

#### ❌ **Mistake 1: No Reporting Enabled**

**Bad:**

```
EnableReport = false
// No performance tracking, flying blind!
```

**Good:**

```
EnableReport = true
AutoDailyReport = true
```

**Why:** Can't improve what you don't measure.

***

#### ❌ **Mistake 2: Too Many Reports**

**Bad:**

```
AutoDailyReport = true
AutoWeeklyReport = true
AutoMonthlyReport = true
// On 5 different accounts = 15+ reports/day!
```

**Good:**

```
// Enable what you actually review
AutoDailyReport = true  // Main review
AutoWeeklyReport = false
AutoMonthlyReport = false
```

**Why:** Information overload leads to ignoring reports.

***

#### ❌ **Mistake 3: Wrong Report Time**

**Bad:**

```
ReportTime = "12:00"  // Middle of trading day!
```

**Good:**

```
ReportTime = "23:59"  // End of day
```

**Why:** Mid-day reports don't reflect full daily performance.

***

#### ❌ **Mistake 4: Dashboard Too Large**

**Bad:**

```
DashboardSize = LARGE
// On small laptop screen, covers half the chart!
```

**Good:**

```
DashboardSize = SMALL  // or MEDIUM
DashboardPosition = corner that doesn't overlap key levels
```

**Why:** Dashboard should enhance, not obstruct trading view.

***

#### ❌ **Mistake 5: Not Using CSV Export**

**Bad:**

```
ExportReportCSV = false
// Can't do detailed analysis later
```

**Good:**

```
ExportReportCSV = true
// Monthly Excel analysis to find edge
```

**Why:** CSV data enables deep analysis that Telegram reports can't provide.

***

### ✅ Best Practices

#### ✅ **1. Enable Daily Reports**

**Minimum Configuration:**

```
EnableReport = true
AutoDailyReport = true
ReportTime = "23:59"
```

**Benefits:** Daily accountability, pattern recognition, quick issue detection.

***

#### ✅ **2. Use Dashboard for Real-Time Monitoring**

```
EnableChartDashboard = true
DashboardPosition = position that doesn't overlap price
DashboardSize = MEDIUM
```

**Benefits:** Instant visibility, no need to check Telegram constantly.

***

#### ✅ **3. Export CSV for Deep Analysis**

```
ExportReportCSV = true
```

**Monthly Routine:**

* Import CSV to Excel/Sheets
* Create pivot tables
* Analyze by symbol, time, day
* Find patterns and optimize

***

#### ✅ **4. Review Reports Consistently**

**Daily:**

* Check daily report before bed
* Review win rate and profit
* Note any anomalies

**Weekly:**

* Compare week-over-week
* Identify best/worst days
* Adjust strategy if needed

**Monthly:**

* Deep dive into CSV data
* Calculate Sharpe ratio
* Strategic planning

***

#### ✅ **5. Configure Report Time Correctly**

**Match Your Trading Schedule:**

```
Day Trader: ReportTime = "17:00" (after main session)
Swing Trader: ReportTime = "23:59" (end of day)
Asian Session: ReportTime = "06:00" (after session)
```

***

#### ✅ **6. Dashboard Position Strategy**

**Single Monitor:**

```
DashboardPosition = TOP_RIGHT
DashboardSize = SMALL
// Minimal obstruction
```

**Multiple Monitors:**

```
DashboardPosition = TOP_LEFT
DashboardSize = LARGE
// Dedicated monitoring
```

***

### 🚀 Quick Start Guide

#### **Step 1: Enable Basic Reporting**

```
EnableReport = true
AutoDailyReport = true
ReportTime = "23:59"
```

#### **Step 2: Enable Dashboard**

```
EnableChartDashboard = true
DashboardPosition = TOP_LEFT
DashboardSize = MEDIUM
```

#### **Step 3: Test for One Week**

* Monitor daily reports
* Check dashboard accuracy
* Adjust position/size if needed

#### **Step 4: Add CSV Export**

```
ExportReportCSV = true
```

#### **Step 5: Enable Weekly/Monthly Reports**

```
AutoWeeklyReport = true   // After 2 weeks
AutoMonthlyReport = true  // After 1 month
```

#### **Step 6: Develop Review Routine**

* **Daily:** Quick check of daily report (2 min)
* **Weekly:** Review weekly report + adjust strategy (15 min)
* **Monthly:** Deep CSV analysis + optimization (1 hour)

***

### 📊 Report Analysis Tips

#### **Identify Your Edge**

**Look for:**

* Best performing symbols
* Best trading times/sessions
* Winning vs losing patterns
* Days of week performance

**Example Analysis:**

```
From Monthly Report:
- EURUSD: 65% win rate, best symbol
- London Session: 70% of profits
- Thursdays: Best day (avg +$85)
- Mondays: Worst day (avg -$15)

Action:
→ Increase EURUSD allocation
→ Focus on London session
→ Reduce Monday trading
→ Optimize Thursday strategy
```

***

#### **Track Consistency**

**Key Metrics:**

* Win rate stability (should be steady)
* Average win/loss ratio
* Drawdown trends
* Profit factor consistency

**Red Flags:**

* Win rate declining
* Average loss increasing
* Drawdown increasing
* Inconsistent profit/loss

***

#### **Risk Metrics to Monitor**

**From Reports:**

```
Risk/Reward Ratio: Should be > 1.5
Max Drawdown: Should be < 10%
Average Risk Per Trade: Should match settings
Profit Factor: Should be > 1.5
```

***

### 📞 FAQ

**Q: When does daily report generate?** A: At the time specified in `ReportTime` (broker server time).

**Q: Can I get reports for past dates?** A: No, but you can review CSV exports for historical data.

**Q: Dashboard slowing down MT4?** A: Set `DashboardSize = SMALL` or disable on secondary charts.

**Q: Where are CSV files saved?** A: `MetaTrader/MQL4/Files/RedFoxCopierPro_Report_YYYY-MM-DD.csv`

**Q: Can I customize report content?** A: Not directly in settings, but CSV export allows custom analysis in Excel.

**Q: Reports showing wrong timezone?** A: Reports use broker server time (check MT4 market watch).

**Q: Can I send reports to multiple Telegram accounts?** A: No, reports go to configured Telegram bot only. Forward manually if needed.

**Q: Dashboard not showing on chart?** A: Check `EnableChartDashboard = true` and EA is running on that chart.

***

### 📁 CSV Export Format

**File Structure:**

```csv
Date,Time,Symbol,Type,Lot,Entry,Exit,SL,TP,Profit,Pips,Duration,Result,Comment
2024-10-28,09:15:23,EURUSD,BUY,0.10,1.0850,1.0900,1.0800,1.0900,50.00,50,45m,WIN,TP1 Hit
2024-10-28,10:30:45,GBPUSD,SELL,0.15,1.2700,1.2650,1.2750,1.2650,75.00,50,1h20m,WIN,Full TP
2024-10-28,13:20:10,XAUUSD,BUY,0.05,2650.00,2640.00,2630.00,2680.00,-50.00,-10,25m,LOSS,SL Hit
```

**Excel Analysis Tips:**

* Create pivot tables by Symbol, Type, Result
* Chart profit by hour/day/week
* Calculate rolling win rate
* Track drawdown periods
* Identify correlation patterns

***

**Remember:** Professional traders review their performance religiously. Use these tools to continuously improve! 📊📈


# Account Protection

### 🛡️ Overview

RedFox Copier Pro includes sophisticated account protection features to automatically safeguard your capital and lock in profits. These critical risk management tools prevent catastrophic losses and enforce disciplined profit-taking.

**Key Features:**

* 🛑 **Daily Loss Limit** - Auto-stop trading after maximum daily loss
* 💰 **Profit Protection** - Lock in profits and stop trading at target levels (3 tiers)
* 📊 **Real-Time Monitoring** - Automatic tracking and enforcement
* 🚨 **Instant Alerts** - Telegram notifications when limits are reached

**Why This Matters:** Account protection is the difference between sustainable trading and account blow-ups. These features enforce discipline when emotions run high.

***

### 🛑 Daily Loss Limit

#### **1. EnableDailyLossLimit**

```
EnableDailyLossLimit = true | false
```

**Controls automatic daily loss protection.**

***

#### **false** (No Protection - NOT RECOMMENDED)

**Behavior:** EA continues trading regardless of daily loss.

**Risk:**

* ❌ One bad day can wipe out weeks of profit
* ❌ No downside protection
* ❌ Emotional trading continues
* ❌ Account blow-up risk

**When to use:**

* Testing only
* Manual management
* NOT for automated trading!

***

#### **true** (Loss Limit Active - HIGHLY RECOMMENDED)

**Behavior:** EA automatically stops trading when daily loss limit is reached.

**When to use:**

* **ALWAYS** (professional risk management)
* Protect from catastrophic days
* Emotional discipline enforced
* Preserve capital for recovery
* Prevent revenge trading

**Benefits:**

* ✅ Prevents blow-up days
* ✅ Enforces discipline automatically
* ✅ Preserves capital for recovery
* ✅ Allows consistent compounding
* ✅ Reduces stress and emotional decisions

**Professional Standard:** Every professional trader uses daily loss limits. No exceptions.

***

#### **2. DailyLossLimit**

```
DailyLossLimit = 200  // Dollar amount (absolute value)
```

**Defines maximum acceptable daily loss in account currency (USD, EUR, etc.).**

***

#### **Configuration by Account Size:**

**$1,000 Account:**

```
Conservative: DailyLossLimit = 10   // 1%
Moderate:     DailyLossLimit = 20   // 2%
Aggressive:   DailyLossLimit = 50   // 5%
```

**$5,000 Account:**

```
Conservative: DailyLossLimit = 50   // 1%
Moderate:     DailyLossLimit = 100  // 2%
Aggressive:   DailyLossLimit = 250  // 5%
```

**$10,000 Account:**

```
Conservative: DailyLossLimit = 100  // 1%
Moderate:     DailyLossLimit = 200  // 2%
Aggressive:   DailyLossLimit = 500  // 5%
```

**$50,000 Account:**

```
Conservative: DailyLossLimit = 500   // 1%
Moderate:     DailyLossLimit = 1000  // 2%
Aggressive:   DailyLossLimit = 2500  // 5%
```

***

#### **Professional Guidelines:**

**Recommended Daily Loss Limits:**

* **Conservative Traders:** 1% of account balance
* **Moderate Traders:** 2% of account balance
* **Aggressive Traders:** 3% of account balance (maximum!)

**Never Exceed:** 5% daily loss limit (extremely risky!)

**Formula:**

```
DailyLossLimit = Account Balance × Daily Loss %
Example: $10,000 × 2% = $200
```

***

#### **How It Works - Real Example:**

**Account Setup:**

```
Account Balance: $10,000
DailyLossLimit: 200  // 2%
EnableDailyLossLimit: true
DailyLossLimitAction: CLOSE_ALL
```

**Trade Timeline:**

```
📅 October 28, 2024 - Trading Day

Starting Balance: $10,000
Daily Loss Limit: -$200 (maximum allowed loss)

09:00 AM - Signal: EURUSD BUY
          Result: Closed at loss -$50
          Daily P/L: -$50 ✅ Continue

10:30 AM - Signal: GBPUSD SELL
          Result: Closed at loss -$80
          Daily P/L: -$130 ✅ Continue

12:00 PM - Signal: XAUUSD BUY
          Result: Closed at profit +$30
          Daily P/L: -$100 ✅ Continue

14:00 PM - Signal: USDJPY SELL
          Result: Closed at loss -$110
          Daily P/L: -$210 🛑 LIMIT REACHED!

⚠️ DAILY LOSS LIMIT TRIGGERED: -$210 > -$200
```

**EA Actions When Limit Reached:**

**1. Close Orders (depends on DailyLossLimitAction):**

```
✅ Immediately close all open positions
✅ Cancel all pending orders
✅ Stop processing new signals
```

**2. Send Telegram Alert:**

```
🛑 DAILY LOSS LIMIT REACHED!

Account: MT4-123456
Date: 2024-10-28
Time: 14:05:23

💰 LOSS SUMMARY
Daily Loss: -$210.00
Loss Limit: -$200.00
Exceeded By: -$10.00

📊 TODAY'S STATS
Total Trades: 4
Winning: 1 (25%)
Losing: 3 (75%)
Largest Loss: -$110

🛑 PROTECTION ACTIVATED
✅ All positions closed
✅ New signals blocked
✅ Trading stopped for today

⏰ RESUME TIME
Trading will automatically resume tomorrow at 00:00 (broker time)

🔧 ACTIONS RECOMMENDED
1. Review today's trades
2. Check market conditions
3. Evaluate strategy
4. Do NOT restart EA manually (let it reset tomorrow)
```

**3. Log Event:**

```
Files/RedFoxCopierPro_Protection_2024-10-28.log

[2024-10-28 14:05:23] DAILY LOSS LIMIT TRIGGERED
Account: 123456
Daily Loss: -$210.00
Loss Limit: -$200.00
Action: CLOSE_ALL
Orders Closed: 3 positions
Pending Cancelled: 0 orders
Status: TRADING STOPPED
```

**4. Update Dashboard:**

```
╔══════════════════════════════════════╗
║ 🛑 DAILY LOSS LIMIT REACHED         ║
╠══════════════════════════════════════╣
║ Loss: -$210.00 / -$200.00           ║
║ Status: STOPPED                      ║
║ Resume: Tomorrow 00:00               ║
╚══════════════════════════════════════╝
```

**Next Day (00:00 Broker Time):**

```
✅ EA automatically resets
✅ Daily loss counter resets to $0
✅ Resume processing signals
✅ Fresh start with full protection
```

***

#### **3. DailyLossLimitAction**

```
DailyLossLimitAction = CLOSE_ALL | CLOSE_LOSS | STOP_NEW | ALERT_ONLY
```

**Defines what EA does when daily loss limit is reached.**

***

#### **CLOSE\_ALL** (Recommended - Maximum Protection)

**Action:** Close ALL orders (winners + losers) and stop trading.

**Behavior:**

```
When limit reached:
1. Close all profitable positions
2. Close all losing positions
3. Cancel all pending orders
4. Stop processing new signals
5. Send alert
```

**Example:**

```
Open Positions When Limit Reached:
- EURUSD BUY: +$50 (profit)
- GBPUSD SELL: -$150 (loss)
- XAUUSD BUY: -$120 (loss)
Total Daily Loss: -$220

Action:
→ Close EURUSD (+$50)
→ Close GBPUSD (-$150)
→ Close XAUUSD (-$120)
→ Final Daily Loss: -$220
→ Stop all trading
```

**When to use:**

* Professional trading (ALWAYS)
* Maximum protection
* Clean account reset
* Prevent further exposure

**Why Recommended:**

* ✅ Complete protection
* ✅ No open exposure overnight
* ✅ Fresh start next day
* ✅ Professional approach

***

#### **CLOSE\_LOSS** (Aggressive - Higher Risk)

**Action:** Close ONLY losing orders, keep profitable orders, stop new trades.

**Behavior:**

```
When limit reached:
1. Close all losing positions
2. Keep all profitable positions
3. Cancel pending orders
4. Stop processing new signals
```

**Example:**

```
Open Positions:
- EURUSD BUY: +$50 (profit)
- GBPUSD SELL: -$150 (loss)
- XAUUSD BUY: -$120 (loss)
Total Daily Loss: -$220

Action:
→ Close GBPUSD (-$150)
→ Close XAUUSD (-$120)
→ Keep EURUSD (+$50) ⚠️ OPEN
→ Stop new trades
```

**Risks:**

* ⚠️ Profitable position could reverse to loss
* ⚠️ Overnight exposure continues
* ⚠️ Could exceed loss limit if winner reverses

**When to use:**

* Believe winners have strong momentum
* Want to protect winning positions
* Accept additional risk

**NOT Recommended for beginners!**

***

#### **STOP\_NEW** (Risky - NOT RECOMMENDED)

**Action:** Stop opening NEW trades only, keep ALL existing orders (winners + losers).

**Behavior:**

```
When limit reached:
1. Keep all open positions (no closes)
2. Stop processing new signals only
```

**Example:**

```
Open Positions:
- EURUSD BUY: +$50
- GBPUSD SELL: -$150
- XAUUSD BUY: -$120
Total Daily Loss: -$220

Action:
→ Keep all 3 positions OPEN ⚠️
→ Stop new signals only
→ Hope for recovery (risky!)
```

**Major Risks:**

* ❌ Losing positions could get worse
* ❌ Daily loss could increase significantly
* ❌ No actual protection provided
* ❌ Defeats purpose of loss limit

**When to use:**

* Manual trading/intervention
* Believe in recovery
* Testing only
* **NEVER for automated trading!**

***

#### **ALERT\_ONLY** (No Protection - NOT RECOMMENDED)

**Action:** Send alert but continue trading normally (no protection).

**Behavior:**

```
When limit reached:
1. Send Telegram message
2. Continue trading normally ❌
3. No orders closed
4. No new signals blocked
```

**Risks:**

* ❌ Loss limit completely ignored
* ❌ No protection whatsoever
* ❌ Can lose unlimited amount
* ❌ Pointless to set limit

**When to use:**

* Testing/development only
* Manual monitoring
* **NEVER for live automated trading!**

***

### 💰 Profit Protection (3-Tier System)

#### **4. EnableProfitProtection**

```
EnableProfitProtection = true | false
```

**Controls automatic profit target protection (lock in winning days).**

***

#### **false** (No Profit Protection)

**Behavior:** EA continues trading regardless of daily profit.

**Risk:**

* ⚠️ Can give back profits
* ⚠️ No profit locking mechanism
* ⚠️ Winning days can turn to losses

***

#### **true** (Profit Protection Active - RECOMMENDED)

**Behavior:** EA automatically locks in profit when daily targets are reached.

**Benefits:**

* ✅ Lock in winning days
* ✅ Prevent giving back profits
* ✅ Psychological discipline
* ✅ Consistent compounding
* ✅ Protect great days

**When to use:**

* Professional trading
* Want consistency over home runs
* Disciplined profit taking
* Preserve good days
* Build steady equity curve

***

#### **5. ProfitProtectionLevel1/2/3**

```
ProfitProtectionLevel1 = 200   // First profit target
ProfitProtectionLevel2 = 500   // Second profit target
ProfitProtectionLevel3 = 1000  // Third profit target
```

**Defines 3-tier progressive profit protection system.**

***

#### **3-Tier System Philosophy:**

**Level 1 (Early Warning):**

* Alert that you're having a good day
* Option to reduce risk or continue

**Level 2 (Solid Profit):**

* Lock in most profits
* Stop new trades or close profitable positions

**Level 3 (Exceptional Day):**

* Maximum daily target reached
* Stop trading completely
* Protect extraordinary gains

***

#### **Configuration by Account Size:**

**$1,000 Account:**

```
ProfitProtectionLevel1 = 20    // 2% (early win)
ProfitProtectionLevel2 = 50    // 5% (solid day)
ProfitProtectionLevel3 = 100   // 10% (exceptional)
```

**$5,000 Account:**

```
ProfitProtectionLevel1 = 100   // 2%
ProfitProtectionLevel2 = 250   // 5%
ProfitProtectionLevel3 = 500   // 10%
```

**$10,000 Account:**

```
ProfitProtectionLevel1 = 200   // 2%
ProfitProtectionLevel2 = 500   // 5%
ProfitProtectionLevel3 = 1000  // 10%
```

**$50,000 Account:**

```
ProfitProtectionLevel1 = 1000  // 2%
ProfitProtectionLevel2 = 2500  // 5%
ProfitProtectionLevel3 = 5000  // 10%
```

***

#### **Realistic Daily Profit Targets:**

**Conservative Strategy:**

* Level 1: 1% daily
* Level 2: 2% daily
* Level 3: 5% daily

**Moderate Strategy:**

* Level 1: 2% daily
* Level 2: 5% daily
* Level 3: 10% daily

**Aggressive Strategy:**

* Level 1: 3% daily
* Level 2: 7% daily
* Level 3: 15% daily

**Professional Guideline:** 2-5% daily profit is realistic and sustainable. 10%+ days are rare but possible.

***

#### **6. ProfitProtectionAction1/2/3**

```
ProfitProtectionAction1 = ALERT_ONLY | CLOSE_PROFIT | CLOSE_ALL | STOP_NEW
ProfitProtectionAction2 = ALERT_ONLY | CLOSE_PROFIT | CLOSE_ALL | STOP_NEW
ProfitProtectionAction3 = ALERT_ONLY | CLOSE_PROFIT | CLOSE_ALL | STOP_NEW
```

**Defines action for each profit tier.**

***

#### **ALERT\_ONLY** (Notification Only)

**Action:** Send Telegram alert, continue trading normally.

**Example:**

```
Daily Profit: +$200 (Level 1 reached)
Action: Send alert, keep trading

Telegram Message:
🎯 PROFIT TARGET LEVEL 1 REACHED!
Daily Profit: +$200
Target: $200
Keep trading normally.
```

**When to use:**

* Level 1 (early warning)
* Want to let good days develop
* Just want notification

***

#### **CLOSE\_PROFIT** (Lock Profits, Keep Losers)

**Action:** Close all profitable positions, stop new trades, keep losing positions.

**Example:**

```
Daily Profit: +$500 (Level 2 reached)

Open Positions:
- EURUSD: +$80 (profit)
- GBPUSD: +$120 (profit)
- XAUUSD: -$30 (loss)

Action:
→ Close EURUSD (+$80)
→ Close GBPUSD (+$120)
→ Keep XAUUSD (-$30) open (might recover)
→ Stop new signals
→ Net locked: +$470 minimum
```

**When to use:**

* Level 2 (lock most profit)
* Give losing trades chance to recover
* Protect majority of gains

***

#### **CLOSE\_ALL** (Maximum Protection)

**Action:** Close ALL positions (profit + loss), stop trading for the day.

**Example:**

```
Daily Profit: +$1000 (Level 3 reached)

Open Positions:
- EURUSD: +$150
- GBPUSD: +$80
- XAUUSD: -$20

Action:
→ Close all 3 positions
→ Final profit: +$1,210
→ Stop all trading for today
→ Preserve exceptional day
```

**When to use:**

* Level 3 (maximum target)
* Lock in exceptional days
* Prevent any profit givebacks
* Most professional approach

***

#### **STOP\_NEW** (Stop New Trades Only)

**Action:** Stop opening new trades, keep all existing positions.

**Example:**

```
Daily Profit: +$500

Open Positions:
- EURUSD: +$120
- GBPUSD: +$80

Action:
→ Keep both positions open
→ Let them run to TP
→ Stop new signals only
```

**When to use:**

* Believe open positions will increase profit
* Want maximum profit potential
* Accept risk of givebacks

***

### 📊 Complete 3-Tier Example

#### **Account Setup:**

```
Account Balance: $10,000
EnableProfitProtection: true

ProfitProtectionLevel1 = 200   // 2%
ProfitProtectionLevel2 = 500   // 5%
ProfitProtectionLevel3 = 1000  // 10%

ProfitProtectionAction1 = ALERT_ONLY
ProfitProtectionAction2 = CLOSE_PROFIT
ProfitProtectionAction3 = CLOSE_ALL
```

#### **Trading Day Timeline:**

**09:00 AM - Day Start**

```
Starting Balance: $10,000
Daily Profit: $0
Status: Normal trading
```

**10:30 AM - First Wins**

```
Trades: 3 wins, 1 loss
Daily Profit: +$180
Status: Normal trading continues
```

**12:00 PM - Level 1 Reached**

```
Daily Profit: +$205 (Level 1: $200)
Action: ALERT_ONLY

Telegram Alert:
🎯 PROFIT LEVEL 1 REACHED!
Daily Profit: +$205
Target: $200
Status: Trading continues
Keep up the great work!
```

**14:00 PM - Level 2 Reached**

```
Daily Profit: +$520 (Level 2: $500)
Action: CLOSE_PROFIT

Open Positions at this moment:
- EURUSD: +$80
- GBPUSD: +$45
- XAUUSD: -$15

EA Actions:
1. Close EURUSD: +$80
2. Close GBPUSD: +$45
3. Keep XAUUSD: -$15 (let it run)
4. Stop new signals

Telegram Alert:
💰 PROFIT LEVEL 2 REACHED!
Daily Profit: +$535
Target: $500
Action: Closed profitable orders
Locked Profit: +$520 minimum
Status: New trades stopped
Open: 1 position (-$15)
```

**15:30 PM - Level 3 Reached**

```
(XAUUSD recovered and hit TP for +$500!)

Daily Profit: +$1,020 (Level 3: $1,000)
Action: CLOSE_ALL

Open Positions:
- None (all closed)

EA Actions:
1. Close any remaining positions
2. Stop all trading
3. Lock exceptional day

Telegram Alert:
🏆 PROFIT LEVEL 3 REACHED!
🎉 EXCEPTIONAL DAY!

Daily Profit: +$1,020
Target: $1,000
Return: +10.2%

📊 TODAY'S STATS
Total Trades: 12
Win Rate: 75%
Largest Win: +$500

🛡️ PROTECTION ACTIVATED
✅ All positions closed
✅ Trading stopped for today
✅ Profit locked and protected

⏰ RESUME TOMORROW
Trading will resume at 00:00 (broker time)

🎊 CONGRATULATIONS!
Excellent trading day. Rest and repeat tomorrow!
```

**Next Day (00:00 Broker Time):**

```
✅ Profit counters reset
✅ Resume normal trading
✅ Fresh targets for new day
Starting Balance: $11,020 (includes yesterday's profit)
```

***

### 💼 Real-World Configuration Examples

#### **Example 1: Ultra-Conservative (Capital Preservation)**

**Account:** $10,000

**Configuration:**

```
// Loss Limit (very tight)
EnableDailyLossLimit = true
DailyLossLimit = 100  // 1%
DailyLossLimitAction = CLOSE_ALL

// Profit Protection (lock early)
EnableProfitProtection = true
ProfitProtectionLevel1 = 100   // 1%
ProfitProtectionLevel2 = 200   // 2%
ProfitProtectionLevel3 = 400   // 4%
ProfitProtectionAction1 = CLOSE_PROFIT
ProfitProtectionAction2 = CLOSE_ALL
ProfitProtectionAction3 = CLOSE_ALL
```

**Philosophy:** Lock profits early, stop losses fast. Slow steady growth.

***

#### **Example 2: Balanced Professional**

**Account:** $10,000

**Configuration:**

```
// Loss Limit (standard)
EnableDailyLossLimit = true
DailyLossLimit = 200  // 2%
DailyLossLimitAction = CLOSE_ALL

// Profit Protection (tiered)
EnableProfitProtection = true
ProfitProtectionLevel1 = 200   // 2%
ProfitProtectionLevel2 = 500   // 5%
ProfitProtectionLevel3 = 1000  // 10%
ProfitProtectionAction1 = ALERT_ONLY
ProfitProtectionAction2 = CLOSE_PROFIT
ProfitProtectionAction3 = CLOSE_ALL
```

**Philosophy:** Standard risk management, let good days develop, protect exceptional gains.

***

#### **Example 3: Aggressive Growth**

**Account:** $10,000

**Configuration:**

```
// Loss Limit (wider)
EnableDailyLossLimit = true
DailyLossLimit = 500  // 5%
DailyLossLimitAction = CLOSE_ALL

// Profit Protection (let it run)
EnableProfitProtection = true
ProfitProtectionLevel1 = 300   // 3%
ProfitProtectionLevel2 = 800   // 8%
ProfitProtectionLevel3 = 1500  // 15%
ProfitProtectionAction1 = ALERT_ONLY
ProfitProtectionAction2 = ALERT_ONLY
ProfitProtectionAction3 = CLOSE_PROFIT
```

**Philosophy:** Accept higher daily risk, pursue larger gains, protect only at extremes.

***

#### **Example 4: Scalper (Many Small Wins)**

**Account:** $10,000

**Configuration:**

```
// Loss Limit (moderate)
EnableDailyLossLimit = true
DailyLossLimit = 150  // 1.5%
DailyLossLimitAction = CLOSE_ALL

// Profit Protection (frequent locks)
EnableProfitProtection = true
ProfitProtectionLevel1 = 100   // 1%
ProfitProtectionLevel2 = 250   // 2.5%
ProfitProtectionLevel3 = 500   // 5%
ProfitProtectionAction1 = ALERT_ONLY
ProfitProtectionAction2 = CLOSE_PROFIT
ProfitProtectionAction3 = CLOSE_ALL
```

**Philosophy:** Small consistent gains, lock frequently, tight loss control.

***

### ⚠️ Common Mistakes

#### ❌ **Mistake 1: No Loss Limit**

**Bad:**

```
EnableDailyLossLimit = false
// Disaster waiting to happen!
```

**Good:**

```
EnableDailyLossLimit = true
DailyLossLimit = 2% of account
```

**Why:** One bad day can wipe out weeks of profit. ALWAYS use loss limits!

***

#### ❌ **Mistake 2: Loss Limit Too High**

**Bad:**

```
Account: $10,000
DailyLossLimit = 1000  // 10% - WAY TOO HIGH!
```

**Good:**

```
DailyLossLimit = 200  // 2% - Professional standard
```

**Why:** 10% daily loss is catastrophic. Professional traders use 1-3% max.

***

#### ❌ **Mistake 3: Using STOP\_NEW for Loss Limit**

**Bad:**

```
DailyLossLimitAction = STOP_NEW
// Losses can continue growing!
```

**Good:**

```
DailyLossLimitAction = CLOSE_ALL
// Complete protection
```

**Why:** STOP\_NEW doesn't actually protect you. Losses continue from open trades.

***

#### ❌ **Mistake 4: No Profit Protection**

**Bad:**

```
EnableProfitProtection = false
// Give back winning days
```

**Good:**

```
EnableProfitProtection = true
Set realistic daily targets
```

**Why:** Winning days can turn to losses without protection. Lock gains!

***

#### ❌ **Mistake 5: Unrealistic Profit Targets**

**Bad:**

```
Account: $5,000
ProfitProtectionLevel1 = 5000  // 100% daily - IMPOSSIBLE!
```

**Good:**

```
ProfitProtectionLevel1 = 100   // 2%
ProfitProtectionLevel2 = 250   // 5%
ProfitProtectionLevel3 = 500   // 10%
```

**Why:** 100% daily gains don't happen. Set realistic achievable targets.

***

#### ❌ **Mistake 6: Same Action for All Levels**

**Bad:**

```
ProfitProtectionAction1 = CLOSE_ALL
ProfitProtectionAction2 = CLOSE_ALL
ProfitProtectionAction3 = CLOSE_ALL
// Stop too early!
```

**Good:**

```
ProfitProtectionAction1 = ALERT_ONLY
ProfitProtectionAction2 = CLOSE_PROFIT
ProfitProtectionAction3 = CLOSE_ALL
// Progressive tightening
```

**Why:** Use tiers properly - alert early, lock at level 2, stop at level 3.

***

#### ❌ **Mistake 7: Manually Restarting EA After Protection**

**Bad:**

```
Loss limit hit at 2 PM
Manually restart EA at 3 PM
"I can make it back!"
// Recipe for disaster
```

**Good:**

```
Loss limit hit at 2 PM
Let EA remain stopped
Review trades
Wait for automatic reset tomorrow
```

**Why:** Revenge trading after loss limit is the #1 way to blow accounts. Trust the system!

***

### ✅ Best Practices

#### ✅ **1. ALWAYS Enable Daily Loss Limit**

**Minimum Configuration:**

```
EnableDailyLossLimit = true
DailyLossLimit = 1-3% of account
DailyLossLimitAction = CLOSE_ALL
```

**Why:** Non-negotiable. Professional traders NEVER trade without loss limits.

***

#### ✅ **2. Set Conservative Loss Limits**

**Recommended:**

```
Conservative: 1% daily
Moderate: 2% daily
Maximum: 3% daily (absolute max!)
```

**Never Exceed:** 5% daily loss limit!

***

#### ✅ **3. Use 3-Tier Profit Protection**

**Progressive Strategy:**

```
Level 1: Alert (know you're winning)
Level 2: Lock profits (CLOSE_PROFIT)
Level 3: Stop trading (CLOSE_ALL)
```

***

#### ✅ **4. Never Manually Override Protection**

**When limit is hit:**

* ❌ Don't restart EA
* ❌ Don't disable protection
* ❌ Don't try to "make it back"
* ✅ Review what went wrong
* ✅ Learn from the day
* ✅ Wait for automatic reset

***

#### ✅ **5. Review Protection Events**

**After any protection trigger:**

* What caused the limit to hit?
* Was it bad luck or bad strategy?
* Need to adjust settings?
* What can be improved?

***

#### ✅ **6. Adjust Limits as Account Grows**

**Example:**

```
Starting: $10,000 → DailyLossLimit = 200 (2%)
After 1 year: $15,000 → DailyLossLimit = 300 (2%)
After 2 years: $25,000 → DailyLossLimit = 500 (2%)
```

**Keep percentage constant, update dollar amounts.**

***

### 🚀 Quick Start Guide

#### **Step 1: Enable Basic Protection**

```
EnableDailyLossLimit = true
DailyLossLimit = 2% of your account
DailyLossLimitAction = CLOSE_ALL
```

#### **Step 2: Enable Profit Protection**

```
EnableProfitProtection = true
ProfitProtectionLevel1 = 2% of account
ProfitProtectionLevel2 = 5% of account
ProfitProtectionLevel3 = 10% of account
```

#### **Step 3: Set Actions**

```
ProfitProtectionAction1 = ALERT_ONLY
ProfitProtectionAction2 = CLOSE_PROFIT
ProfitProtectionAction3 = CLOSE_ALL
```

#### **Step 4: Test in Demo First**

* Run for 2 weeks
* Verify limits trigger correctly
* Check Telegram alerts work
* Observe behavior

#### **Step 5: Move to Live**

* Start with conservative limits
* Gradually adjust based on results
* Never disable protection!

***

### 📞 FAQ

**Q: When does daily loss/profit counter reset?** A: At 00:00 broker server time (midnight).

**Q: Can I manually reset counters during the day?** A: Yes by restarting EA, but NOT RECOMMENDED. Let it reset naturally.

**Q: What if I hit loss limit in first hour?** A: EA stops for the day. Review trades, learn, try again tomorrow.

**Q: Can I trade manually after EA protection stops me?** A: Technically yes, but defeats the purpose. Don't do it!

**Q: Loss limit includes swap/commission?** A: Yes, calculated on net P/L including all costs.

**Q: What if profit protection triggers but I have losing trades open?** A: Depends on Action setting. CLOSE\_PROFIT keeps losers, CLOSE\_ALL closes everything.

**Q: Can I have different limits on different days?** A: Not automatically. Use same limits consistently.

**Q: Should limits be tighter on Fridays?** A: Optional. Some traders use 50% of normal limits before weekends.

***

### 🎯 Protection Philosophy

#### **Why Protection Matters:**

**Without Protection:**

```
Week 1: +$500
Week 2: +$600
Week 3: +$450
Week 4: -$2,500 ← One bad day wipes out everything!
Net: -$950
```

**With Protection (2% daily loss limit):**

```
Week 1: +$500
Week 2: +$600
Week 3: +$450
Week 4: -$200 ← Stopped early!
Net: +$1,350
```

**The Difference:** Protection turns winning month into $1,350 profit instead of -$950 loss!

***

#### **Professional Mindset:**

**Remember:**

* You can't win every day
* One bad day is okay
* Protecting capital > making profits
* Consistency beats home runs
* Live to trade another day

**The #1 Rule:** "Don't lose more than you can afford to lose in a single day."

***

**Remember:** Account protection is what separates professional traders from gamblers. Use these tools religiously! 🛡️💰


# Telegram Commands Reference

RedFox Copier Pro provides complete remote control via Telegram using RFC commands

## Telegram Commands Reference (RFC)# Telegram Commands (RFC)# Telegram Commands Reference# Telegram Commands Reference (RFC Commands)# Telegram Commands Reference (RFC Commands)# Telegram Commands Reference (RFC Commands)# Telegram Commands Reference Guide (RFC Commands)# Telegram Commands Reference Guide (RFC Commands)

RedFox Copier Pro provides complete remote control via Telegram using **RFC commands** (RedFox Commands). All commands must start with the `RFC` prefix and are case-insensitive.

\*\*Command Execution Types:\*\*RedFox Copier Pro can be fully controlled via Telegram using RFC (RedFox Commands). All commands must start with the `RFC` prefix and are case-insensitive.## Introduction## Overview

* **Reply Required** – Send as a reply to the original signal message (affects only orders from that signal)
* **Non-Reply** – Send directly in chat (affects all matching orders across the account)

\---- Reply Required = You must reply to the original signal messageRedFox Copier Pro provides complete remote control via Telegram using **RFC commands** (RedFox Commands). All commands must start with the `RFC` prefix (case-insensitive) and are executed instantly.RedFox Copier Pro can be fully controlled via Telegram using **RFC commands** (RedFox Commands). All commands start with the `RFC` prefix and are case-insensitive.## Overview

### Status & Control- Non-Reply = Send directly in chat (affects matching orders across account)

#### RFC STATUS### Command Types**Command Types:**

Get current bot operational status (running or stopped).

***

**Syntax:**

````-

RFC STATUS

```## Status & Control



---- **Reply Commands** - Must reply to the original signal message. Acts only on orders from that specific signal.



### RFC START### RFC STATUS

Enable signal detection and order execution. Bot will start processing new incoming signals.

Get current bot status (RUNNING or STOPPED).- **Non-Reply Commands**: Execute directly without replying (acts on all matching orders)RedFox Copier Pro can be fully controlled via Telegram using **RFC commands** (RedFox Commands). All commands start with the `RFC` prefix and are case-insensitive.## Overview

**Syntax:**

````

RFC START

````syntax:---



---```



### RFC STOPRFC STATUS---

Disable signal detection. Existing orders remain active and unaffected.

````

**Syntax:**

````##

RFC STOP

```### RFC START



---Enable signal detection and order execution.## 📊 Status & Information Commands**Command Types:**



### RFC LISTORDER

List all open orders with complete details (symbol, type, lot size, entry price, current price, SL, TP, profit, magic number, comment).

Syntax:### RFC STATUS

**Syntax:**

````

RFC LISTORDER

````rfc



---```



### RFC ACCOUNTGet current bot operational status.

Display full EA configuration in 2 messages (lot sizes, risk settings, SL/TP modes, filters, trailing stop settings, etc.).

### RFC STOP

**Syntax:**

```Disable signal detection. Existing orders stay active.Check if bot is currently running or stopped.- **Reply Commands**: Must reply to the original signal message to executeRedFox Copier Pro uses **RFC commands** (RedFox Commands) for remote control via Telegram. All commands start with the `RFC` prefix and are case-insensitive.## 📋 Overview## 📋 Overview

RFC ACCOUNT

````

\---Syntax:**Syntax:**

### Direction Filter\`\`\`

#### RFC ALLOW ALLRFC STOP\`\`\`**Usage:**

Enable both BUY and SELL order execution. Bot will process signals in both directions.

````

**Syntax:**

```RFC STATUS

RFC ALLOW ALL

```### RFC LISTORDER



---List all open orders with details (symbol, type, lot, entry, price now, SL, TP, profit, magic, comment).```



### RFC ALLOW BUY

Enable only BUY orders. All SELL signals will be blocked.

Syntax:**Response:** `BOT IS RUNNING` or `BOT IS STOPPED`RFC STATUS---

**Syntax:**

````

RFC ALLOW BUY

`RFC LISTORDER---`

\---\`\`\`

#### RFC ALLOW SELL### RFC START**Response:** Bot running status (RUNNING or STOPPED)

Enable only SELL orders. All BUY signals will be blocked.

#### RFC ACCOUNT

**Syntax:**

```show

RFC ALLOW SELL

```

\---Syntax:**Syntax:**---

### Update Order (Reply Required)\`\`\`

{% hint style="warning" %}
RFC ACCOUNT\`\`\`

These commands must be sent as a **reply to the original signal message**.

{% endhint %}\`\`\`

#### RFC UPDATE SL TO \[PRICE]RFC START### RFC START

Move stop loss to a specific price for orders from the replied signal.

#### RFC ALLOW ALL | RFC ALLOW BUY | RFC ALLOW SELL

**Syntax:**

`Control direction filter for new signals.`

RFC UPDATE SL TO 1.0870

RFC UPDATE SL TO 2680

```

Syntax:### RFC STATUS- **Non-Reply Commands**: Execute directly without replying to a message

**Validation:** BUY orders require SL below current price; SELL orders require SL above current price.

```

***

RFC ALLOW ALL**Response:** `You have start BOT.`

#### RFC SL ENTRY

Move stop loss to entry price (breakeven) for orders from the replied signal. Makes the trade risk-free.RFC ALLOW BUY

\*\*Syntax:\*\*RFC ALLOW SELLEnable signal detection and trading. Bot will start processing new signals.

````

RFC SL ENTRY```

````

***

***

***

#### RFC UPDATE TP\[1-5] TO \[PRICE]

Move take profit to a specific price for orders from the replied signal. Supports all TP levels or specific level (1-5).**Usage:**

**Syntax:**## Update Order (Reply Required)

````

RFC UPDATE TP TO 1.0920### RFC STOP

RFC UPDATE TP1 TO 1.0900

RFC UPDATE TP2 TO 1.0950### RFC UPDATE SL TO [PRICE]

RFC UPDATE TP3 TO 1.1000

RFC UPDATE TP4 TO 1.1050Move SL to a specific price for orders from the replied signal.```Check if bot is running or stopped.- **Reply Commands**: Must reply to the original signal messageRedFox Copier Pro sử dụng **RFC commands** (RedFox Commands) để điều khiển EA qua Telegram. Bạn có thể kiểm tra trạng thái, đóng lệnh, sửa SL/TP, và quản lý trading từ bất kỳ đâu.RedFox Copier Pro can be fully controlled via Telegram using **RFC commands** (RedFox Commands). You can check status, close orders, modify SL/TP, and manage your trading remotely from anywhere in the world using your phone or computer.

RFC UPDATE TP5 TO 1.1100

````

\---Syntax:Disable signal detection. Existing orders remain active.

### Close Order (Reply Required)\`\`\`

{% hint style="warning" %}RFC UPDATE SL TO 1.0870RFC START

These commands must be sent as a **reply to the original signal message**.

{% endhint %}\`\`\`

#### RFC CANCEL**Syntax:**

Cancel all pending orders linked to the replied signal.

#### RFC SL ENTRY

**Syntax:**

`Move SL to entry (breakeven) for orders from the replied signal.`

RFC CANCEL

````



---Syntax:RFC STOP



### RFC CLOSE```

Close all orders linked to the replied signal.

RFC SL ENTRY`**Response:** "You have start BOT."`

**Syntax:**

````

RFC CLOSE

\`\`\`**Response:** `You have stopped BOT.`---RFC STATUS

\---### RFC UPDATE TP\[1-5] TO \[PRICE]

#### RFC CLOSE HALFMove TP (all or TP level 1-5) to a specific price for orders from the replied signal.---### RFC STOP\`\`\`---

Close 50% of each order linked to the replied signal.

**Syntax:**

```syntax:###

RFC CLOSE HALF

```

\---RFC UPDATE TP TO 1.0920Display all open orders with complete details (symbol, type, lot, entry, current price, SL, TP, profit, magic number, comment).**Usage:**### RFC LISTORDER

#### RFC CLOSE x.xxRFC UPDATE TP1 TO 1.0900

Close a specific lot size from orders linked to the replied signal.

RFC UPDATE TP2 TO 1.0950**Syntax:**\`\`\`

**Syntax:**

```...

RFC CLOSE 0.10

```

***

#### RFC CLOSE ENTRY \[1-2]---RFC LISTORDERRFC STOP

Close orders by entry index from the replied signal (entry 1 or entry 2).

**Syntax:**

`## Close Order (Reply Required)`

RFC CLOSE ENTRY 1

RFC CLOSE ENTRY 2

````

### RFC CANCEL```

---

Cancel all pending orders linked to the replied signal.

### RFC CLOSE x% (x: 1-100)

Close a percentage of lot size from orders linked to the replied signal.---



**Syntax:**Syntax:

````

RFC CLOSE 25%\`\`\`List all open orders with details (lot, entry, SL, TP, profit).## 📊 Status & Information**Đặc điểm:\*\***&#x4B;ey Benefits:\*\*

RFC CLOSE 50%

RFC CLOSE 75%RFC CANCEL

RFC CLOSE 100%

````````````###



**Valid Range:** 1–100%



---### RFC CLOSE**Response:** "You have stopped BOT."



## Close Order (Non-Reply)Close all orders linked to the replied signal.



### RFC CLOSE ALLDisplay complete EA configuration in 2 messages (lot sizes, risk settings, SL/TP modes, filters, trailing stop, etc.).

Close all open orders immediately (all symbols, both BUY and SELL).

Syntax:

<div data-gb-custom-block data-tag="hint" data-style='danger'>

**Warning:** This closes everything without confirmation. Use with caution!```---

{% endhint %}

RFC CLOSE

**Syntax:**

``````**Syntax:**

RFC CLOSE ALL

```



---### RFC CLOSE HALF```



### RFC CLOSE ALL BUYClose 50% of each order linked to the replied signal.

Close all BUY orders across all symbols.

RFC ACCOUNT

**Syntax:**

```Syntax:

RFC CLOSE ALL BUY

```````````### RFC LISTORDER



---RFC CLOSE HALF



### RFC CLOSE ALL SELL```

Close all SELL orders across all symbols.



**Syntax:**

```### RFC CLOSE x.xx---RFC LISTORDER

RFC CLOSE ALL SELL

```Close a specific lot size from orders linked to the replied signal.



---



### RFC CLOSE x%[SYMBOL]Syntax:

Close a percentage of the position on a specific symbol.

```## Direction Filter CommandsList all open orders with complete details (symbol, type, lot size, entry, current price, SL, TP, profit, magic number, comment).

**Syntax:**

```RFC CLOSE 0.10

RFC CLOSE 50% EURUSD

RFC CLOSE 30% XAUUSD```

```



**Valid Range:** 1–100%

### RFC CLOSE ENTRY [1-2]### RFC ALLOW ALL```### RFC STATUS- 📱 **Remote Control** - Quản lý EA từ mọi nơi- 📱 **Remote Control** - Manage EA from anywhere

---

Close orders by entry index from the replied signal (1 or 2).

### RFC CLOSE [SYMBOL]

Close all orders (both BUY and SELL) on a specific symbol.



**Syntax:**Syntax:

```

RFC CLOSE EURUSD```Enable both BUY and SELL order execution.**Usage:**

RFC CLOSE XAUUSD

RFC CLOSE GBPUSDRFC CLOSE ENTRY 1

```

RFC CLOSE ENTRY 2

---

```

### RFC CLOSE BUY [SYMBOL]

Close all BUY orders on a specific symbol.**Syntax:**````



**Syntax:**### RFC CLOSE x% (x: 1-100)

```

RFC CLOSE BUY EURUSDClose a percentage of lot size from orders linked to the replied signal.`````

RFC CLOSE BUY XAUUSD

```



---Syntax:RFC ALLOW ALLRFC LISTORDER



### RFC CLOSE SELL [SYMBOL]```

Close all SELL orders on a specific symbol.

RFC CLOSE 25%`````

**Syntax:**

````````````

RFC CLOSE SELL GBPUSD

RFC CLOSE SELL USDJPY\`\`\`\`### RFC ACCOUNTCheck if bot is running or stopped.

```

---

---

**Response:** `BOT is allow all order BUY SELL.`

### RFC SL ENTRY [SYMBOL]

Move stop loss to entry price (breakeven) for all orders on a specific symbol.## Close Order (Non-Reply)



**Syntax:**

```

RFC SL ENTRY EURUSD### RFC CLOSE ALL

RFC SL ENTRY XAUUSD

```close



---



### RFC SL [SYMBOL] TO [NEW PRICE]Syntax:**Response:** Detailed list of all open positions and pending orders with total profit.

Move stop loss to a specific price for all orders on a specific symbol.

```

**Syntax:**

````rfc

RFC SL EURUSD TO 1.0870

RFC SL XAUUSD TO 2680```

````

**Validation:** BUY orders require SL below current price; SELL orders require SL above current price.

#### RFC CLOSE ALL BUY

***

Close all BUY orders (all symbols).Enable only BUY orders. SELL signals will be blocked.

### Cancel Pending (Non-Reply)

#### RFC CANCEL ALL

Cancel all pending orders (Buy Limit, Buy Stop, Sell Limit, Sell Stop) across all symbols.Syntax:---Display full EA configuration and account information (2 messages with all settings).\`\`\`- ⚡ **Thực thi ngay** - Lệnh được xử lý tức thì- ⚡ **Instant Execution** - Commands execute immediately

**Syntax:**\`\`\`

```

RFC CANCEL ALLRFC CLOSE ALL BUY**Syntax:**

```

```

---

```

#### RFC CANCEL ALL BUY

Cancel all BUY pending orders (Buy Limit and Buy Stop) across all symbols.### RFC CLOSE ALL SELL

\*\*Syntax:\*\*Close all SELL orders (all symbols).RFC ALLOW BUY

```

RFC CANCEL ALL BUY

```

Syntax:\`\`\`\`\`### RFC ACCOUNT

***

````

### RFC CANCEL ALL SELL

Cancel all SELL pending orders (Sell Limit and Sell Stop) across all symbols.RFC CLOSE ALL SELL



**Syntax:**```

````

RFC CANCEL ALL SELL**Response:** `BOT is allow only order BUY.`

````

### RFC CLOSE x%[SYMBOL]

---

Close a percentage of the position size for a symbol.

### RFC CANCEL BUY [SYMBOL]

Cancel all BUY pending orders on a specific symbol.



**Syntax:**Syntax:---Display full EA configuration and account information in 2 messages (shows all settings including lot sizes, risk management, filters, trailing stop, etc.).```RFC STATUS

````

RFC CANCEL BUY EURUSD\`\`\`

```

RFC CLOSE 50% EURUSD

---

```

#### RFC CANCEL SELL \[SYMBOL]

Cancel all SELL pending orders on a specific symbol.### RFC ALLOW SELL

**Syntax:**### RFC CLOSE \[SYMBOL]

```

RFC CANCEL SELL GBPUSDClose all orders on a specific symbol (both directions).

```

***

Syntax:Enable only SELL orders. BUY signals will be blocked.\*\*Usage:\*\*RFC ACCOUNT

### Market Information

````

### RFC MARKET [SYMBOL]

Get real-time market data (Ask, Bid, Spread) for a specific symbol.RFC CLOSE EURUSD



**Syntax:**```

````

RFC MARKET EURUSD**Syntax:**\`\`\`\`

RFC MARKET XAUUSD

RFC MARKET GBPUSD### RFC CLOSE BUY \[SYMBOL]

```````

Close all BUY orders on a specific symbol.`````

---



## Critical Rules

Syntax:RFC ALLOW SELLRFC ACCOUNT``````- 🔒 **Bảo mật** - Chỉ Telegram ID của bạn có quyền- 🔒 **Secure** - Only your Telegram ID can control

{% hint style="info" %}

**Essential Information**```

</div>

RFC CLOSE BUY EURUSD```

1. **RFC Prefix Required** – All commands must start with `RFC` (case-insensitive)

2. **Exact Symbol Names** – Use broker symbol names exactly as they appear in MT4 Market Watch```

3. **Reply vs Non-Reply** – Reply commands affect only the replied signal's orders; non-reply commands affect all matching orders globally

4. **SL Validation** – BUY orders: SL must be below current price; SELL orders: SL must be above current price```

5. **Immediate Execution** – All commands execute instantly without confirmation

6. **No Undo** – Commands cannot be reversed once executed### RFC CLOSE SELL [SYMBOL]

7. **EA Must Run** – EA and MT4 must be active and connected for commands to process

8. **Authorization** – Only your configured Telegram ID can control the EAClose all SELL orders on a specific symbol.**Response:** `BOT is allow only order SELL.`



---



## Quick Reference TableSyntax:---



| Command | Type | Description |```

|---------|------|-------------|

| RFC STATUS | Non-Reply | Check bot status |RFC CLOSE SELL EURUSD**Response:** Complete configuration details in 2 separate messages.

| RFC START | Non-Reply | Enable trading |

| RFC STOP | Non-Reply | Disable trading |```

| RFC LISTORDER | Non-Reply | List all orders |

| RFC ACCOUNT | Non-Reply | Show configuration |## Update Order Commands (Reply Required)

| RFC ALLOW ALL | Non-Reply | Allow BUY & SELL |

| RFC ALLOW BUY | Non-Reply | Allow only BUY |### RFC SL ENTRY [SYMBOL]

| RFC ALLOW SELL | Non-Reply | Allow only SELL |

| RFC UPDATE SL TO [PRICE] | Reply | Move SL to price |Move SL to entry (breakeven) for all orders on a specific symbol.---

| RFC SL ENTRY | Reply | Move SL to entry |

| RFC UPDATE TP[1-5] TO [PRICE] | Reply | Move TP to price |

| RFC CANCEL | Reply | Cancel pending |

| RFC CLOSE | Reply | Close all |Syntax:{% hint style="warning" %}

| RFC CLOSE HALF | Reply | Close 50% |

| RFC CLOSE x.xx | Reply | Close lot size |```

| RFC CLOSE ENTRY [1-2] | Reply | Close entry |

| RFC CLOSE x% | Reply | Close percentage |RFC SL ENTRY EURUSDThese commands require replying to the original signal message.---

| RFC CLOSE ALL | Non-Reply | Close all orders |

| RFC CLOSE ALL BUY | Non-Reply | Close all BUY |```

| RFC CLOSE ALL SELL | Non-Reply | Close all SELL |

| RFC CLOSE x% [SYMBOL] | Non-Reply | Close % on symbol |{% endhint %}

| RFC CLOSE [SYMBOL] | Non-Reply | Close symbol |

| RFC CLOSE BUY [SYMBOL] | Non-Reply | Close BUY on symbol |### RFC SL [SYMBOL] TO [NEW PRICE]

| RFC CLOSE SELL [SYMBOL] | Non-Reply | Close SELL on symbol |

| RFC SL ENTRY [SYMBOL] | Non-Reply | SL to entry on symbol |Move SL to a specific price for all orders on a specific symbol.### RFC UPDATE SL TO [PRICE]

| RFC SL [SYMBOL] TO [PRICE] | Non-Reply | Move SL on symbol |

| RFC CANCEL ALL | Non-Reply | Cancel all pending |

| RFC CANCEL ALL BUY | Non-Reply | Cancel BUY pending |

| RFC CANCEL ALL SELL | Non-Reply | Cancel SELL pending |Syntax:### RFC ALLOW ALL

| RFC CANCEL BUY [SYMBOL] | Non-Reply | Cancel BUY on symbol |

| RFC CANCEL SELL [SYMBOL] | Non-Reply | Cancel SELL on symbol |```

| RFC MARKET [SYMBOL] | Non-Reply | Real-time market data |

RFC SL EURUSD TO 1.0870Move stop loss to specified price for orders from the replied signal.

---

```````

### Common Examples

### ❌ Close Orders (Non-Reply)### RFC LISTORDER- 💬 **Phản hồi ngay** - Xác nhận mọi lệnh- 💬 **Feedback** - Instant confirmation messages

#### Protect Profit After Strong Move

````---

1. RFC LISTORDER                (Check current orders)

2. Reply with: RFC SL ENTRY     (Move all to breakeven)**Syntax:**

3. RFC CLOSE 50% EURUSD         (Close half of position)

```## Cancel Pending (Non-Reply)



### Emergency Exit```Allow both BUY and SELL orders. Bot will process signals in both directions.

````

RFC CLOSE ALL (Close everything immediately)### RFC CANCEL ALL

```

Cancel all pending orders (all symbols).RFC UPDATE SL TO 1.0870

### Manage Direction Risk

```

RFC ALLOW BUY (Block SELL signals, keep BUY only)

... (trade for a while)Syntax:RFC UPDATE SL TO 2680

RFC ALLOW ALL (Resume normal trading)

`````````



### Cancel Problematic OrdersRFC CANCEL ALL```

```

RFC LISTORDER                   (See what's open)```

RFC CANCEL ALL SELL             (Remove all pending SELL orders)

```**Usage:**



### Specific Symbol Control### RFC CANCEL ALL BUY

```

RFC SL ENTRY EURUSD             (Move EURUSD SL to breakeven)Cancel all BUY pending orders (Buy Limit/Buy Stop) across all symbols.**Validation:**

RFC CLOSE 30% EURUSD            (Close 30% of EURUSD)

RFC CLOSE SELL GBPUSD           (Close only SELL on GBPUSD)

```

Syntax:- BUY orders: SL must be below current price```### RFC CLOSE ALLList all open orders with details (lot, entry, SL, TP, profit).

---

```

## Troubleshooting

RFC CANCEL ALL BUY- SELL orders: SL must be above current price

**Command not working?**

- Ensure you're using the exact RFC prefix```

- Verify you replied to the signal message (if reply-required)

- Check the EA status with `RFC STATUS`RFC ALLOW ALL

- Confirm symbol names match MT4 Market Watch exactly

### RFC CANCEL ALL SELL

**Order didn't close?**

- Check `RFC LISTORDER` to verify the order existsCancel all SELL pending orders (Sell Limit/Sell Stop) across all symbols.---

- Verify SL/TP values are within valid range

- Ensure EA and MT4 are both running



**Wrong symbol affected?**Syntax:````````

- Non-reply commands affect all symbols; use symbol-specific version if needed

- Always double-check before executing `RFC CLOSE ALL````



---RFC CANCEL ALL SELL### RFC SL ENTRY



{% hint style="success" %}```

You now have complete remote control of your RedFox Copier Pro EA via Telegram!

</div>

**Response:** "BOT is allow all order BUY SELL."Close all open orders immediately.```- 📝 **Reply-Based** - Một số lệnh cần reply tin nhắn signal- 📊 **Real-time Info** - Account status on demand


### RFC CANCEL BUY [SYMBOL]

Cancel all BUY pending orders on a specific symbol.Move stop loss to entry price (breakeven) for orders from the replied signal.



Syntax:---

```

RFC CANCEL BUY EURUSD**Syntax:**

```

```### RFC ALLOW BUY```RFC LISTORDER

### RFC CANCEL SELL [SYMBOL]

Cancel all SELL pending orders on a specific symbol.RFC SL ENTRY



Syntax:```Allow only BUY orders. All SELL signals will be blocked.RFC CLOSE ALL

```

RFC CANCEL SELL EURUSD

```

---**Usage:**``````- 🎯 **Prefix RFC** - Tất cả lệnh bắt đầu bằng `RFC`- 📝 **Reply-Based** - Some commands work by replying to signal messages

---



## Commands Support

### RFC UPDATE TP TO [PRICE]```

### RFC MARKET [SYMBOL]

Show real-time Ask, Bid, and Spread for a symbol.



Syntax:Move take profit to specified price for all orders from the replied signal.RFC ALLOW BUY

```

RFC MARKET EURUSD

```

**Syntax:**```

---

```

## Notes

- Use exact broker symbol names (as in MT4 Market Watch)RFC UPDATE TP TO 1.0920### RFC CLOSE ALL BUY / RFC CLOSE ALL SELL

- Reply vs Non-Reply determines the scope (signal-only vs global)

- SL validation rules apply (BUY: SL below entry; SELL: SL above entry)```

- Commands execute immediately; there is no undo

- EA and MT4 must be running for commands to be processed**Response:** "BOT is allow only order BUY."


---

---

### RFC UPDATE TP1 TO [PRICE]

Close all BUY or all SELL orders across all symbols.### RFC ACCOUNT

Move TP level 1 to specified price.

### RFC ALLOW SELL

**Syntax:**

```Allow only SELL orders. All BUY signals will be blocked.

RFC UPDATE TP1 TO 1.0900

```````Display full EA configuration and account information (2 messages with all settings).



---**Usage:**



### RFC UPDATE TP2 TO [PRICE]```RFC CLOSE ALL BUY



Move TP level 2 to specified price.RFC ALLOW SELL



**Syntax:**```RFC CLOSE ALL SELL```**Phân loại lệnh:****Command Categories:**

```

RFC UPDATE TP2 TO 1.0950

```

**Response:** "BOT is allow only order SELL."```

---



### RFC UPDATE TP3 TO [PRICE]

---RFC ACCOUNT

Move TP level 3 to specified price.



**Syntax:**

```## 🔧 Update Order Commands (Reply Required)### RFC CLOSE [SYMBOL]

RFC UPDATE TP3 TO 1.1000

```



---**Note:** These commands require replying to the original signal message.```1. **Trạng thái & Thông tin** - RFC STATUS, RFC LISTORDER, RFC ACCOUNT1. **Status & Information** - Check account and orders (RFC STATUS, RFC LISTORDER, RFC ACCOUNT)



### RFC UPDATE TP4 TO [PRICE]



Move TP level 4 to specified price.### RFC UPDATE SL TO [PRICE]Close all orders (both directions) on specific symbol.



**Syntax:**

```

RFC UPDATE TP4 TO 1.1050Move stop loss to a specific price level for orders from the replied signal.

```



---

**Usage:**```

### RFC UPDATE TP5 TO [PRICE]

`````````

Move TP level 5 to specified price.

RFC UPDATE SL TO 1.0870RFC CLOSE EURUSD---2. **Đóng lệnh** - RFC CLOSE variants2. **Close Orders** - Close all, by symbol, direction, or profit/loss (RFC CLOSE commands)

**Syntax:**

````````rfc

RFC UPDATE TP5 TO 1.1100

```````RFC CLOSE XAUUSD



---



## Close Order Commands (Reply Required)**Validation:** ```

<div data-gb-custom-block data-tag="hint" data-style='warning'>

- BUY orders: New SL must be below current price

These commands require replying to the original signal message.

</div>- SELL orders: New SL must be above current price



### RFC CANCEL



Cancel all pending orders from the replied signal.---### RFC CLOSE BUY [SYMBOL] / RFC CLOSE SELL [SYMBOL]## ❌ Close Orders (Non-Reply)3. **Hủy lệnh chờ** - RFC CANCEL variants3. **Modify Orders** - Move SL/TP levels (RFC UPDATE, RFC SL ENTRY)



**Syntax:**

````````

RFC CANCEL### RFC SL ENTRY

```



---

Move stop loss to entry price (breakeven) for orders from the replied signal.Close specific direction on specific symbol.

### RFC CLOSE



Close all orders from the replied signal.

**Usage:**

**Syntax:**

```

RFC CLOSE

`RFC SL ENTRY`### RFC CLOSE ALL4. **Sửa lệnh** - RFC UPDATE SL/TP, RFC SL ENTRY4. **EA Control** - Enable/disable trading (RFC START, RFC STOP)

\---\`\`\`

#### RFC CLOSE HALFRFC CLOSE BUY EURUSD

Close 50% of lot size from the replied signal.**Effect:** Makes the trade risk-free by setting SL at entry price.

\*\*Syntax:\*\*RFC CLOSE SELL GBPUSDClose all open orders immediately.

```

RFC CLOSE HALF---

```

`````

---

### RFC UPDATE TP TO [PRICE]

### RFC CLOSE [LOT]

````5. **Điều khiển EA** - RFC START, RFC STOP5. **Configuration** - View settings and get help (RFC HELP, RFC ACCOUNT)

Close specified lot size from the replied signal.

Move take profit to a specific price for all orders from the replied signal.

**Syntax:**

```### RFC CLOSE x% [SYMBOL]

RFC CLOSE 0.05

RFC CLOSE 0.10**Usage:**

`````

````rfc

---

RFC UPDATE TP TO 1.0920

### RFC CLOSE ENTRY 1

```Close percentage of lot size on symbol.

Close first entry order from the replied signal.



**Syntax:**

```---```6. **Lọc hướng** - RFC ALLOW ALL/BUY/SELL6. **Report Commands** - Generate and export reports (RFC REPORT commands)

RFC CLOSE ENTRY 1

````

\---### RFC UPDATE TP1 TO \[PRICE]\`\`\`

#### RFC CLOSE ENTRY 2

Close second entry order from the replied signal.Move TP level 1 to a specific price.RFC CLOSE 50% EURUSD

**Syntax:**

```

RFC CLOSE ENTRY 2**Usage:**RFC CLOSE 30% XAUUSD

```

````

---

RFC UPDATE TP1 TO 1.0900```### RFC CLOSE ALL BUY / RFC CLOSE ALL SELL7. **Báo cáo** - RFC REPORT variants7. **Market Info** - Get real-time market data (RFC MARKET)

### RFC CLOSE [PERCENT]%

````

Close specified percentage of lot size from the replied signal.

**Syntax:**

`````---

RFC CLOSE 30%

RFC CLOSE 75%### RFC SL ENTRY [SYMBOL]Close all BUY or all SELL orders across all symbols.

RFC CLOSE 100%

```### RFC UPDATE TP2 TO [PRICE]



**Valid Range:** 1-100%



---Move TP level 2 to a specific price.



### RFC CLOSE TP1Move stop loss to entry price (breakeven) for symbol.```8. **Thông tin thị trường** - RFC MARKET



Close all orders at TP level 1 from the replied signal.**Usage:**



**Syntax:**````

`````

RFC CLOSE TP1RFC UPDATE TP2 TO 1.0950

`````

````RFC CLOSE ALL BUY

{% hint style="info" %}

TP1-TP5 commands only available when `MaxOrdersPerSignal > 1`

{% endhint %}

---RFC SL ENTRY EURUSD

---



### RFC CLOSE TP2

### RFC UPDATE TP3 TO [PRICE]```RFC CLOSE ALL SELL9. **Trợ giúp** - RFC HELP---

Close all orders at TP level 2 from the replied signal.



**Syntax:**

```Move TP level 3 to a specific price.

RFC CLOSE TP2

`````

\---**Usage:**### RFC SL \[SYMBOL] TO \[PRICE]\`\`\`

#### RFC CLOSE TP3\`\`\`

Close all orders at TP level 3 from the replied signal.RFC UPDATE TP3 TO 1.1000

**Syntax:**\`\`\`

```

RFC CLOSE TP3Move stop loss to specific price for symbol.

```

***

***

#### RFC CLOSE TP4

#### RFC UPDATE TP4 TO \[PRICE]

Close all orders at TP level 4 from the replied signal.

`````###

**Syntax:**

```Move TP level 4 to a specific price.

RFC CLOSE TP4

```RFC SL EURUSD TO 1.0870



---**Usage:**



### RFC CLOSE TP5```RFC SL XAUUSD TO 2680Close all orders (both directions) on specific symbol.---## 📊 Status & Information Commands



Close all orders at TP level 5 from the replied signal.RFC UPDATE TP4 TO 1.1050



**Syntax:**````

`````

RFC CLOSE TP5---\`\`\`

```

### RFC UPDATE TP5 TO [PRICE]**Note:** BUY orders require SL < current price; SELL orders require SL > current price.

---

Move TP level 5 to a specific price.RFC CLOSE EURUSD

### RFC CLOSE TP1 HALF

**Usage:**---

Close 50% of TP level 1 orders from the replied signal.

```

**Syntax:**

```rfc

RFC CLOSE TP1 HALF

```

\---## 🚫 Cancel Pending Orders (Non-Reply)

#### RFC CLOSE TP2 HALF---

Close 50% of TP level 2 orders from the replied signal.\`\`\`## 📊 Lệnh Trạng Thái & Thông Tin### **RFC STATUS**

**Syntax:**## ❌ Close Order Commands (Reply Required)

```

RFC CLOSE TP2 HALF### RFC CANCEL ALL

```

**Note:** These commands require replying to the original signal message.

***

#### RFC CLOSE TP3 HALF

#### RFC CANCEL

Close 50% of TP level 3 orders from the replied signal.

Cancel all pending orders.

**Syntax:**

`````cancel

RFC CLOSE TP3 HALF

```### RFC CLOSE BUY [SYMBOL] / RFC CLOSE SELL [SYMBOL]



---**Usage:**



### RFC CLOSE TP4 HALF```



Close 50% of TP level 4 orders from the replied signal.RFC CANCEL



**Syntax:**````RFC CANCEL ALLClose specific direction on specific symbol.

`````

RFC CLOSE TP4 HALF

````

**Effect:** Deletes all pending orders (Buy Stop, Sell Stop, Buy Limit, Sell Limit) associated with the signal.```

---



### RFC CLOSE TP5 HALF

---```### **RFC STATUS****Purpose:** Get bot status (running or stopped).

Close 50% of TP level 5 orders from the replied signal.



**Syntax:**

```### RFC CLOSE### RFC CANCEL ALL BUY / RFC CANCEL ALL SELL

RFC CLOSE TP5 HALF

````

\---Close all orders from the replied signal.RFC CLOSE BUY EURUSD

#### RFC CLOSE TP1 \[LOT]

Close specified lot size from TP level 1.\*\*Usage:\*\*Cancel all BUY or SELL pending orders.

**Syntax:**\`\`\`\`

```

RFC CLOSE TP1 0.05RFC CLOSERFC CLOSE SELL GBPUSD

```

```

---

```

#### RFC CLOSE TP2 \[LOT]

**Effect:** Closes all open positions from the signal.

Close specified lot size from TP level 2.

RFC CANCEL ALL BUY\`\`\`

**Syntax:**

`````---

RFC CLOSE TP2 0.10

```RFC CANCEL ALL SELL



---### RFC CLOSE HALF



### RFC CLOSE TP3 [LOT]````Kiểm tra bot đang chạy hay dừng.**Usage:**



Close specified lot size from TP level 3.Close 50% of lot size from the replied signal orders.



**Syntax:**

`````

RFC CLOSE TP3 0.15**Usage:**

````

```### RFC CANCEL BUY [SYMBOL] / RFC CANCEL SELL [SYMBOL]### RFC CLOSE x% [SYMBOL]

---

RFC CLOSE HALF

### RFC CLOSE TP4 [LOT]

````

Close specified lot size from TP level 4.

**Effect:** Closes half of each order, leaving the remaining half active.Cancel specific direction pending orders on symbol.Close percentage of lot size on symbol.\`\`\`

**Syntax:**

```````---

RFC CLOSE TP4 0.20

```### RFC CLOSE [LOT]``````



---Close a specific lot size from the replied signal orders.RFC CANCEL BUY EURUSD



### RFC CLOSE TP5 [LOT]**Usage:**RFC CANCEL SELL GBPUSDRFC CLOSE 50% EURUSD```RFC STATUS



Close specified lot size from TP level 5.````



**Syntax:**RFC CLOSE 0.05```

```````

RFC CLOSE TP5 0.25RFC CLOSE 0.10

````

```RFC CLOSE 30% XAUUSD

---



### RFC CLOSE TP1 [PERCENT]%

**Effect:** Closes the specified lot amount (if available).---

Close specified percentage from TP level 1.



**Syntax:**

```---```RFC STATUS```

RFC CLOSE TP1 25%

RFC CLOSE TP1 50%

````

#### RFC CLOSE ENTRY 1## 📝 Close Orders (Reply Required)

**Valid Range:** 1-100%

***

Close the first entry order from the replied signal.

#### RFC CLOSE TP2 \[PERCENT]%

Close specified percentage from TP level 2.

**Usage:\*\***&#x49;nstructions:\*\* Reply to the original signal message, then send the command.

**Syntax:**

```````

RFC CLOSE TP2 30%

```RFC CLOSE ENTRY 1### RFC SL ENTRY [SYMBOL]```



---````



### RFC CLOSE TP3 [PERCENT]%### RFC CLOSE



Close specified percentage from TP level 3.---



**Syntax:**Move stop loss to entry price (breakeven) for symbol.

```

RFC CLOSE TP3 40%### RFC CLOSE ENTRY 2

```

Close all orders from the replied signal.

---

Close the second entry order from the replied signal.

### RFC CLOSE TP4 [PERCENT]%

```**EA Response:**

Close specified percentage from TP level 4.

**Usage:**

**Syntax:**

``````### RFC CLOSE HALF

RFC CLOSE TP4 50%

```RFC CLOSE ENTRY 2



---```RFC SL ENTRY EURUSD



### RFC CLOSE TP5 [PERCENT]%



Close specified percentage from TP level 5.---Close 50% of orders from the replied signal.



**Syntax:**

```

RFC CLOSE TP5 60%### RFC CLOSE [PERCENT]%```**Phản hồi:**```

```



---

Close a specific percentage of lot size from the replied signal orders.### RFC CLOSE TP1 HALF / RFC CLOSE TP2 HALF / RFC CLOSE TP3 HALF

## Close Order Commands (Non-Reply)



{% hint style="info" %}

These commands do NOT require replying. They act on all matching orders.**Usage:**

{% endhint %}

````

### RFC CLOSE ALL

RFC CLOSE 30%Close 50% of specific TP level order.

Close all open orders immediately (BUY and SELL, all symbols).

RFC CLOSE 75%

**Syntax:**

```RFC CLOSE 100%### RFC SL [SYMBOL] TO [PRICE]```📊 REDFOX COPIER PRO - ACCOUNT STATUS

RFC CLOSE ALL

```````

{% hint style="danger" %}### RFC CLOSE x%

**Warning:** Closes everything without confirmation!

{% endhint %}**Valid Range:** 1-100%

\---Move stop loss to specific price for symbol.

#### RFC CLOSE ALL BUY---

Close all BUY orders across all symbols.Close specific percentage of orders.

**Syntax:**### RFC CLOSE TP1

````

RFC CLOSE ALL BUY```✅ BOT IS RUNNING━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━

````

Close all orders at TP level 1 from the replied signal.

***

```````

### RFC CLOSE ALL SELL

**Usage:**

Close all SELL orders across all symbols.

`````RFC CLOSE 30%RFC SL EURUSD TO 1.0870

**Syntax:**

```RFC CLOSE TP1

RFC CLOSE ALL SELL

``````RFC CLOSE 75%



---



### RFC CLOSE [PERCENT]% [SYMBOL]**Note:** Only available when `MaxOrdersPerSignal > 1````RFC SL XAUUSD TO 2680hoặc



Close specified percentage of lot size on a symbol.



**Syntax:**---

```

RFC CLOSE 50% EURUSD

RFC CLOSE 30% XAUUSD

```### RFC CLOSE TP2### RFC CLOSE TP1 x% / RFC CLOSE TP2 x% / RFC CLOSE TP3 x%```



**Valid Range:** 1-100%



---Close all orders at TP level 2 from the replied signal.



### RFC CLOSE [SYMBOL]



Close all orders (BUY and SELL) on specified symbol.**Usage:**Close specific percentage of TP level order.**Note:** BUY orders require SL < current price; SELL orders require SL > current price.🛑 BOT IS STOPPED💰 ACCOUNT INFORMATION



**Syntax:**`````

```

RFC CLOSE EURUSDRFC CLOSE TP2

RFC CLOSE XAUUSD

RFC CLOSE GBPUSD````

```

### RFC CLOSE x.xx

---

---

### RFC CLOSE BUY [SYMBOL]



Close all BUY orders on specified symbol.

### RFC CLOSE TP3

**Syntax:**

```Close specific lot size.---```Balance: $10,245.50

RFC CLOSE BUY EURUSD

RFC CLOSE BUY XAUUSDClose all orders at TP level 3 from the replied signal.

```



---

**Usage:**

### RFC CLOSE SELL [SYMBOL]

```````

Close all SELL orders on specified symbol.

RFC CLOSE TP3

**Syntax:**

```````rfc

RFC CLOSE SELL GBPUSD

RFC CLOSE SELL USDJPY

```

---RFC CLOSE 0.10## 🚫 Cancel Pending Orders (Non-Reply)Equity: $10,380.25

---



### RFC SL ENTRY [SYMBOL]

### RFC CLOSE TP4```

Move stop loss to entry price (breakeven) for all orders on specified symbol.



**Syntax:**

```Close all orders at TP level 4 from the replied signal.

RFC SL ENTRY EURUSD

RFC SL ENTRY XAUUSD

```

**Usage:**### RFC CLOSE TP1 x.xx / RFC CLOSE TP2 x.xx / RFC CLOSE TP3 x.xx

---

````

### RFC SL [SYMBOL] TO [PRICE]

RFC CLOSE TP4### RFC CANCEL ALL---Free Margin: $9,850.00

Move stop loss to specified price for all orders on specified symbol.

````

**Syntax:**

```Close specific lot size from TP level.

RFC SL EURUSD TO 1.0870

RFC SL XAUUSD TO 2680---

```

Cancel all pending orders.

**Validation:**

- BUY orders: SL must be below current price### RFC CLOSE TP5

- SELL orders: SL must be above current price

### RFC CLOSE ENTRY 1 / RFC CLOSE ENTRY 2

---

Close all orders at TP level 5 from the replied signal.

## Cancel Pending Orders (Non-Reply)

```Margin Level: 485.2%

### RFC CANCEL ALL

**Usage:**

Cancel all pending orders (Buy Stop, Sell Stop, Buy Limit, Sell Limit) across all symbols.

```Close specific entry order number.

**Syntax:**

```RFC CLOSE TP5

RFC CANCEL ALL

``````RFC CANCEL ALL



---



### RFC CANCEL ALL BUY------



Cancel all BUY pending orders (Buy Stop and Buy Limit) across all symbols.



**Syntax:**### RFC CLOSE TP1 HALF```### **RFC LISTORDER**Floating P/L: +$134.75

```

RFC CANCEL ALL BUY

```

Close 50% of TP level 1 orders from the replied signal.## 🔧 Modify Orders (Reply Required)

---



### RFC CANCEL ALL SELL

**Usage:**

Cancel all SELL pending orders (Sell Stop and Sell Limit) across all symbols.

````

**Syntax:**

```RFC CLOSE TP1 HALF**Instructions:** Reply to the original signal message, then send the command.

RFC CANCEL ALL SELL

```````

\---### RFC CANCEL ALL BUY / RFC CANCEL ALL SELL

#### RFC CANCEL BUY \[SYMBOL]---

Cancel all BUY pending orders on specified symbol.### RFC SL ENTRY

**Syntax:**### RFC CLOSE TP2 HALF

```

RFC CANCEL BUY EURUSDCancel all BUY or SELL pending orders.

```

Close 50% of TP level 2 orders from the replied signal.

***

Move stop loss to entry (breakeven) for orders from replied signal.

#### RFC CANCEL SELL \[SYMBOL]

**Usage:**

Cancel all SELL pending orders on specified symbol.

```````xem

**Syntax:**

```RFC CLOSE TP2 HALF

RFC CANCEL SELL GBPUSD

``````### RFC UPDATE SL TO [PRICE]



---



## Report Commands---RFC CANCEL ALL BUY



### RFC REPORT DAILY



Generate today's trading report with all trades, profit/loss, and statistics.### RFC CLOSE TP3 HALFMove stop loss to specific price for orders from replied signal.



**Syntax:**

```

RFC REPORT DAILYClose 50% of TP level 3 orders from the replied signal.RFC CANCEL ALL SELLStarting Balance: $10,000.00

```



---

**Usage:**```

### RFC REPORT WEEKLY

```````

Generate this week's trading report (Monday to current day).

RFC CLOSE TP3 HALFRFC UPDATE SL TO 1.0870\`\`\`

**Syntax:**

```

RFC REPORT WEEKLY

```

***

#### RFC REPORT MONTHLY\`\`\`\`Current P/L: +$245.50 (+2.45%)

Generate this month's trading report (1st to current day).### RFC CLOSE TP4 HALF

**Syntax:**### RFC UPDATE TP TO \[PRICE]

```

RFC REPORT MONTHLYClose 50% of TP level 4 orders from the replied signal.

```

#### RFC CANCEL BUY \[SYMBOL] / RFC CANCEL SELL \[SYMBOL]

***

**Usage:**

#### RFC REPORT \[SYMBOL]

```````move

Generate symbol-specific trading report for last 30 days.

RFC CLOSE TP4 HALF

**Syntax:**

``````Cancel specific direction pending orders on symbol.RFC LISTORDERClosed Trades: 15

RFC REPORT EURUSD

RFC REPORT XAUUSD

```````

\---\`\`\`

***

#### RFC REPORT YYYY.MM.DD-YYYY.MM.DD

#### RFC CLOSE TP5 HALFRFC UPDATE TP TO 1.0920\`\`\`

Generate trading report for custom date range.

**Syntax:**

`Close 50% of TP level 5 orders from the replied signal.`

RFC REPORT 2024.10.01-2024.10.31

RFC REPORT 2024.09.15-2024.10.15

````

**Usage:**RFC CANCEL BUY EURUSD```Winning: 9 (60%)

**Format:** YYYY.MM.DD-YYYY.MM.DD (year.month.day)

````

***

RFC CLOSE TP5 HALF### RFC UPDATE TP1 TO \[PRICE] / RFC UPDATE TP2 TO \[PRICE] / RFC UPDATE TP3 TO \[PRICE]

#### RFC EXPORT CSV YYYY.MM.DD-YYYY.MM.DD

````````

Export trading data to CSV file for specified date range.

RFC CANCEL SELL GBPUSD

**Syntax:**

```---

RFC EXPORT CSV 2024.10.01-2024.10.31

```Move specific TP level to new price.



**Output File:** `MT4/Files/RedFoxCopierPro_[daterange].csv`### RFC CLOSE TP1 [LOT]



**Format:** YYYY.MM.DD-YYYY.MM.DD (year.month.day)```Losing: 6 (40%)



---Close specific lot size from TP level 1.



## Market Information Commands````



### RFC MARKET [SYMBOL]**Usage:**



Get real-time market data (Ask, Bid, Spread) for specified symbol.````RFC UPDATE TP1 TO 1.0900



**Syntax:**RFC CLOSE TP1 0.05

```

RFC MARKET EURUSD```RFC UPDATE TP2 TO 1.0950

RFC MARKET XAUUSD

RFC MARKET GBPUSD

```

---```---**Phản hồi:**

---



## Help Command

### RFC CLOSE TP2 [LOT]

### RFC HELP



Display complete list of available RFC commands organized by category.

Close specific lot size from TP level 2.---

**Syntax:**

```

RFC HELP

```**Usage:**



**Response includes:**````

- Status & Control commands

- Direction Filter commandsRFC CLOSE TP2 0.10## 🚫 Cancel Pending (Reply Required)## 📝 Close Orders (Reply Required)```📦 OPEN POSITIONS (5 orders)

- Update Order commands

- Close Order commands (reply and non-reply)```

- Cancel Pending commands

- Report commands

- Market Info commands

---

---

### RFC CANCEL

## Quick Reference

### RFC CLOSE TP3 [LOT]

### Command Summary Table



| Category | Command | Reply? | Description |

|----------|---------|--------|-------------|Close specific lot size from TP level 3.

| **Status** | RFC STATUS | No | Check bot status |

| | RFC START | No | Enable trading |Cancel all pending orders from the replied signal.**Instructions:** Reply to the original signal message, then send the command.=======Account Name-123456=======━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━

| | RFC STOP | No | Disable trading |

| | RFC LISTORDER | No | List all orders |**Usage:**

| | RFC ACCOUNT | No | Show configuration |

| **Direction** | RFC ALLOW ALL | No | Allow BUY & SELL |```

| | RFC ALLOW BUY | No | Allow only BUY |

| | RFC ALLOW SELL | No | Allow only SELL |RFC CLOSE TP3 0.15

| **Update** | RFC UPDATE SL TO [PRICE] | Yes | Move SL to price |

| | RFC SL ENTRY | Yes | SL to breakeven |```---

| | RFC UPDATE TP[1-5] TO [PRICE] | Yes | Move TP to price |

| **Close (Reply)** | RFC CANCEL | Yes | Cancel pending orders |

| | RFC CLOSE | Yes | Close all from signal |

| | RFC CLOSE HALF | Yes | Close 50% |---

| | RFC CLOSE [LOT] | Yes | Close specific lot |

| | RFC CLOSE ENTRY [1-2] | Yes | Close entry number |

| | RFC CLOSE [%]% | Yes | Close percentage |

| | RFC CLOSE TP[1-5] | Yes | Close TP level |### RFC CLOSE TP4 [LOT]## ⚡ EA Control### RFC CLOSE1️⃣ EURUSD BUY

| | RFC CLOSE TP[1-5] HALF | Yes | Close 50% of TP |

| | RFC CLOSE TP[1-5] [LOT] | Yes | Close lot from TP |

| | RFC CLOSE TP[1-5] [%]% | Yes | Close % from TP |

| **Close (No Reply)** | RFC CLOSE ALL | No | Close everything |Close specific lot size from TP level 4.

| | RFC CLOSE ALL BUY | No | Close all BUY |

| | RFC CLOSE ALL SELL | No | Close all SELL |

| | RFC CLOSE [%]% [SYMBOL] | No | Close % on symbol |

| | RFC CLOSE [SYMBOL] | No | Close symbol |**Usage:**### RFC STARTClose all orders from the replied signal.

| | RFC CLOSE BUY [SYMBOL] | No | Close BUY on symbol |

| | RFC CLOSE SELL [SYMBOL] | No | Close SELL on symbol |```

| | RFC SL ENTRY [SYMBOL] | No | SL to entry on symbol |

| | RFC SL [SYMBOL] TO [PRICE] | No | Move SL on symbol |RFC CLOSE TP4 0.20

| **Cancel** | RFC CANCEL ALL | No | Cancel all pending |

| | RFC CANCEL ALL BUY | No | Cancel BUY pending |```````

| | RFC CANCEL ALL SELL | No | Cancel SELL pending |

| | RFC CANCEL BUY [SYMBOL] | No | Cancel BUY on symbol |Enable signal detection and trading.📦 OPEN ORDERS (5 positions)   Lot: 0.20 | Entry: 1.0850

| | RFC CANCEL SELL [SYMBOL] | No | Cancel SELL on symbol |

| **Report** | RFC REPORT DAILY | No | Today's report |---

| | RFC REPORT WEEKLY | No | This week's report |

| | RFC REPORT MONTHLY | No | This month's report |

| | RFC REPORT [SYMBOL] | No | Symbol report (30d) |

| | RFC REPORT [DATE] | No | Custom date report |### RFC CLOSE TP5 [LOT]

| | RFC EXPORT CSV [DATE] | No | Export to CSV |

| **Market** | RFC MARKET [SYMBOL] | No | Real-time market data |```### RFC CLOSE HALF

| **Help** | RFC HELP | No | Show all commands |

Close specific lot size from TP level 5.

---

RFC START

## Important Notes

**Usage:**

{% hint style="warning" %}

**Critical Rules**``````Close 50% of orders from the replied signal.Total Floating P/L: +$134.75   SL: 1.0800 | TP: 1.0950

{% endhint %}

RFC CLOSE TP5 0.25

1. **RFC Prefix Required** - All commands MUST start with `RFC` (case-insensitive)

````````

2. **Reply vs Non-Reply**
   * Reply commands: Act only on orders from specific signal you reply to---### RFC STOP
   * Non-reply commands: Act on ALL orders matching criteria

#### RFC CLOSE TP1 \[PERCENT]%

3. **Symbol Names** - Use exact broker symbol names from MT4 Market Watch

Close specific percentage from TP level 1.Disable signal detection. Existing orders remain active.### RFC CLOSE TP1 HALF / RFC CLOSE TP2 HALF / RFC CLOSE TP3 HALF Profit: +$35.50 (+35 pips)

4. **SL Validation**
   * BUY orders: New SL must be below current market price**Usage:**
   * SELL orders: New SL must be above current market price

````

5. **Immediate Execution** - Commands execute instantly without confirmation

RFC CLOSE TP1 25%```Close 50% of specific TP level order.

6. **No Undo** - Cannot reverse executed commands

RFC CLOSE TP1 50%

7. **EA Must Be Running** - EA and MT4 must be active to process commands

```RFC STOP

8. **Authorization** - Only authorized Telegram ID can execute commands



9. **TP Levels** - TP1-TP5 commands only work when `MaxOrdersPerSignal > 1`

**Valid Range:** 1-100%```1️⃣ EURUSD BUY #12345678

10. **Percentage Range** - Valid range is 1-100% for percentage close commands



---

---

## Security



{% hint style="info" %}

**Authorization & Security**### RFC CLOSE TP2 [PERCENT]%---### RFC CLOSE x%

{% endhint %}



- Only your authorized Telegram ID can control the EA

- Configure `TelegramChatID` in EA settingsClose specific percentage from TP level 2.

- All commands are logged for audit trail

- Unauthorized command attempts are reported

- Commands require EA to be running and connected

**Usage:**## 🎯 Direction FilterClose specific percentage of orders.   Lot: 0.20 | Entry: 1.08502️⃣ EURUSD BUY

---

```

`

## Mobile Usage Tips

RFC CLOSE TP2 30%

### Recommended Shortcuts

````

Save these common commands as phone shortcuts:

#### RFC ALLOW ALL\`\`\`

````````

st → RFC STATUS---

lo → RFC LISTORDER

ca → RFC CLOSE ALL

se → RFC SL ENTRY

start → RFC START### RFC CLOSE TP3 [PERCENT]%

stop → RFC STOP

```Allow both BUY and SELL orders.RFC CLOSE 30%   SL: 1.0800 | TP: 1.0950   Lot: 0.20 | Entry: 1.0860



### Best PracticesClose specific percentage from TP level 3.



1. **Use Telegram Quick Reply** - Save frequent commands as templates

2. **Create Keyboard Shortcuts** - One-tap command execution on mobile

3. **Save Command List** - Keep this reference in phone notes**Usage:**

4. **Test Commands** - Practice with small positions first

5. **Verify Execution** - Always check command response messages``````RFC CLOSE 75%



---RFC CLOSE TP3 40%



## FAQ```RFC ALLOW ALL



**Q: Do I need the RFC prefix?**

A: Yes, all commands require the `RFC` prefix.

---``````   Current: 1.0885   SL: 1.0810 | TP: 1.0960

**Q: Are commands case-sensitive?**

A: No. `RFC CLOSE`, `rfc close`, and `Rfc Close` all work.



**Q: What's the difference between reply and non-reply commands?**  ### RFC CLOSE TP4 [PERCENT]%

A: Reply commands act on specific signal orders only. Non-reply commands act on all matching orders.



**Q: Can I undo a command?**

A: No, all commands execute immediately and cannot be undone.Close specific percentage from TP level 4.### RFC ALLOW BUY



**Q: Why doesn't RFC CLOSE work?**

A: You must reply to the original signal message when using reply-required commands.

**Usage:**

**Q: How do I close orders from a specific signal?**

A: Reply to that signal's Telegram message and type `RFC CLOSE`.```````



**Q: Do commands work 24/7?**  RFC CLOSE TP4 50%Allow only BUY orders (block SELL signals).### RFC CLOSE TP1 x% / RFC CLOSE TP2 x% / RFC CLOSE TP3 x% Profit: +$35.50 (+35 pips) Profit: +$28.00 (+28 pips)

A: Yes, as long as EA and MT4 are running.

````````

**Q: What if I use wrong symbol name?**

A: EA will respond "Not found order!" Use exact broker symbol names.

***

### Quick Start Guide\`\`\`Close specific percentage of TP level order.

#### Day 1 - Master Basics### RFC CLOSE TP5 \[PERCENT]%

Learn these essential commands:RFC ALLOW BUY

1. `RFC STATUS` - Check bot statusClose specific percentage from TP level 5.
2. `RFC LISTORDER` - View all orders
3. `RFC START` - Enable trading\`\`\`\`
4. `RFC STOP` - Disable trading
5. `RFC ACCOUNT` - View configuration**Usage:**

#### Day 2 - Close Commands\`\`\`\`\`\`\`

Practice closing orders:RFC CLOSE TP5 60%

1. `RFC CLOSE [SYMBOL]` - Close by symbol\`\`\`### RFC ALLOW SELL### RFC CLOSE x.xx
2. `RFC CLOSE ALL BUY/SELL` - Close by direction
3. `RFC SL ENTRY [SYMBOL]` - Move to breakeven

#### Day 3 - Reply Commands---

Master signal-specific control:

1. Find signal message in Telegram## ❌ Close Order Commands (Non-Reply)Allow only SELL orders (block BUY signals).Close specific lot size.\[...danh sách đầy đủ các lệnh...]3️⃣ GBPUSD SELL
2. Reply with: `RFC CLOSE` - Close signal orders
3. Reply with: `RFC SL ENTRY` - Move to breakeven
4. Reply with: `RFC CLOSE HALF` - Partial close

**Note:** These commands do NOT require replying. They act on all matching orders.

#### Week 2 - Advanced

Practice advanced techniques:

#### RFC CLOSE ALL\`\`\`\`\`\`

1. Percentage closes - `RFC CLOSE 50%`
2. TP level commands - `RFC CLOSE TP1 HALF`
3. Generate reports - `RFC REPORT DAILY`
4. Export data - `RFC EXPORT CSV`Close all open orders immediately (both BUY and SELL, all symbols).RFC ALLOW SELL

***

\*\*Usage:\*\*\`\`\`RFC CLOSE 0.05 Lot: 0.15 | Entry: 1.2700

**Congratulations!** You now have complete remote control of your trading via Telegram RFC commands.

{% endhint %}\`\`\`\`\`\`\`

RFC CLOSE ALL

````

---RFC CLOSE 0.10

**Warning:** Closes everything without confirmation!



---

## 📊 Report Commands```💰 BUY Profit: +$51.50   SL: 1.2750 | TP: 1.2600

### RFC CLOSE ALL BUY



Close all BUY orders across all symbols.

### RFC REPORT DAILY

**Usage:**

````

RFC CLOSE ALL BUY

````generate



---



### RFC CLOSE ALL SELL```Close specific lot size from TP level.



Close all SELL orders across all symbols.RFC REPORT DAILY



**Usage:**```💰 Total: +$134.75

````

RFC CLOSE ALL SELL

````

### RFC REPORT WEEKLY### RFC CLOSE ENTRY 1 / RFC CLOSE ENTRY 2

---



### RFC CLOSE [PERCENT]% [SYMBOL]

Generate this week's report.Close specific entry order number.```4️⃣ XAUUSD BUY

Close specific percentage of lot size on a specific symbol.



**Usage:**

````

RFC CLOSE 50% EURUSD

RFC CLOSE 30% XAUUSDRFC REPORT WEEKLY

````

```---   Lot: 0.10 | Entry: 2650

**Valid Range:** 1-100%



---

### RFC REPORT MONTHLY

### RFC CLOSE [SYMBOL]



Close all orders (both BUY and SELL) on a specific symbol.

Generate this month's report.## 🔧 Modify Orders (Reply Required)---   SL: 2620 | TP: 2720

**Usage:**

````

RFC CLOSE EURUSD

RFC CLOSE XAUUSD\`\`\`

RFC CLOSE GBPUSD

````rfc



---```**Instructions:** Reply to the original signal message, then send the command.   Profit: -$12.00 (-12 points)



### RFC CLOSE BUY [SYMBOL]



Close all BUY orders on a specific symbol.### RFC REPORT [SYMBOL]



**Usage:**

````

RFC CLOSE BUY EURUSDGenerate symbol-specific report (last 30 days).### RFC SL ENTRY### **RFC ACCOUNT**

RFC CLOSE BUY XAUUSD

````



---```Move stop loss to entry (breakeven) for orders from replied signal.



### RFC CLOSE SELL [SYMBOL]RFC REPORT EURUSD



Close all SELL orders on a specific symbol.RFC REPORT XAUUSD5️⃣ USDJPY SELL



**Usage:**```

````

RFC CLOSE SELL GBPUSD### RFC UPDATE SL TO \[PRICE]

RFC CLOSE SELL USDJPY

````###



---Move stop loss to specific price for orders from replied signal.Xem cấu hình EA và thông tin tài khoản đầy đủ.   Lot: 0.25 | Entry: 150.50



### RFC SL ENTRY [SYMBOL]Generate report for custom date range.



Move stop loss to entry price (breakeven) for all orders on a specific symbol.```



**Usage:**```

````

RFC SL ENTRY EURUSDRFC REPORT 2024.10.01-2024.10.31RFC UPDATE SL TO 1.0870 SL: 151.00 | TP: 149.50

RFC SL ENTRY XAUUSD

````



**Effect:** Makes all trades on the symbol risk-free.```



---### RFC EXPORT CSV YYYY.MM.DD-YYYY.MM.DD



### RFC SL [SYMBOL] TO [PRICE]```   Profit: +$60.45 (+40 pips)



Move stop loss to a specific price for all orders on a specific symbol.Export trading data to CSV file for date range.



**Usage:**### RFC UPDATE TP TO [PRICE]

```

RFC SL EURUSD TO 1.0870```

RFC SL XAUUSD TO 2680

```RFC EXPORT CSV 2024.10.01-2024.10.31Move take profit to specific price for all orders from replied signal.RFC ACCOUNT



**Validation:**```

- BUY orders: New SL must be below current price

- SELL orders: New SL must be above current price```



---File saved to: `MT4/Files/RedFoxCopierPro_[daterange].csv`



## 🚫 Cancel Pending Orders (Non-Reply)RFC UPDATE TP TO 1.0920```🎯 SUMMARY BY SYMBOL



### RFC CANCEL ALL---



Cancel all pending orders (Buy Stop, Sell Stop, Buy Limit, Sell Limit) across all symbols.```



**Usage:**## 📈 Market Information

```

RFC CANCEL ALLEURUSD: 2 orders (+$63.50)

```

### RFC MARKET [SYMBOL]

---

### RFC UPDATE TP1 TO [PRICE] / RFC UPDATE TP2 TO [PRICE] / RFC UPDATE TP3 TO [PRICE]

### RFC CANCEL ALL BUY

Get real-time market data (Ask, Bid, Spread) for symbol.

Cancel all BUY pending orders (Buy Stop and Buy Limit) across all symbols.

Move specific TP level to new price.**Phản hồi:** 2 tin nhắn với đầy đủ cấu hình EA (Balance, Lot Mode, SL/TP, Filters, v.v.)GBPUSD: 1 order (+$22.80)

**Usage:**

````

RFC CANCEL ALL BUY

`RFC MARKET EURUSD`

\---\`\`\`

#### RFC CANCEL ALL SELLRFC UPDATE TP1 TO 1.0900XAUUSD: 1 order (-$12.00)

Cancel all SELL pending orders (Sell Stop and Sell Limit) across all symbols.---

\*\*Usage:\*\*RFC UPDATE TP2 TO 1.0950

```

RFC CANCEL ALL SELL## ❓ Help

```

````---usdjpy:

---

### RFC HELP

### RFC CANCEL BUY [SYMBOL]



Cancel all BUY pending orders on a specific symbol.

Display complete list of available commands with brief descriptions.

**Usage:**

```---

RFC CANCEL BUY EURUSD

````

\---RFC HELP

#### RFC CANCEL SELL \[SYMBOL]\`\`\`

Cancel all SELL pending orders on a specific symbol.## 🚫 Cancel Pending (Reply Required)## ❌ Lệnh Đóng (Không cần Reply)🛡️ RISK MANAGEMENT

**Usage:**---

```

RFC CANCEL SELL GBPUSD

```

### 📋 Command Reference Table

***

#### RFC CANCELTotal Risk: $850 (8.5% of balance)

### 📊 Report Commands

\| Category | Command | Description |

#### RFC REPORT DAILY

\|----------|---------|-------------|Cancel all pending orders from the replied signal.

Generate today's trading report showing all trades, profit/loss, and statistics for today.

\| **Status** | RFC STATUS | Bot running status |

**Usage:**

````|

RFC REPORT DAILY

```| | RFC ACCOUNT | Show full config |



---| **Close (No Reply)** | RFC CLOSE ALL | Close all orders |---



### RFC REPORT WEEKLY| | RFC CLOSE ALL BUY/SELL | Close by direction |



Generate this week's trading report (Monday to current day).| | RFC CLOSE [SYM] | Close symbol |Daily Profit Target: $500 (49% reached)



**Usage:**| | RFC CLOSE BUY/SELL [SYM] | Close direction+symbol |

````

RFC REPORT WEEKLY| | RFC CLOSE x% \[SYM] | Close percentage |## ⚡ EA Control

````

| | RFC SL ENTRY [SYM] | SL to breakeven |

---

| | RFC SL [SYM] TO [PRICE] | SL to price |Đóng **TẤT CẢ** lệnh ngay lập tức.Max Orders: 15 (current: 5)

### RFC REPORT MONTHLY

| **Close (Reply)** | RFC CLOSE | Close signal orders |

Generate this month's trading report (1st to current day).

| | RFC CLOSE HALF | Close 50% |### RFC START

**Usage:**

```| | RFC CLOSE x% | Close percentage |

RFC REPORT MONTHLY

```| | RFC CLOSE TPx HALF | Close TP 50% |Enable signal detection and trading.



---| | RFC CLOSE ENTRY 1/2 | Close entry |



### RFC REPORT [SYMBOL]| **Modify (Reply)** | RFC SL ENTRY | SL to breakeven |```



Generate symbol-specific trading report for the last 30 days.| | RFC UPDATE SL TO [PRICE] | SL to price |



**Usage:**| | RFC UPDATE TPx TO [PRICE] | TP to price |RFC START```🔗 EA STATUS

````

RFC REPORT EURUSD| **Cancel** | RFC CANCEL ALL | Cancel all pending |

RFC REPORT XAUUSD

`| | RFC CANCEL ALL BUY/SELL | Cancel by direction |`

\---| | RFC CANCEL (reply) | Cancel signal pending |

#### RFC REPORT YYYY.MM.DD-YYYY.MM.DD| **Control** | RFC START | Enable trading |RFC CLOSE ALLVersion: v1.66

Generate trading report for a custom date range.| | RFC STOP | Disable trading |

**Usage:**| **Filter** | RFC ALLOW ALL/BUY/SELL | Direction filter |### RFC STOP

````

RFC REPORT 2024.10.01-2024.10.31| **Report** | RFC REPORT DAILY/WEEKLY/MONTHLY | Time reports |

RFC REPORT 2024.09.15-2024.10.15

```| | RFC REPORT [SYM] | Symbol report |Disable signal detection. Existing orders remain active.```Status: ✅ RUNNING



**Format:** YYYY.MM.DD-YYYY.MM.DD (year.month.day)| | RFC EXPORT CSV [range] | Export data |



---| **Market** | RFC MARKET [SYM] | Market info |```



### RFC EXPORT CSV YYYY.MM.DD-YYYY.MM.DD| **Help** | RFC HELP | Command list |



Export trading data to CSV file for a specific date range.RFC STOPTelegram: ✅ Connected



**Usage:**---

````

RFC EXPORT CSV 2024.10.01-2024.10.31\`\`\`

````

## ⚠️ Important Notes

**Output File:** `MT4/Files/RedFoxCopierPro_[daterange].csv`

⚠️ **Cảnh báo:** Đóng mọi thứ không xác nhận!Last Signal: 5m ago

**Format:** YYYY.MM.DD-YYYY.MM.DD (year.month.day)

1. **RFC Prefix Required**: All commands must start with `RFC`

---

2. **Case Insensitive**: `RFC CLOSE`, `rfc close`, `Rfc Close` all work---

## 📈 Market Information Commands

3. **Reply vs Non-Reply**: Pay attention to which commands require replying to signal messages

### RFC MARKET [SYMBOL]

4. **Symbol Names**: Use exact broker symbol names (check Market Watch)Trading: ✅ ENABLED

Get real-time market information for a specific symbol (Ask, Bid, Spread).

5. **SL Validation**: BUY orders require SL below entry; SELL orders require SL above entry

**Usage:**

```6. **Immediate Execution**: Commands execute instantly without confirmation## 🎯 Direction Filter

RFC MARKET EURUSD

RFC MARKET XAUUSD7. **No Undo**: Cannot reverse executed commands

RFC MARKET GBPUSD

```8. **EA Must Be Running**: EA and MT4 must be active to process commands---



**Response:** Current Ask, Bid, and Spread for the symbol.



------### RFC ALLOW ALL



## ❓ Help Command



### RFC HELP## 🔒 SecurityAllow both BUY and SELL orders.━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━



Display the complete list of available RFC commands with brief descriptions.



**Usage:**- Only authorized Telegram ID can execute commands```

````

RFC HELP- Configure `TelegramChatID` in EA settings

````

- All commands are logged for auditRFC ALLOW ALL### **RFC CLOSE ALL BUY** / **RFC CLOSE ALL SELL**📅 Report Time: 2024-10-28 14:35:22

**Response:** Full command list organized by category:

- Status & Control (RFC STATUS, RFC START, RFC STOP, RFC LISTORDER, RFC ACCOUNT)- Unauthorized attempts are reported

- Direction Filter (RFC ALLOW ALL/BUY/SELL)

- Update Order (RFC UPDATE SL TO, RFC SL ENTRY, RFC UPDATE TP[1-5] TO)```

- Close Order (RFC CANCEL, RFC CLOSE with all variants)

- Close Order Without Reply (RFC CLOSE ALL, RFC CLOSE [SYMBOL], etc.)---

- Cancel Pending (RFC CANCEL ALL, RFC CANCEL BUY/SELL [SYMBOL])

- Report Commands (RFC REPORT variants, RFC EXPORT CSV)```

- Market Info (RFC MARKET [SYMBOL])

## 📱 Mobile Tips

---

### RFC ALLOW BUY

## 📋 Command Reference Table

**Save Common Commands:**

| Category | Command | Reply Required | Description |

|----------|---------|----------------|-------------|- Create phone shortcuts for frequent commandsAllow only BUY orders (block SELL signals).Đóng tất cả lệnh BUY hoặc SELL (tất cả symbols).

| **Status** | RFC STATUS | No | Check bot status |

| | RFC START | No | Enable trading |- Use Telegram quick reply templates

| | RFC STOP | No | Disable trading |

| | RFC LISTORDER | No | List all orders |- Save command list in phone notes```

| | RFC ACCOUNT | No | Show configuration |

| **Direction** | RFC ALLOW ALL | No | Allow BUY & SELL |

| | RFC ALLOW BUY | No | Allow only BUY |

| | RFC ALLOW SELL | No | Allow only SELL |**Recommended Shortcuts:**RFC ALLOW BUY**When to use:**

| **Update (Reply)** | RFC UPDATE SL TO [PRICE] | Yes | Move SL to price |

| | RFC SL ENTRY | Yes | Move SL to entry |- `st` → RFC STATUS

| | RFC UPDATE TP[1-5] TO [PRICE] | Yes | Move TP to price |

| **Close (Reply)** | RFC CANCEL | Yes | Cancel pending |- `lo` → RFC LISTORDER```

| | RFC CLOSE | Yes | Close all |

| | RFC CLOSE HALF | Yes | Close 50% |- `ca` → RFC CLOSE ALL

| | RFC CLOSE [LOT] | Yes | Close specific lot |

| | RFC CLOSE ENTRY [1-2] | Yes | Close entry |- `se` → RFC SL ENTRY```- Check account health

| | RFC CLOSE [%]% | Yes | Close percentage |

| | RFC CLOSE TP[1-5] | Yes | Close TP level |

| | RFC CLOSE TP[1-5] HALF | Yes | Close 50% of TP |

| | RFC CLOSE TP[1-5] [LOT] | Yes | Close lot from TP |---### RFC ALLOW SELL

| | RFC CLOSE TP[1-5] [%]% | Yes | Close % from TP |

| **Close (No Reply)** | RFC CLOSE ALL | No | Close everything |

| | RFC CLOSE ALL BUY | No | Close all BUY |

| | RFC CLOSE ALL SELL | No | Close all SELL |## 📞 FAQAllow only SELL orders (block BUY signals).RFC CLOSE ALL BUY- Review open positions quickly

| | RFC CLOSE [%]% [SYMBOL] | No | Close % on symbol |

| | RFC CLOSE [SYMBOL] | No | Close symbol |

| | RFC CLOSE BUY [SYMBOL] | No | Close BUY on symbol |

| | RFC CLOSE SELL [SYMBOL] | No | Close SELL on symbol |**Q: Do I need the RFC prefix?**  ```

| | RFC SL ENTRY [SYMBOL] | No | SL to entry on symbol |

| | RFC SL [SYMBOL] TO [PRICE] | No | Move SL on symbol |A: Yes, all commands require `RFC` prefix.

| **Cancel (No Reply)** | RFC CANCEL ALL | No | Cancel all pending |

| | RFC CANCEL ALL BUY | No | Cancel BUY pending |RFC ALLOW SELLRFC CLOSE ALL SELL- Monitor performance

| | RFC CANCEL ALL SELL | No | Cancel SELL pending |

| | RFC CANCEL BUY [SYMBOL] | No | Cancel BUY on symbol |**Q: What's the difference between reply and non-reply commands?**

| | RFC CANCEL SELL [SYMBOL] | No | Cancel SELL on symbol |

| **Report** | RFC REPORT DAILY | No | Today's report |A: Reply commands act on specific signal orders; non-reply commands act on all matching orders.```

| | RFC REPORT WEEKLY | No | This week's report |

| | RFC REPORT MONTHLY | No | This month's report |

| | RFC REPORT [SYMBOL] | No | Symbol report (30d) |

| | RFC REPORT [DATE RANGE] | No | Custom date report |**Q: Can I undo a command?**  ```- Verify EA is running

| | RFC EXPORT CSV [DATE RANGE] | No | Export to CSV |

| **Market** | RFC MARKET [SYMBOL] | No | Real-time market data |A: No, all commands execute immediately.

| **Help** | RFC HELP | No | Show all commands |

---

---

**Q: Why doesn't RFC CLOSE work?**

## ⚠️ Important Notes

A: You must reply to the original signal message when using RFC CLOSE alone.- Before making trading decisions

1. **RFC Prefix Required**: All commands MUST start with `RFC` (case-insensitive)



2. **Reply vs Non-Reply**:

   - **Reply commands** act only on orders from the specific signal you reply to**Q: How do I close orders from a specific signal?**  ## 📊 Report Commands

   - **Non-reply commands** act on ALL orders that match the criteria

A: Reply to that signal's Telegram message and type RFC CLOSE.

3. **Symbol Names**: Use exact broker symbol names (check your MT4 Market Watch)

---

4. **SL Validation**:

   - BUY orders: New SL must be below current market price**Q: Do commands work 24/7?**

   - SELL orders: New SL must be above current market price

A: Yes, as long as EA and MT4 are running.### RFC REPORT DAILY

5. **Immediate Execution**: Commands execute instantly without confirmation



6. **No Undo**: Cannot reverse executed commands - be careful with CLOSE ALL!

---Generate today's trading report.---

7. **EA Must Be Running**: EA and MT4 must be active to process commands



8. **Authorization**: Only authorized Telegram ID (configured in EA) can execute commands

## 🚀 Quick Start```

9. **TP Levels**: TP1-TP5 commands only work when `MaxOrdersPerSignal > 1`



10. **Percentage Range**: For percentage close commands, valid range is 1-100%

**Day 1 - Essential Commands:**RFC REPORT DAILY### **RFC CLOSE [SYMBOL]**

---

1. RFC STATUS

## 🔒 Security

2. RFC LISTORDER```

- Only your authorized Telegram ID can control the EA

- Configure `TelegramChatID` in EA settings3. RFC CLOSE ALL

- All commands are logged for audit trail

- Unauthorized command attempts are reported4. RFC START### **/orders** or **orders**



---5. RFC STOP



## 📱 Mobile Usage Tips### RFC REPORT WEEKLY



**Save Common Commands:****Day 2 - Close Commands:**

- Create phone keyboard shortcuts for frequent commands

- Use Telegram's quick reply feature for one-tap commands1. RFC CLOSE [SYMBOL]Generate this week's report.Đóng tất cả lệnh trên symbol cụ thể.

- Save this command list in your phone notes for quick reference

2. RFC CLOSE ALL BUY/SELL

**Recommended Shortcuts:**

- `st` → RFC STATUS3. RFC SL ENTRY [SYMBOL]```

- `lo` → RFC LISTORDER

- `ca` → RFC CLOSE ALL

- `se` → RFC SL ENTRY [SYMBOL]

- `start` → RFC START**Day 3 - Reply Commands:**RFC REPORT WEEKLY**Purpose:** Get detailed list of open orders only (shorter than /status).

- `stop` → RFC STOP

1. Find signal in Telegram

---

2. Reply with: RFC CLOSE```

## 📞 FAQ

3. Reply with: RFC SL ENTRY

**Q: Do I need the RFC prefix?**

A: Yes, all commands require the `RFC` prefix.```



**Q: Are commands case-sensitive?**  ---

A: No. `RFC CLOSE`, `rfc close`, and `Rfc Close` all work.

### RFC REPORT MONTHLY

**Q: What's the difference between reply and non-reply commands?**

A: Reply commands act on specific signal orders only. Non-reply commands act on all matching orders.**Remember: Master RFC commands for complete remote trading control!** 🚀📱



**Q: Can I undo a command?**  Generate this month's report.RFC CLOSE EURUSD**Usage:**

A: No, all commands execute immediately and cannot be undone.

````

**Q: Why doesn't RFC CLOSE work?**

A: You must reply to the original signal message when using reply-required commands.RFC REPORT MONTHLYRFC CLOSE XAUUSD\`\`\`

**Q: How do I close orders from a specific signal?** \`\`\`

A: Reply to that signal's Telegram message and type `RFC CLOSE`.

RFC CLOSE GBPUSD/orders

**Q: Do commands work 24/7?**

A: Yes, as long as EA and MT4 are running.### RFC REPORT \[SYMBOL]

**Q: What if I use wrong symbol name?** Generate symbol-specific report (last 30 days).\`\`\`\`\`\`

A: EA will respond "Not found order!" - use exact broker symbol names.

```

---

RFC REPORT EURUSD

## 🚀 Quick Start Guide

```

**Day 1 - Master Basic Commands:**

1. RFC STATUS (check status)**Ví dụ:\*\***&#x45;A Response:\*\*
2. RFC LISTORDER (view orders)
3. RFC START (enable trading)### RFC REPORT YYYY.MM.DD-YYYY.MM.DD
4. RFC STOP (disable trading)
5. RFC ACCOUNT (view settings)Generate report for custom date range.\`\`\`\`\`\`

**Day 2 - Learn Close Commands:**\`\`\`

1. RFC CLOSE \[SYMBOL] (close by symbol)
2. RFC CLOSE ALL BUY/SELL (close by direction)RFC REPORT 2024.10.01-2024.10.31RFC CLOSE EURUSD📦 OPEN ORDERS (5 positions)
3. RFC SL ENTRY \[SYMBOL] (breakeven)

````

**Day 3 - Master Reply Commands:**

1. Find signal message in Telegram→ Đóng tất cả lệnh EURUSD (cả BUY và SELL)━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━

2. Reply with: RFC CLOSE (close signal orders)

3. Reply with: RFC SL ENTRY (move to breakeven)### RFC EXPORT CSV YYYY.MM.DD-YYYY.MM.DD

4. Reply with: RFC CLOSE HALF (partial close)

Export trading data to CSV file for date range.```

**Week 2 - Advanced Usage:**

1. Practice percentage closes (RFC CLOSE 50%)```

2. Use TP level commands (RFC CLOSE TP1 HALF)

3. Generate reports (RFC REPORT DAILY)RFC EXPORT CSV 2024.10.01-2024.10.311️⃣ EURUSD BUY #12345678

4. Export data (RFC EXPORT CSV)

````

***

File saved to: `MT4/Files/RedFoxCopierPro_[daterange].csv`--- Lot: 0.20 | Entry: 1.0850

**Remember: Master these RFC commands for complete remote trading control from anywhere!** 🚀📱

\--- Current: 1.0885 | SL: 1.0800 | TP: 1.0950

### 📈 Market Information### **RFC CLOSE BUY \[SYMBOL]** / **RFC CLOSE SELL \[SYMBOL]** Profit: +$35.50 (+35 pips)

#### RFC MARKET \[SYMBOL] Duration: 2h 15m

Get real-time market data (Ask, Bid, Spread) for symbol.

```````đóng

RFC MARKET EURUSD

```2️⃣ EURUSD BUY #12345679



---```   Lot: 0.20 | Entry: 1.0860



## ❓ HelpRFC CLOSE BUY EURUSD   Current: 1.0885 | SL: 1.0810 | TP: 1.0960



### RFC HELPRFC CLOSE SELL GBPUSD   Profit: +$28.00 (+28 pips)

Display complete list of available commands with brief descriptions.

``````   Duration: 1h 45m

RFC HELP

```````

\------3️⃣ GBPUSD SELL #12345680

### 📋 Command Reference Table Lot: 0.15 | Entry: 1.2700

\| Category | Command | Description |### **RFC CLOSE x% \[SYMBOL]** Current: 1.2662 | SL: 1.2750 | TP: 1.2600

\|----------|---------|-------------|

\| **Status** | RFC STATUS | Bot running status | Profit: +$22.80 (+38 pips)

\| | RFC LISTORDER | List open orders |

\| | RFC ACCOUNT | Show full config |Đóng % lot cụ thể trên symbol. Duration: 3h 10m

\| **Close (No Reply)** | RFC CLOSE ALL | Close all orders |

\| | RFC CLOSE ALL BUY/SELL | Close by direction |

\| | RFC CLOSE \[SYM] | Close symbol |

\| | RFC CLOSE BUY/SELL \[SYM] | Close direction+symbol |\`\`\`4️⃣ XAUUSD BUY #12345681

\| | RFC CLOSE x% \[SYM] | Close percentage |

\| | RFC SL ENTRY \[SYM] | SL to breakeven |RFC CLOSE 50% EURUSD → Đóng 50% vị thế EURUSD Lot: 0.10 | Entry: 2650

\| | RFC SL \[SYM] TO \[PRICE] | SL to price |

\| **Close (Reply)** | RFC CLOSE | Close signal orders |RFC CLOSE 30% XAUUSD → Đóng 30% vị thế XAUUSD Current: 2638 | SL: 2620 | TP: 2720

\| | RFC CLOSE HALF | Close 50% |

\| | RFC CLOSE x% | Close percentage |RFC CLOSE 100% GBPUSD → Đóng tất cả GBPUSD Profit: -$12.00 (-12 points)

\| | RFC CLOSE TPx HALF | Close TP 50% |

\| | RFC CLOSE ENTRY 1/2 | Close entry |\`\`\` Duration: 45m

\| **Modify (Reply)** | RFC SL ENTRY | SL to breakeven |

\| | RFC UPDATE SL TO \[PRICE] | SL to price |

\| | RFC UPDATE TPx TO \[PRICE] | TP to price |

\| **Cancel** | RFC CANCEL ALL | Cancel all pending |\*\*Ví dụ:\*\*5️⃣ USDJPY SELL #12345682

\| | RFC CANCEL ALL BUY/SELL | Cancel by direction |

\| | RFC CANCEL (reply) | Cancel signal pending |\`\`\` Lot: 0.25 | Entry: 150.50

\| **Control** | RFC START | Enable trading |

\| | RFC STOP | Disable trading |RFC CLOSE 50% EURUSD Current: 150.10 | SL: 151.00 | TP: 149.50

\| **Filter** | RFC ALLOW ALL/BUY/SELL | Direction filter |

\| **Report** | RFC REPORT DAILY/WEEKLY/MONTHLY | Time reports | Profit: +$60.45 (+40 pips)

\| | RFC REPORT \[SYM] | Symbol report |

\| | RFC EXPORT CSV \[range] | Export data |Phản hồi: Duration: 4h 20m

\| **Market** | RFC MARKET \[SYM] | Market info |

\| **Help** | RFC HELP | Command list |Order #12345678 EURUSD BUY

\--- Original: 0.20 lot━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━

### ⚠️ Important Notes Closed: 0.10 lot (50%)💰 Total Floating P/L: +$134.75

1. **RFC Prefix Required**: All commands must start with `RFC` Remaining: 0.10 lot📊 Winning: 4 orders (+$146.75)
2. **Case Insensitive**: `RFC CLOSE`, `rfc close`, `Rfc Close` all work
3. **Reply vs Non-Reply**: Pay attention to which commands require replying to signal messages Profit: +$17.75📉 Losing: 1 order (-$12.00)
4. **Symbol Names**: Use exact broker symbol names (check Market Watch)
5. **SL Validation**: BUY orders require SL below entry; SELL orders require SL above entry\`\`\`\`\`\`
6. **Immediate Execution**: Commands execute instantly without confirmation
7. **No Undo**: Cannot reverse executed commands
8. **EA Must Be Running**: EA and MT4 must be active to process commands

**Khi nào dùng:\*\***&#x57;hen to use:\*\*

***

* Scale out từng phần- Quick order check

### 🔒 Security

* Chốt lời một phần- Get order ticket numbers
* Only authorized Telegram ID can execute commands
* Configure `TelegramChatID` in EA settings- Giảm exposure dần dần- Check order durations
* All commands are logged for audit
* Unauthorized attempts are reported- Review current prices vs entry

***

### 📱 Mobile Tips---

**Save Common Commands:**### **RFC SL ENTRY \[SYMBOL]**

* Create phone shortcuts for frequent commands
* Use Telegram quick reply templates### **/history** or **history**
* Save command list in phone notes

Chuyển SL về entry (hòa vốn) cho symbol cụ thể.

**Recommended Shortcuts:**

* `st` → RFC STATUS**Purpose:** Get recent closed trades history.
* `lo` → RFC LISTORDER
* `ca` → RFC CLOSE ALL\`\`\`
* `se` → RFC SL ENTRY

RFC SL ENTRY EURUSD**Usage:**

***

RFC SL ENTRY XAUUSD\`\`\`

### 📞 FAQ

```/history

**Q: Do I need the RFC prefix?**

A: Yes, all commands require `RFC` prefix./history 10  (last 10 trades)



**Q: What's the difference between reply and non-reply commands?****Ví dụ:**/history today (today's trades only)

A: Reply commands act on specific signal orders; non-reply commands act on all matching orders.

```

**Q: Can I undo a command?**

A: No, all commands execute immediately.RFC SL ENTRY EURUSD

**Q: Why doesn't RFC CLOSE work?\*\***&#x45;A Response:\*\*

A: You must reply to the original signal message when using RFC CLOSE alone.

Phản hồi:\`\`\`

**Q: How do I close orders from a specific signal?**

A: Reply to that signal's Telegram message and type RFC CLOSE.✅ #12345678 EURUSD BUY📜 TRADE HISTORY (Last 20 trades)

**Q: Do commands work 24/7?** Entry: 1.0850━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━

A: Yes, as long as EA and MT4 are running.

Old SL: 1.0800 (-50 pips risk)

***

New SL: 1.0850 (breakeven)✅ EURUSD BUY #12345670

### 🚀 Quick Start

Status: RISK-FREE ✅ Open: 1.0840 | Close: 1.0890

**Day 1 - Essential Commands:**

1. RFC STATUS\`\`\` Lot: 0.20 | SL: 1.0790 | TP: 1.0890
2. RFC LISTORDER
3. RFC CLOSE ALL Result: +$50.00 (+50 pips)
4. RFC START
5. RFC STOP--- Duration: 1h 25m

**Day 2 - Close Commands:** Closed: 2024-10-28 13:45

1. RFC CLOSE \[SYMBOL]
2. RFC CLOSE ALL BUY/SELL### **RFC SL \[SYMBOL] TO \[PRICE]**
3. RFC SL ENTRY \[SYMBOL]

✅ GBPUSD SELL #12345671

**Day 3 - Reply Commands:**

1. Find signal in TelegramChuyển SL đến giá cụ thể cho symbol. Open: 1.2750 | Close: 1.2700
2. Reply with: RFC CLOSE
3. Reply with: RFC SL ENTRY Lot: 0.15 | SL: 1.2800 | TP: 1.2700

\---\`\`\` Result: +$37.50 (+50 pips)

**Remember: Master RFC commands for complete remote trading control!** 🚀📱RFC SL EURUSD TO 1.0870 Duration: 2h 10m

RFC SL XAUUSD TO 2680 Closed: 2024-10-28 12:30

```

❌ XAUUSD BUY #12345672

**Validation:**   Open: 2660 | Close: 2640

- **BUY:** SL phải dưới giá hiện tại   Lot: 0.10 | SL: 2640 | TP: 2720

- **SELL:** SL phải trên giá hiện tại   Result: -$20.00 (-20 points) - Hit SL

   Duration: 35m

---   Closed: 2024-10-28 11:15



## 🚫 Lệnh Hủy Pending Orders✅ USDJPY SELL #12345673

   Open: 150.80 | Close: 150.30

### **RFC CANCEL ALL**   Lot: 0.25 | SL: 151.30 | TP: 150.30

   Result: +$125.00 (+50 pips)

Hủy TẤT CẢ lệnh chờ (pending).   Duration: 3h 45m

   Closed: 2024-10-28 10:00

```

RFC CANCEL ALL\[... 16 more trades ...]

````

━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━

---📊 SUMMARY (Last 20 trades)

Total Profit: +$245.50

### **RFC CANCEL ALL BUY** / **RFC CANCEL ALL SELL**Winning: 12 trades (+$380.00)

Losing: 8 trades (-$134.50)

Hủy tất cả pending BUY hoặc SELL.Win Rate: 60%

Average Win: +$31.67

```Average Loss: -$16.81

RFC CANCEL ALL BUYProfit Factor: 2.82

RFC CANCEL ALL SELL```

````

**When to use:**

\---- Review recent performance

* Check trade outcomes

#### **RFC CANCEL BUY \[SYMBOL]** / **RFC CANCEL SELL \[SYMBOL]**- Verify SL/TP hits

* Analyze patterns

Hủy pending theo hướng + symbol.

***

````

RFC CANCEL BUY EURUSD### **/balance** or **balance**

RFC CANCEL SELL GBPUSD

```**Purpose:** Quick balance check (minimal info).



---**Usage:**

````

### 📝 Lệnh Đóng/Sửa (Cần Reply)/balance

````

Các lệnh này yêu cầu **reply vào tin nhắn signal** gốc từ Telegram.

**EA Response:**

### **RFC CLOSE**```

💰 ACCOUNT BALANCE

Đóng tất cả lệnh từ signal được reply.

Balance: $10,245.50

**Cách dùng:**Equity: $10,380.25

1. Tìm tin nhắn signal trong TelegramMargin Used: $530.25

2. **Reply** vào tin nhắn đóFree Margin: $9,850.00

3. Gõ: `RFC CLOSE`

Floating P/L: +$134.75

---Today's P/L: +$245.50 (+2.45%)



### **RFC CLOSE HALF**📊 5 open orders

🔗 EA Status: ✅ RUNNING

Đóng 50% lệnh từ signal được reply.```



**Cách dùng (Reply vào signal):****When to use:**

```- Quick account check

RFC CLOSE HALF              → Đóng 50% tất cả lệnh- Before placing manual trades

RFC CLOSE TP1 HALF          → Đóng 50% TP1 thôi- Verify available margin

RFC CLOSE TP2 HALF          → Đóng 50% TP2 thôi

RFC CLOSE TP3 HALF          → Đóng 50% TP3 thôi---

````

### ❌ Close Orders Commands

***

#### **close** or **close all**

#### **RFC CLOSE x%**

**Purpose:** Close ALL open orders immediately.

Đóng % cụ thể từ signal được reply.

**Usage:**

**Cách dùng (Reply vào signal):**\`\`\`

````close

RFC CLOSE 30%               → Đóng 30% tất cảclose all

RFC CLOSE 75%               → Đóng 75% tất cả```

RFC CLOSE TP1 25%           → Đóng 25% TP1 thôi

RFC CLOSE TP2 50%           → Đóng 50% TP2 thôi**EA Response:**

````

⚠️ CLOSING ALL ORDERS...

***

Closing 5 orders...

#### **RFC CLOSE x.xx**━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━

Đóng lot cụ thể từ signal được reply.✅ Closed #12345678 EURUSD BUY

Profit: +$35.50

**Cách dùng (Reply vào signal):**

````✅

RFC CLOSE 0.05              → Đóng 0.05 lot   Profit: +$28.00

RFC CLOSE 0.10              → Đóng 0.10 lot

RFC CLOSE TP1 0.05          → Đóng 0.05 lot từ TP1✅ Closed #12345680 GBPUSD SELL

```   Profit: +$22.80



---✅ Closed #12345681 XAUUSD BUY

   Loss: -$12.00

### **RFC CLOSE ENTRY [1-2]**

✅ Closed #12345682 USDJPY SELL

Đóng entry order cụ thể từ signal.   Profit: +$60.45



**Cách dùng (Reply vào signal):**━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━

```✅ SUCCESS: Closed 5 orders

RFC CLOSE ENTRY 1           → Đóng entry đầu tiên💰 Total Result: +$134.75

RFC CLOSE ENTRY 2           → Đóng entry thứ hai📊 Winners: 4 | Losers: 1

````

New Balance: $10,134.75

\---\`\`\`

#### **RFC CANCEL\*\***&#x57;hen to use:\*\*

* Emergency exit (major news coming)

Hủy lệnh chờ từ signal được reply.- End of trading day

* System maintenance

**Cách dùng:**- Technical issues

1. Reply vào signal- Weekend closing
2. Gõ: `RFC CANCEL`

**⚠️ Warning:** This closes EVERYTHING. No confirmation required!

***

***

#### **RFC SL ENTRY**

#### **close \[symbol]**

Chuyển SL về entry cho lệnh từ signal được reply.

**Purpose:** Close all orders on specific symbol.

**Cách dùng:**

1. Reply vào signal**Usage:**
2. Gõ: \`RFC SL ENTRY\`\`\`\`

close EURUSD

\---close XAUUSD

close GBPUSD

#### **RFC UPDATE SL TO \[price]**\`\`\`

Chuyển SL đến giá cụ thể cho lệnh từ signal được reply.**Examples:**

**Cách dùng (Reply vào signal):\*\***&#x43;lose all EURUSD orders:\*\*

````

RFC UPDATE SL TO 1.0870Command: close EURUSD

RFC UPDATE SL TO 2680```

```

**EA Response:**

---```

⚠️ CLOSING EURUSD ORDERS...

### **RFC UPDATE TP[1-5] TO [price]**

Found 2 EURUSD orders

Chuyển TP đến giá cụ thể cho lệnh từ signal được reply.━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━



**Cách dùng (Reply vào signal):**✅ Closed #12345678 EURUSD BUY

```   Entry: 1.0850 | Exit: 1.0885

RFC UPDATE TP TO 1.0920   Profit: +$35.50

RFC UPDATE TP1 TO 1.0900

RFC UPDATE TP2 TO 1.0950✅ Closed #12345679 EURUSD BUY

RFC UPDATE TP3 TO 1.1000   Entry: 1.0860 | Exit: 1.0885

```   Profit: +$28.00



---━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━

✅ SUCCESS: Closed 2 EURUSD orders

## ⚡ Lệnh Điều Khiển EA💰 Total Profit: +$63.50



### **RFC START**Remaining Orders: 3 (other symbols)

```

Bật/cho phép EA phát hiện signal.

**When to use:**

```- Specific symbol shows reversal

RFC START- Symbol-specific news event

```- Technical issue on one pair

- Symbol reaching correlation limit

**Phản hồi:**

```---

✅ You have start BOT.

Status: 🟢 ACTIVE### **close buy** or **close sell**

Signal Detection: ENABLED

```**Purpose:** Close all BUY or all SELL orders (all symbols).



---**Usage:**

```

### **RFC STOP**close buy

close sell

Tắt/khóa EA phát hiện signal.```



```**Example - Close all BUY orders:**

RFC STOP```

```Command: close buy

```

**Phản hồi:**

```**EA Response:**

⚠️ You have stopped BOT.```

Status: 🔴 STOPPED⚠️ CLOSING ALL BUY ORDERS...

Signal Detection: DISABLED

Found 3 BUY orders across all symbols

Use "RFC START" to resume━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━

```

✅ Closed EURUSD BUY #12345678

**Lưu ý:** Lệnh đang mở vẫn active, chỉ signal mới bị chặn.   Profit: +$35.50



---✅ Closed EURUSD BUY #12345679

   Profit: +$28.00

## 🎯 Lệnh Lọc Hướng

✅ Closed XAUUSD BUY #12345681

### **RFC ALLOW ALL**   Loss: -$12.00



Cho phép cả BUY và SELL.━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━

✅ SUCCESS: Closed 3 BUY orders

```💰 Total Result: +$51.50

RFC ALLOW ALL

```Remaining: 2 SELL orders still open

```

**Phản hồi:**

```**When to use:**

✅ BOT is allow all order BUY SELL.- Market bias changes (bullish → bearish)

```- Cut all long positions

- Directional risk management

---- Clear one side before major news



### **RFC ALLOW BUY**---



Chỉ cho phép BUY (chặn SELL).### **close buy [symbol]** or **close sell [symbol]**



```**Purpose:** Close specific direction on specific symbol.

RFC ALLOW BUY

```**Usage:**

```

**Phản hồi:**close buy EURUSD

```close sell GBPUSD

✅ BOT is allow only order BUY.close buy XAUUSD

````

\---**Example:**

```

### **RFC ALLOW SELL**Command: close sell GBPUSD

```

Chỉ cho phép SELL (chặn BUY).

**EA Response:**

````

RFC ALLOW SELL⚠️ CLOSING GBPUSD SELL ORDERS...

```

Found 1 GBPUSD SELL order

**Phản hồi:**━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━

```

✅ BOT is allow only order SELL.✅ Closed #12345680 GBPUSD SELL

```   Entry: 1.2700 | Exit: 1.2662

   Profit: +$22.80 (+38 pips)

**Khi nào dùng:**

- Trading theo bias━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━

- Điều kiện thị trường chỉ phù hợp 1 hướng✅ SUCCESS: Closed 1 GBPUSD SELL order

- Quản lý rủi ro💰 Profit: +$22.80

```

---

**When to use:**

## 📊 Lệnh Báo Cáo- Specific symbol/direction reversal

- Reduce exposure on one side of pair

### **RFC REPORT DAILY**- Targeted exit strategy



Tạo báo cáo giao dịch hôm nay.---



```### **close profit**

RFC REPORT DAILY

```**Purpose:** Close all profitable orders only (keep losers).



---**Usage:**

```

### **RFC REPORT WEEKLY**close profit

close profit EURUSD  (only EURUSD profitable orders)

Tạo báo cáo tuần này.```



```**Example:**

RFC REPORT WEEKLY```

```Command: close profit

```

---

**EA Response:**

### **RFC REPORT MONTHLY**```

⚠️ CLOSING PROFITABLE ORDERS...

Tạo báo cáo tháng này.

Found 4 orders in profit

```━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━

RFC REPORT MONTHLY

```✅ Closed EURUSD BUY #12345678

   Profit: +$35.50

---

✅ Closed EURUSD BUY #12345679

### **RFC REPORT [SYMBOL]**   Profit: +$28.00



Tạo báo cáo theo symbol (30 ngày gần nhất).✅ Closed GBPUSD SELL #12345680

   Profit: +$22.80

```

RFC REPORT EURUSD✅ Closed USDJPY SELL #12345682

RFC REPORT XAUUSD   Profit: +$60.45

```

━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━

---✅ SUCCESS: Closed 4 profitable orders

💰 Total Profit Locked: +$146.75

### **RFC REPORT YYYY.MM.DD-YYYY.MM.DD**

Remaining: 1 order in loss (-$12.00)

Tạo báo cáo theo khoảng thời gian tùy chỉnh.```



```**When to use:**

RFC REPORT 2024.10.01-2024.10.31- Lock profits before weekend

RFC REPORT 2024.09.15-2024.10.15- Major news approaching

```- Reached daily profit target

- Market showing reversal signs

---- Want to keep losers for recovery



### **RFC EXPORT CSV YYYY.MM.DD-YYYY.MM.DD****Strategy Note:** Closing only winners leaves losers open - use carefully!



Export dữ liệu trading ra file CSV theo khoảng thời gian.---



```### **close loss**

RFC EXPORT CSV 2024.10.01-2024.10.31

```**Purpose:** Close all losing orders only (keep winners).



**Phản hồi:****Usage:**

````

📁 EXPORTING TO CSV...close loss

close loss XAUUSD (only XAUUSD losing orders)

Date Range: 2024.10.01 - 2024.10.31\`\`\`

Total Trades: 218

File: RedFoxCopierPro\_2024-10-01\_2024-10-31.csv**Example:**

````

✅ Export complete!Command: close loss

Location: MT4/Files/```

Size: 45 KB

```**EA Response:**

````

\---⚠️ CLOSING LOSING ORDERS...

### 📈 Lệnh Thông Tin Thị TrườngFound 1 order in loss

━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━

#### **RFC MARKET \[SYMBOL]**

✅ Closed XAUUSD BUY #12345681

Lấy dữ liệu thị trường real-time cho symbol. Entry: 2650 | Exit: 2638

Loss: -$12.00 (-12 points)

````

RFC MARKET EURUSD━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━

RFC MARKET XAUUSD✅ SUCCESS: Closed 1 losing order

```💰 Loss Stopped: -$12.00



**Ví dụ:**Remaining: 4 orders in profit (+$146.75)

````

RFC MARKET EURUSD

**When to use:**

Phản hồi:- Cut losses before worsening

📊 MARKET INFO EURUSD- Symbol showing continued weakness

* Risk reduction

🔹 Ask: 1.08850- Clear losing positions before news

🔹 Bid: 1.08845

🔹 Spread: 0.5 pips**Strategy Note:** Good for cutting losers while protecting winners.

Time: 2024-10-28 14:35:22---

````

## 🔧 Modify Orders Commands

---

### **move sl entry [symbol]**

## ❓ Lệnh Trợ Giúp

**Purpose:** Move stop loss to entry price (breakeven) for specified symbol.

### **RFC HELP**

**Usage:**

Hiển thị danh sách đầy đủ các lệnh có sẵn.```

move sl entry EURUSD

```move sl to entry GBPUSD

RFC HELPmove stop loss to entry XAUUSD

````

**Phản hồi:** Danh sách đầy đủ tất cả lệnh với giải thích ngắn gọn.**Accepted Variations:**

* `move sl entry`

\---- `move sl to entry`

* `move stop loss to entry`

### 💼 Tình Huống Thực Tế

**Example:**

#### **Tình huống 1: Trước Tin Quan Trọng (NFP)**\`\`\`

Command: move sl entry EURUSD

**Mục tiêu:** Bảo vệ tài khoản trước tin tác động mạnh.\`\`\`

````**ea

5 phút trước NFP:```

🔧 MOVING SL TO ENTRY - EURUSD

1. Kiểm tra vị thế:

   RFC LISTORDERFound 2 EURUSD orders

━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━

2. Chuyển tất cả về hòa vốn:

   RFC SL ENTRY EURUSD✅ Order #12345678 EURUSD BUY

   RFC SL ENTRY GBPUSD   Entry: 1.0850

   RFC SL ENTRY XAUUSD   Old SL: 1.0800 (-50 pips risk)

   New SL: 1.0850 (breakeven)

3. Dừng giao dịch mới:   Status: RISK-FREE ✅

   RFC STOP

✅ Order #12345679 EURUSD BUY

✅ Kết quả: Được bảo vệ khỏi tin tức   Entry: 1.0860

```   Old SL: 1.0810 (-50 pips risk)

   New SL: 1.0860 (breakeven)

---   Status: RISK-FREE ✅



### **Tình huống 2: Chốt Lời Nhanh**━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━

✅ SUCCESS: Moved SL to entry for 2 orders

**Mục tiêu:** Khóa lợi nhuận EURUSD sau move mạnh.🛡️ Both trades now risk-free!

````

```

1. Kiểm tra lợi nhuận EURUSD:**When to use:**

   RFC LISTORDER- Order in profit, want to protect

- Lock in at least breakeven

2. Đóng 50% để khóa lời:- Before major news

   RFC CLOSE 50% EURUSD- Overnight/weekend protection

- Professional risk management

3. Chuyển SL hòa vốn cho phần còn lại:

   RFC SL ENTRY EURUSD**Note:** EA automatically adds spread to ensure true breakeven (no loss on close).



✅ Kết quả: Khóa 50%, phần còn lại không rủi ro---

```

#### **move sl to \[price] \[symbol]**

***

**Purpose:** Move stop loss to specific price level.

#### **Tình huống 3: Symbol Đảo Chiều**

**Usage:**

**Mục tiêu:** Thoát XAUUSD đang đảo chiều.\`\`\`

move sl to 1.0870 EURUSD

````move

1. Xác nhận vị thế XAUUSD:move sl to 1.2680 GBPUSD

   RFC LISTORDER```



2. Đóng tất cả XAUUSD:**Example:**

   RFC CLOSE XAUUSD```

Command: move sl to 1.0870 EURUSD

3. Xác nhận đã đóng:```

   RFC LISTORDER

**EA Response:**

✅ Kết quả: Ra khỏi symbol đảo chiều```

```🔧 MOVING SL TO 1.0870 - EURUSD



---Found 2 EURUSD BUY orders

━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━

### **Tình huống 4: Thay Đổi Bias**

✅ Order #12345678 EURUSD BUY

**Mục tiêu:** Thị trường chuyển bearish, thoát long.   Entry: 1.0850

   Current: 1.0885

```   Old SL: 1.0800

1. Đóng tất cả BUY:   New SL: 1.0870 (+20 pips locked)

   RFC CLOSE ALL BUY   Status: ✅ UPDATED



2. Lọc chỉ SELL:✅ Order #12345679 EURUSD BUY

   RFC ALLOW SELL   Entry: 1.0860

   Current: 1.0885

3. Xác nhận:   Old SL: 1.0810

   RFC STATUS   New SL: 1.0870 (+10 pips locked)

   Status: ✅ UPDATED

✅ Kết quả: Đồng bộ với xu hướng mới

```━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━

✅ SUCCESS: Moved SL for 2 EURUSD orders

---💰 Minimum profit locked: $20 + $10 = $30

````

#### **Tình huống 5: Quản Lý Signal Cụ Thể**

**Validation:**

**Mục tiêu:** Quản lý signal bằng cách reply.- **BUY orders:** New SL must be below current price

* **SELL orders:** New SL must be above current price

````-

1. Tìm tin nhắn signal trong Telegram

**When to use:**

2. Reply: RFC CLOSE TP1 HALF- Lock in specific profit level

   (Đóng 50% TP1 của signal đó)- Adjust SL based on chart patterns

- Trail manually to support/resistance

3. Reply tiếp: RFC SL ENTRY- Risk management adjustments

   (Chuyển phần còn lại về hòa vốn)

---

✅ Kết quả: Scale out an toàn

```### **move tp [price] [symbol]**



---**Purpose:** Move take profit to specific price level.



## ⚠️ Lỗi Thường Gặp**Usage:**

````

#### ❌ **Lỗi 1: Quên Prefix RFC**move tp 1.0920 EURUSD

move tp 2720 XAUUSD

\*\*Sai:\*\*move take profit 1.2580 GBPUSD

````

CLOSE ALL  ❌

STATUS     ❌**Example:**

LISTORDER  ❌```

```Command: move tp 1.0920 EURUSD

```

**Đúng:**

```**EA Response:**

RFC CLOSE ALL  ✅```

RFC STATUS     ✅🎯 MOVING TP TO 1.0920 - EURUSD

RFC LISTORDER  ✅

```Found 2 EURUSD BUY orders

━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━

---

✅ Order #12345678 EURUSD BUY

### ❌ **Lỗi 2: Lệnh Reply Không Reply**   Entry: 1.0850

   Old TP: 1.0950 (+100 pips)

**Sai:**   New TP: 1.0920 (+70 pips)

```   Status: ✅ UPDATED (target reduced)

RFC CLOSE  (gửi tin nhắn mới, không reply)  ❌

```✅ Order #12345679 EURUSD BUY

   Entry: 1.0860

**Đúng:**   Old TP: 1.0960 (+100 pips)

```   New TP: 1.0920 (+60 pips)

RFC CLOSE  (REPLY vào tin nhắn signal)  ✅   Status: ✅ UPDATED (target reduced)

```

━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━

---✅ SUCCESS: Moved TP for 2 EURUSD orders

📉 Note: Profit targets reduced (conservative exit)

### ❌ **Lỗi 3: Tên Symbol Sai**```



**Sai:****Validation:**

```- **BUY orders:** New TP must be above entry price

RFC CLOSE EUR/USD  ❌- **SELL orders:** New TP must be below entry price

RFC CLOSE GOLD     ❌

```**When to use:**

- Extend profit target (trend continuing)

**Đúng:**- Reduce target (reversal signs)

```- Adjust based on support/resistance

RFC CLOSE EURUSD  ✅- Scale out manually at levels

RFC CLOSE XAUUSD  ✅

```---



---## ⚡ EA Control Commands



### ❌ **Lỗi 4: SL Không Hợp Lệ**### **enable trading** or **disable trading**



**Sai:****Purpose:** Enable or disable new trade execution (keep existing orders).

```

EURUSD BUY @ 1.0850**Usage:**

RFC SL EURUSD TO 1.0900  ❌ (SL trên entry cho BUY!)```

```enable trading

disable trading

**Đúng:**```

```

RFC SL EURUSD TO 1.0870  ✅ (SL dưới entry)**Example - Disable:**

````

Command: disable trading

**Nguyên tắc:**\`\`\`

* BUY: SL phải < Entry
* SELL: SL phải > Entry**EA Response:**

````

---⚠️ TRADING DISABLED



## ✅ Thực Hành TốtNew signals will be ignored

Existing orders remain active

### ✅ **1. Kiểm Tra Thường Xuyên**Modifications still allowed



```Status: 🔴 TRADING STOPPED

Sáng:    RFC STATUS + RFC LISTORDERReason: Manual command

Trưa:    RFC LISTORDERTime: 2024-10-28 14:30

Tối:     RFC REPORT DAILY

```Use "enable trading" to resume

````

#### ✅ **2. Dùng Hòa Vốn Nhanh**

**Example - Enable:**

Khi lời +20-30 pips:\`\`\`

````command:

RFC SL ENTRY [SYMBOL]```

````

**EA Response:**

#### ✅ **3. Dừng Trước Tin Quan Trọng**\`\`\`

✅ TRADING ENABLED

```

30 phút trước tin:EA will now process new signals

1. RFC SL ENTRY [tất cả symbols]Ready to open orders

2. RFC STOPAll features active

```

Status: 🟢 TRADING ACTIVE

#### ✅ **4. Scale Out Dần**Resumed: 2024-10-28 14:35

```
```

1. RFC CLOSE 33% EURUSD (chốt 1/3)**When to use:**
2. RFC SL ENTRY EURUSD (bảo vệ)- Pause before major news
3. Để phần còn lại chạy TP- End of trading session

````-

- Testing/debugging

### ✅ **5. Review Báo Cáo Hàng Tuần**- Temporary suspension



```**Note:** Existing orders continue (not closed). Only NEW signals are blocked.

Mỗi thứ 6:

RFC REPORT WEEKLY---

````

#### **restart ea**

#### ✅ **6. Dùng Lọc Hướng Chiến Lược**

**Purpose:** Reload EA configuration and restart processes.

````

Thị trường tăng: RFC ALLOW BUY**Usage:**

Thị trường giảm: RFC ALLOW SELL```

Sideway: RFC ALLOW ALLrestart ea

```restart

````

***

**EA Response:**

### 📱 Mẹo Dùng Trên Mobile\`\`\`

🔄 RESTARTING EA...

#### **Lưu Lệnh Thường Dùng:**

Saving current state...

Tạo shortcuts trên điện thoại:Reloading configuration...

````reconnecting

"st" → RFC STATUSReinitializing features...

"lo" → RFC LISTORDER

"ca" → RFC CLOSE ALL✅ EA RESTARTED SUCCESSFULLY

"se" → RFC SL ENTRY

"start" → RFC STARTVersion: v1.66

"stop" → RFC STOPTelegram: ✅ Connected

```Orders Loaded: 5

Status: ✅ RUNNING

### **Telegram Quick Replies:**

Configuration reloaded from file

Lưu làm templates:Ready for trading

- RFC STATUS```

- RFC LISTORDER

- RFC CLOSE ALL**When to use:**

- RFC STOP- After changing configuration file

- RFC START- Connection issues

- Feature not working correctly

### **Lệnh 1-Chạm:**- Memory cleanup

- Manual reset needed

Dùng menu bot commands của Telegram cho lệnh hay dùng.

**Note:** Orders are not closed, just EA state is refreshed.

---

---

## 📊 Bảng Tra Lệnh Nhanh

## ⚙️ Configuration Commands

````

═══════════════════════════════════════════════════### **show config** or **config**

REDFOX COPIER PRO - BẢNG TRA LỆNH RFC

═══════════════════════════════════════════════════**Purpose:** Display current EA configuration.

📊 TRẠNG THÁI**Usage:**

RFC STATUS Trạng thái bot\`\`\`

RFC LISTORDER Lệnh đang mởshow config

RFC ACCOUNT Cấu hình đầy đủconfig

settings

⚡ ĐIỀU KHIỂN\`\`\`

RFC START Bật bot

RFC STOP Tắt bot**EA Response:**

RFC ALLOW ALL Cho phép BUY & SELL\`\`\`

RFC ALLOW BUY Chỉ BUY⚙️ EA CONFIGURATION

RFC ALLOW SELL Chỉ SELL━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━

❌ ĐÓNG (Không Reply)💰 LOT & RISK SETTINGS

RFC CLOSE ALL Tất cảAuto Lot: ENABLED

RFC CLOSE ALL BUY/SELL Theo hướngMax Risk Per Trade: 1.0%

RFC CLOSE \[SYM] Theo symbolBalance Mode: BALANCE

RFC CLOSE BUY/SELL \[SYM] Hướng + symbolMax Lot: 0.50

RFC CLOSE x% \[SYM] Theo %Min Lot: 0.01

RFC SL ENTRY \[SYM] SL về entry

RFC SL \[SYM] TO \[PRICE] SL đến giá🎯 DIRECTIONAL RISK

Preset: PRESET\_DISABLED

❌ ĐÓNG (Cần Reply)Buy Multiplier: 1.0x

RFC CLOSE Đóng signalSell Multiplier: 1.0x

RFC CLOSE HALF Đóng 50%

RFC CLOSE x% Đóng %📊 SL & TP CONFIGURATION

RFC CLOSE TP1/2/3 HALF Đóng TP 50%SL Mode: SAME\_AS\_SIGNAL

RFC CLOSE ENTRY 1/2 Đóng entryTP Mode: SAME\_AS\_SIGNAL

Number of TP Levels: 3

🔧 SỬA (Cần Reply)

RFC SL ENTRY SL hòa vốn📦 ORDER MANAGEMENT

RFC UPDATE SL TO \[PRICE] SL đến giáAllow Duplicates: NO

RFC UPDATE TP\[1-5] TO \[PRICE] TP đến giáMax Orders Per Symbol: 3

Max Total Orders: 15

🚫 HỦYMax Total Risk: 10%

RFC CANCEL ALL Hủy tất cả pending

RFC CANCEL ALL BUY/SELL Theo hướng🔧 CLOSE & MODIFY

RFC CANCEL BUY/SELL \[SYM] Hướng + symbolPartial Close at TP: YES

RFC CANCEL (reply) Hủy signal pendingClose % at TP1: 33%

Close % at TP2: 33%

📊 BÁO CÁOMove SL to Entry: YES

RFC REPORT DAILY/WEEKLY/MONTHLY Báo cáo thời gian

RFC REPORT \[SYM] Báo cáo symbol📈 TRAILING STOP

RFC REPORT YYYY.MM.DD-YYYY.MM.DD Khoảng thời gianEnabled: YES

RFC EXPORT CSV YYYY.MM.DD-YYYY.MM.DD Export CSVTrailing Distance: 40 pips

Trailing Step: 10 pips

📈 KHÁCStart Threshold: 50 pips

RFC MARKET \[SYM] Thông tin thị trường

RFC HELP Danh sách lệnh🎯 FILTERS

Symbol Filter: YES

═══════════════════════════════════════════════════ Allowed: EURUSD, GBPUSD, XAUUSD

💡 MẸO: Tất cả lệnh bắt đầu bằng "RFC"Time Filter: YES

📱 Lưu vào notes điện thoại để tra nhanh! Hours: 08:00 - 20:00

═══════════════════════════════════════════════════ Days: Mon-Fri

```content



---🛡️ PROTECTION

Daily Loss Limit: $200 (2%)

## 📞 Câu Hỏi Thường GặpDaily Profit Target: $500 (5%)

Report: ENABLED (Daily)

**H: Lệnh có cần prefix "RFC" không?**Dashboard: ENABLED

Đ: Có! Tất cả lệnh phải bắt đầu bằng `RFC`.

━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━

**H: Lệnh có phân biệt hoa thường?**💾 Config File: config.json

Đ: Không. `RFC CLOSE`, `rfc close`, `Rfc Close` đều được.📅 Last Updated: 2024-10-28 10:00

```

**H: Khác nhau giữa lệnh reply và không reply?**

Đ:**When to use:**

* **Lệnh reply**: Tác động lên signal cụ thể (phải reply tin nhắn signal)- Verify current settings
* **Lệnh không reply**: Tác động lên tất cả lệnh thỏa điều kiện- Before making changes
* Troubleshooting

**H: Có thể hoàn tác lệnh không?**- Document configuration

Đ: Không. Lệnh thực thi ngay. Cẩn thận với `RFC CLOSE ALL`!- Share setup with others

**H: Tại sao "RFC CLOSE" không hoạt động?**---

Đ: Bạn phải **reply** vào tin nhắn signal gốc khi dùng `RFC CLOSE` đơn lẻ.

#### **help** or **/help**

**H: Làm sao đóng lệnh của signal cụ thể?**

Đ: Reply vào tin nhắn signal đó và gõ `RFC CLOSE`.**Purpose:** Show list of available commands.

**H: Lệnh có hoạt động từ mọi thiết bị?\*\***&#x55;sage:\*\*

Đ: Có! Điện thoại, tablet, máy tính - bất cứ nơi nào có Telegram.\`\`\`

help

**H: Nếu EA offline thì sao?**/help

Đ: Lệnh không thực thi. EA phải đang chạy và kết nối Telegram.commands

```

**H: Có thể lên lịch lệnh không?**

Đ: Không trực tiếp. Dùng time filters hoặc profit/loss limits của EA để tự động.**EA Response:**

```

\*\*H: Có thể xem lịch sử lệnh không?\*\*📚 REDFOX COPIER PRO - COMMAND REFERENCE

Đ: Có, trong chat history Telegram. EA cũng log tất cả lệnh vào file.━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━

\---📊 STATUS & INFORMATION

/status - Full account status

**Nhớ rằng: Làm chủ RFC commands để điều khiển trading hoàn toàn từ xa! 🚀📱**/orders - List open orders

/history - Recent closed trades /balance - Quick balance check

❌ CLOSE ORDERS close - Close all orders close \[symbol] - Close symbol orders close buy/sell - Close by direction close buy/sell \[symbol] - Close direction+symbol close profit - Close profitable only close loss - Close losing only

🔧 MODIFY ORDERS move sl entry \[symbol] - Move SL to breakeven move sl to \[price] \[symbol] - Move SL to price move tp \[price] \[symbol] - Move TP to price

⚡ EA CONTROL enable trading - Enable new trades disable trading - Stop new trades restart ea - Restart EA

⚙️ CONFIGURATION show config - Display settings help - This help message

━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 💡 TIP: Commands are case-insensitive 📱 Available 24/7 from your phone!

For detailed guide, see: /help \[command] Example: /help close

```

---

## 💼 Real-World Usage Scenarios

### **Scenario 1: Before Major News (NFP)**

**Goal:** Protect account before high-impact news.

**Timeline:**
```

5 minutes before NFP:

1. Check current positions: Command: /status
2. Move all SL to breakeven: Command: move sl entry EURUSD Command: move sl entry GBPUSD Command: move sl entry XAUUSD
3. Close any orders in loss: Command: close loss
4. Disable new trading: Command: disable trading

Result: Protected from news spike, profitable orders risk-free

```

---

### **Scenario 2: End of Trading Day**

**Goal:** Close positions before market close, lock profits.

**Actions:**
```

15 minutes before close:

1. Check performance: Command: /status
2. Close all profitable positions: Command: close profit
3. Check remaining (losers): Command: /orders
4. Decide: Close all or hold overnight Option A: close all Option B: move sl entry \[symbol] (for each)
5. Disable trading: Command: disable trading

Next Morning: Command: enable trading

```

---

### **Scenario 3: Symbol Reversal**

**Goal:** EURUSD showing strong reversal, exit all EUR positions.

**Actions:**
```

1. Check EUR positions: Command: /orders
2. Close all EURUSD: Command: close EURUSD
3. Verify closure: Command: /status

Result: Quick exit from reversing symbol

```

---

### **Scenario 4: Profit Protection**

**Goal:** Lock in profits after strong move.

**Actions:**
```

GBPUSD moved +80 pips in your favor:

1. Check current profit: Command: /orders
2. Move SL to lock 50 pips: Command: move sl to 1.2750 GBPUSD
3. Verify: Command: /orders

Result: Minimum 50 pips locked, let rest run

```

---

### **Scenario 5: Risk Reduction**

**Goal:** Too many orders open, reduce exposure.

**Actions:**
```

1. Check total orders: Command: /status (Shows: 15 orders - at max!)
2. Close all losing orders: Command: close loss
3. Close one direction: Command: close sell
4. Verify risk: Command: /status

Result: Reduced order count and risk exposure

```

---

### **Scenario 6: Weekend Preparation**

**Goal:** Prepare for weekend gap risk.

**Actions:**
```

Friday 4:00 PM:

1. Review week: Command: /history
2. Check open orders: Command: /orders
3. Move all to breakeven: Command: move sl entry EURUSD Command: move sl entry GBPUSD \[repeat for all symbols]
4. Optional: Close all Command: close all
5. Disable trading: Command: disable trading

Monday Morning: Command: enable trading

```

---

## ⚠️ Common Mistakes & Solutions

### ❌ **Mistake 1: Wrong Symbol Name**

**Bad:**
```

Command: close EUR/USD

```

**Error:**
```

❌ ERROR: Symbol not found Symbol entered: EUR/USD Available symbols: EURUSD, GBPUSD, XAUUSD

Please use exact broker symbol names Example: close EURUSD

```

**Solution:** Use exact broker symbol (check Market Watch).

---

### ❌ **Mistake 2: Invalid SL Price**

**Bad:**
```

Order: EURUSD BUY @ 1.0850 Command: move sl to 1.0900 EURUSD (SL above entry for BUY = invalid!)

```

**Error:**
```

❌ ERROR: Invalid SL level Order: EURUSD BUY @ 1.0850 Requested SL: 1.0900 Problem: SL must be BELOW entry for BUY orders

Please enter valid SL:

* BUY orders: SL < Entry Price
* SELL orders: SL > Entry Price

```

**Solution:** Check order direction and set SL on correct side.

---

### ❌ **Mistake 3: Command Typo**

**Bad:**
```

Command: clsoe all

```

**Error:**
```

❌ ERROR: Command not recognized You entered: clsoe all Did you mean: close all ?

Type 'help' for list of commands

```

**Solution:** Check spelling, use `help` to verify commands.

---

### ❌ **Mistake 4: No Symbol Specified**

**Bad:**
```

Command: move sl entry (Which symbol?)

```

**Error:**
```

❌ ERROR: Symbol required Command: move sl entry \[SYMBOL]

Example: move sl entry EURUSD

Available symbols with open orders:

* EURUSD (2 orders)
* GBPUSD (1 order)
* XAUUSD (1 order)

```

**Solution:** Always specify symbol for modify commands.

---

### ❌ **Mistake 5: Trading Disabled**

**Action:**
```

Command: enable trading (Already enabled)

```

**Response:**
```

ℹ️ INFO: Trading already enabled Status: 🟢 ACTIVE EA is processing signals normally

No action needed

```

**Note:** Not an error, just confirmation.

---

## ✅ Best Practices

### ✅ **1. Check Status Regularly**

```

Morning: /status (review overnight) Midday: /orders (check progress) Evening: /status (daily summary)

```

### ✅ **2. Use Breakeven Quickly**

When order is +20-30 pips:
```

move sl entry \[symbol]

```
Risk-free trades = stress-free trading!

### ✅ **3. Close Profits Before News**

Major news in 30min:
```

close profit (lock gains) disable trading (avoid news)

```

### ✅ **4. Review History Weekly**

```

Every Friday: /history Analyze wins/losses Identify patterns

```

### ✅ **5. Always Verify After Commands**

```

Action: close EURUSD Verify: /orders (check EURUSD gone)

```

### ✅ **6. Save Important Configs**

```

/show config (screenshot or save) Document why you use those settings

```

---

## 📱 Mobile Usage Tips

### **Quick Commands for Phone:**

**Most Used (Save as shortcuts):**
```

/status /orders close profit move sl entry enable trading disable trading

```

**Create Keyboard Shortcuts (iOS/Android):**
```

"st" → /status "or" → /orders "cp" → close profit "cl" → close loss "en" → enable trading "di" → disable trading

```

**Use Telegram Quick Reply:**
- Save frequent commands
- One-tap execution
- Faster than typing

---

## 🔒 Security Notes

### **Command Authorization:**

✅ Only **your Telegram ID** can control EA
❌ Random users cannot send commands
✅ Commands logged for audit
✅ Invalid attempts reported

**Setup:**
```

In EA settings: TelegramChatID = "your\_chat\_id"

Only this ID can execute commands

```

**Get Your Chat ID:**
```

1. Start EA
2. Send any message to bot
3. EA replies with your Chat ID
4. Copy ID to EA settings

```

---

## 🎓 Command Combinations

### **Professional Trade Management Flow:**

**Opening Phase (Signal Received):**
```

1. EA auto-opens (no command needed)
2. Verify: /orders

```

**Management Phase (In Profit):**
```

1. Check: /orders
2. Protect: move sl entry \[symbol]
3. Verify: /orders

```

**Exit Phase (Target Reached):**
```

1. Check: /status
2. Close: close profit
3. Verify: /balance

```

**End of Day:**
```

1. Review: /history
2. Close: close all OR move sl entry
3. Stop: disable trading

```

**Next Day:**
```

1. Resume: enable trading
2. Check: /status

```

---

## 📊 Command Response Times

| Command | Response Time | Data Size |
|---------|---------------|-----------|
| /status | 1-2 seconds | Large |
| /orders | 1 second | Medium |
| /balance | < 1 second | Small |
| close commands | 1-3 seconds | Medium |
| move commands | 1-2 seconds | Small |
| enable/disable | < 1 second | Small |

**Note:** Response time depends on:
- Number of orders
- Network speed
- Broker connection
- EA load

---

## 🚀 Quick Start Guide

### **Day 1: Basic Commands**

Learn these 5 commands:
```

1. /status (check account)
2. /orders (see positions)
3. close all (emergency exit)
4. enable trading (start)
5. disable trading (stop)

```

### **Day 2: Close Commands**

Practice:
```

1. close profit
2. close loss
3. close EURUSD
4. close buy

```

### **Day 3: Modify Commands**

Master:
```

1. move sl entry \[symbol]
2. move sl to \[price] \[symbol]

```

### **Week 2: Advanced**

Combine commands:
```

1. Multi-symbol management
2. Direction-specific closes
3. Profit protection strategies

```

---

## 📞 FAQ

**Q: Are commands case-sensitive?**
A: No. `close`, `Close`, `CLOSE` all work.

**Q: Can I undo a command?**
A: No. All commands execute immediately. Be careful with `close all`!

**Q: What if command fails?**
A: EA sends error message explaining why. Fix issue and retry.

**Q: Can I schedule commands?**
A: Not directly. Use EA's time filters or profit/loss limits for automation.

**Q: Commands work from any device?**
A: Yes! Phone, tablet, computer - anywhere with Telegram.

**Q: What if I'm in a meeting and can't type?**
A: Set up keyboard shortcuts for one-tap commands.

**Q: Do commands work 24/7?**
A: Yes, as long as EA and MT4 are running.

**Q: Can I see command history?**
A: Yes, in Telegram chat history. EA also logs all commands to file.

---

## 📋 Command Cheat Sheet (Print/Save)

```

═══════════════════════════════════════════════════ REDFOX COPIER PRO - COMMAND CHEAT SHEET ═══════════════════════════════════════════════════

📊 STATUS /status → Full account info /orders → Open orders only /balance → Quick balance /history → Recent trades

❌ CLOSE close → Close ALL close \[SYM] → Close symbol close buy → Close all BUY close sell → Close all SELL close buy \[SYM] → Close BUY on symbol close profit → Close winners close loss → Close losers

🔧 MODIFY move sl entry \[SYM] → SL to breakeven move sl to \[PRICE] \[SYM] → SL to price move tp \[PRICE] \[SYM] → TP to price

⚡ CONTROL enable trading → Start EA disable trading → Stop EA restart ea → Restart

⚙️ CONFIG show config → View settings help → Show all commands

═══════════════════════════════════════════════════ 💡 TIP: Save this to your phone notes! ═══════════════════════════════════════════════════

```

---

**Remember: With Telegram commands, you have complete control from anywhere in the world! 🌍📱**

Master these commands for professional, efficient trading management! 🚀
```

{% endhint %}


# \[Pro] Multi-Trade Options

**B1. Config EA with input**

\+ **Number open order by TP(Max: 5)**: 3 (open 3 entry with TP1,TP2,TP3)

1\. **Config LOTSIZE  MODE** :

&#x20;   -> **AUTO\_LOT**: auto calculate lot size by % of balance risk in one trade

&#x20;        -> **please set % risk for each open entry TP**

<figure><img src="https://336892245-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FtVjBgAJnVI2mruGw1wLX%2Fuploads%2FnHDjyhyKguvpfXvbz5Rg%2Fimage.png?alt=media&amp;token=08a431e0-308f-4768-af43-7ffa3cf9a127" alt=""><figcaption></figcaption></figure>

&#x20;   -> **FIXED\_LOTSIZE**: use lotsize by config

&#x20;        -> **please set lotsize for each entry TP**

<figure><img src="https://336892245-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FtVjBgAJnVI2mruGw1wLX%2Fuploads%2F2aI58vRU0h6f45VqyMsW%2Fimage.png?alt=media&amp;token=c01e2dbf-52e4-47ab-b44b-f146c936f06c" alt=""><figcaption></figcaption></figure>

**2. Use any format signal below to open new order**

AUDUSD (SELL or BUY) NOW  0.73117\
TP1 0.72677\
TP2 0.72237\
TP3  0.71357\
SL   0.74000

\==================================

(SELL or BUY)  AUDUSD NOW  0.73117

TP1 0.72677

TP2 0.72237

TP3  0.71357

SL   0.74000

\==================================

(SELL or BUY) AUDUSD NOW  0.73117

TP 1 0.72677

TP 2 0.72237

TP 3  0.71357

SL   0.74000

\==================================

AUDUSD  (SELL or BUY) NOW  0.73117

TP 1 0.72677

TP 2 0.72237

TP 3  0.71357

SL   0.74000

\==================================

AUDUSD (SELL or BUY) NOW @ 0.73117

sl @  0.74000

tp 1 : 0.72677

tp 2 :  0.72237

tp 3 : 0.71357

\==================================

(SELL or BUY)  AUDUSD  NOW @ 0.73117

sl @  0.74000

tp 1 : 0.72677

tp 2 :  0.72237

tp 3 : 0.71357

\==================================

Ask about format other. Contact to telegram <https://t.me/RedFox_Support>


# \[Pro]Open New Order With TP SL As Number Of Pips

{% hint style="info" %}
You can use only pips or combine both price and pips
{% endhint %}

{% tabs %}
{% tab title="Use Syntax Format" %}

```
TP: x pips
SL: x pips
* x is number pips open
```

Combine both price and pips

```
TP: x pips
TP: y
SL: x pips
* x is number pips open
* y is price
```

{% endtab %}

{% tab title="Example" %}
XAUUSD BUY 1928.924&#x20;

TP: 20pips&#x20;

TP: 30pips&#x20;

TP: 60pips&#x20;

SL: 40pips

\-------------Use both price and pips---------------

XAUUSD BUY 1928.924&#x20;

TP: 1930.853&#x20;

TP: 30pips&#x20;

TP: 60pips&#x20;

SL: 40pips
{% endtab %}
{% endtabs %}


# Open New Order With A TP SL As Prices

**B1. Config EA with input**

&#x20;  **+ Number open order by TP: 1**

<figure><img src="https://336892245-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FtVjBgAJnVI2mruGw1wLX%2Fuploads%2Fbq2sP6uQngiEmo9pRC7B%2Fimage.png?alt=media&amp;token=7bd725ab-cd79-46c3-b90a-683e98bd24bd" alt=""><figcaption></figcaption></figure>

### Use Config LotSize

&#x20;   -> **AUTO\_LOT**: auto calculate lot size by % of balance risk in one trade

&#x20;        -> please set % risk for each entry TP

<figure><img src="https://336892245-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FtVjBgAJnVI2mruGw1wLX%2Fuploads%2FdHbs1HkvUdlRoCh3Sbe5%2Fimage.png?alt=media&amp;token=cf998a9f-58ec-441a-a6db-e6f707aed9a2" alt=""><figcaption></figcaption></figure>

&#x20;   -> **FIXED\_LOTSIZE**: use lotsize by config

&#x20;        -> please set lotsize for each entry TP

<figure><img src="https://336892245-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FtVjBgAJnVI2mruGw1wLX%2Fuploads%2F14Fiev3LGV8cg9Vd7QGh%2Fimage.png?alt=media&amp;token=b134892e-5aaf-4350-85b1-d878c8282494" alt=""><figcaption></figcaption></figure>

**2. Use any format signal below to open new order**

XAUUSD BUY@ 1814

TP 1819

SL 1809

\==================================

XAUUSD BUY @1814

TP 1819

SL 1809

\==================================

AUDUSD (SELL or BUY) @0.73117

TP 0.71357

SL 0.74000

\==================================


# Open New Order Without TP SL

{% hint style="info" %}
Open New Order without TP OR SL
{% endhint %}

**B1. Config EA with input**

&#x20;  **\* Number open order by TP: 1**

&#x20;  **\* Skip Open Order Without TP AND SL: False**

![](https://files.gitbook.com/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FtVjBgAJnVI2mruGw1wLX%2Fuploads%2F2aWILMKEbs0zfDui7pM9%2Fimage.png?alt=media\&token=b51f4ef7-fe80-41c2-a9e9-e6f3bf961c70)

**2. Use any format signal below to open new order**

AUDUSD (SELL or BUY)

\==================================

(SELL or BUY) AUDUSD

\==================================

XAUUSD BUY@ 1814

TP 1819

SL 1809

\==================================

XAUUSD BUY @1814

TP 1819

SL 1809

\==================================

AUDUSD (SELL or BUY) @0.73117

TP 0.71357

SL 0.74000

\==================================


# \[Pro] SL/TP Override Mode

{% hint style="info" %}
When open order you can config for it same TP SL signal or custom
{% endhint %}

* Set SL & TP by: **SAME\_AS\_SIGNAL**

  **-> Open order with TP SL as signal**
* &#x20;Set SL & TP by: **AUTO\_SL\_TP\_FIXED**

  **-> Open order with TP SL custom pips . Enter SL, TP pips EA will auto check and fill if miss TP or SL**
* &#x20;Set SL & TP by: **SL\_TP\_FIXED**

  **-> Open order with TP SL custom pips . Enter SL, TP pips EA will auto convert to price**

<figure><img src="https://336892245-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FtVjBgAJnVI2mruGw1wLX%2Fuploads%2FW2TgMpFcxK6T07K31xBz%2Fimage.png?alt=media&amp;token=c1ac3666-8355-44d8-bdd3-0dcad08e70c6" alt=""><figcaption><p><strong>Open order with TP SL custom</strong></p></figcaption></figure>

Set SL & TP by: **TP\_FIXED or SL\_FIXED**

&#x20;    **-> Open order with only TP or SL custom pips**

<figure><img src="https://336892245-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FtVjBgAJnVI2mruGw1wLX%2Fuploads%2FweAZS40BC82l1fsDwwo5%2Fimage.png?alt=media&amp;token=c98eaf4c-5962-415a-8f49-1725c2300e56" alt=""><figcaption><p>Set SL &#x26; TP by: <strong>TP_FIXED or SL_FIXED</strong></p></figcaption></figure>


# Close Management

{% hint style="info" %}
You can config auto close when hit target TPs with a percent lot
{% endhint %}

<figure><img src="https://336892245-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FtVjBgAJnVI2mruGw1wLX%2Fuploads%2Fsk7hjUveVO3ySdszBkak%2Fimage.png?alt=media&amp;token=891c87ef-2fb5-41ae-a604-37bc73ad7d69" alt=""><figcaption></figcaption></figure>

**Percent Lot Close When hit target TP1 or TP2,TP3,TP4**

* Enter 0 if you want skip it
* Enter 100 if you want close all
* Enter 1-100 will active feature auto close when hit Tp1 or Tp2

**Active Close when pips to**

* Enter 0 if you want skip it
* **Active Close when pips to**: Enter 1-100 will active feature. with number pips config when hit it will auto close order by Percent Lot Close When pips to target


# Move SL & Breakeven

{% hint style="info" %}
You can config Auto Move SL to entry target to keep profit&#x20;
{% endhint %}

<figure><img src="https://336892245-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FtVjBgAJnVI2mruGw1wLX%2Fuploads%2FH5BSogvZbN0JwTJ99AYB%2Fimage.png?alt=media&amp;token=4df90e1b-96fb-4a59-801a-8ab9f8c803b7" alt=""><figcaption></figcaption></figure>

**Active Move SL when hit TP1 or TP2, TP3**

* Select **NONE** if you want skip it
* Select **SL\_TO\_ENTRY** if you want auto move SL to BE
* Or other options as **SL\_TO\_TP1, SL\_TO\_TP2, SL\_TO\_TP3**&#x20;

**Active Move SL When Hit pips config**

* Enter 0 if you want skip it
* **Active move sl when pips to**: Enter 1-100 will active feature. with number pips config when hit it will auto **move sl to BE or TP1,TP2,TP3**

**Extra pips for sl target**

* Enter 0 if you don't want plus pips compare with SL


# Move TP & Breakeven

{% hint style="info" %}
You can config Auto Move TP when price negative it will move TP to entry target help keep profit&#x20;
{% endhint %}

<figure><img src="https://336892245-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FtVjBgAJnVI2mruGw1wLX%2Fuploads%2FHQ2wuf9YBjSqEPnlF6mq%2Fimage.png?alt=media&amp;token=bb64ce34-be95-41bd-85c3-c5a508a3d013" alt=""><figcaption></figcaption></figure>

**Active Move TP when negative pips to x number**

* Enter **0** if you want skip it
* Select **TP\_TO\_ENTRY** if you want auto move TP to BE
* Select **NONE\_ACTION** if you want skip it

**Extra pips for sl target**

* Enter 0 if you don't want plus pips compare with SL


# \[Pro] SafeMode & Filters Order

<figure><img src="https://336892245-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FtVjBgAJnVI2mruGw1wLX%2Fuploads%2F7ytvZF6OisrxwtOGOUNJ%2Fimage.png?alt=media&amp;token=79d966cc-63a7-4732-8a3f-574fac26b541" alt=""><figcaption></figcaption></figure>

* **Open order same type by** : Prevent opening multiple same type orders and duplicate orders
  * **DISTANCE\_TIME** : is an option that helps prevent opening multiple similar orders within a period of time. Set time at **Time distance to open order same type (seconds)**
  * **DISTANCE\_PIPS :** is an option that helps prevent opening multiple similar orders within a pips number. Set pips at **Pips distance to open order same type (pips)**
  * **OPEN\_NOW:** is an option skip prevent and continue order
* **Limit orders allowed to open same type(Default 0: No Limit) :** is an option allow open order same type but limit number
* **When have order open opposite type:** is feature helps you handle when there are two orders of the same pair but different types
  * **NOTHING :** Skip and continue open
  * **SKIP\_ORDER\_OPPOSITE :** Skip order opposite
  * **CLOSE\_ORDER\_OPPOSITE :** Close order opposite before
  * **CLOSE\_ORDER\_OPPOSITE\_HAS\_PROFIT :** Close order opposite before if has profit
* **Skip Order Without TP:** No open order if not TP price
* **Skip Order Without SL:** No open order if not SL price
* **Skip Order if Risk > your % risk :** It will use SL and risk config to calculator then skip if risk order > with % risk config
* **Get % Risk From Signal:** Set true if you want give % risk from signal. use format xlot in signal
* **Skip order if lotSize open bigger than (Max Lotsize) :** Set max lotsize can open


# \[Pro] Config By Pairs

B1. From EA Config change Allow use file config to **true**

<figure><img src="https://336892245-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FtVjBgAJnVI2mruGw1wLX%2Fuploads%2F7IhMZF0heZyWMTtAC1fG%2Fimage.png?alt=media&amp;token=79fc354c-5b8d-4d6d-be93-1e3bdc58cf56" alt=""><figcaption></figcaption></figure>

**B2. Choose OK**

**B3. Open and Config File**&#x20;

&#x20;  \+ **Select File in MT4 and click Open Data Folder**

<figure><img src="https://336892245-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FtVjBgAJnVI2mruGw1wLX%2Fuploads%2FPARxE023nqdUD22U07Uq%2Fimage.png?alt=media&amp;token=8beec4f7-89c5-4716-a577-70767aad5e37" alt=""><figcaption></figcaption></figure>

**Next select Folder MQL4\Files and open file name "config\_redfox\_copier\_pro.txt"**

<figure><img src="https://336892245-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FtVjBgAJnVI2mruGw1wLX%2Fuploads%2FlaBmWIHiShhAobR8AH61%2Fimage.png?alt=media&amp;token=2d97699f-b22d-4a3e-b6e3-1e931612ed97" alt=""><figcaption></figcaption></figure>

<figure><img src="https://336892245-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FtVjBgAJnVI2mruGw1wLX%2Fuploads%2FsMBsgbMnEuCG2RSB1Zcu%2Fimage.png?alt=media&amp;token=5c3b9069-e6cf-44a0-a121-d69298d9977a" alt=""><figcaption></figcaption></figure>

**At here. Only create and define symbol and config you want.**

**Have any question please contact telgram** <https://t.me/RedFox_Support>


# List command support

To show list commands

> Typing **rfc help** to channel contain bot

List Command Support:

* List Command Support:

  * RFC STATUS
  * RFC START
  * RFC STOP
  * RFC LISTORDER
  * RFC ACCOUNT
  * RFC ALLOW ALL|BUY|SELL&#x20;

  \==========UPDATE ORDER==========

  * RFC UPDATE SL TO
  * RFC SL ENTRY
  * RFC UPDATE TP\[1-3] TO&#x20;

  \==========CLOSE ORDER==========

  * RFC CANCEL
  * RFC CLOSE
  * RFC CLOSE HALF
  * RFC CLOSE x.xx
  * RFC CLOSE x% (x: 1-100)
  * RFC CLOSE TP\[1-3]
  * RFC CLOSE TP\[1-3] HALF
  * RFC CLOSE TP\[1-3] x.xx
  * RFC CLOSE TP\[1-3] x%(x: 1-100)&#x20;

  \==========CLOSE ORDER WITHOUT REPLY==========

  * RFC CLOSE ALL
  * RFC CLOSE x%\[SYMBOL]
  * RFC CLOSE \[SYMBOL]


# \[Pro]MOTIFY ORDER

&#x20;You can use **RFC syntax reply** to update prices

* RFC UPDATE SL TO
* RFC SL ENTRY
* RFC UPDATE TP\[1-3] TO&#x20;


# Update TP Order

{% hint style="info" %}
With running orders, you can completely update TP and SL prices from telegram
{% endhint %}

### \* UPDATE TP PRICE

&#x20; You can use **RFC syntax reply** to update prices.

{% tabs %}
{% tab title="UPDATE TP TO" %}
Move TP price to new price with syntax

**RFC UPDATE TP TO \[price]**

\-------------------------------------

Example:

> GBPUSD SELL @1.25182\
> Stop Loss 1.25682&#x20;
>
> Take profit 1.2130

**RFC UPDATE TP TO 1.20421**
{% endtab %}

{% tab title="UPDATE TP\[1-3] TO" %}
Move TP number price to new price with syntax

**RFC UPDATE TP\[1-3] TO \[price]**

\-------------------------------------

Example:

> GBPUSD SELL @1.25182\
> SL 1.25682&#x20;
>
> TP 1.2130
>
> TP2 1.2130
>
> TP3 1.2130

**RFC  TP2 TO 1.2030**
{% endtab %}
{% endtabs %}


# Update SL Order

{% hint style="info" %}
With running orders, you can completely update TP and SL prices from telegram
{% endhint %}

### \* UPDATE SL PRICE

&#x20; You can use **RFC syntax reply** to update prices.

{% tabs %}
{% tab title="UPDATE SL TO" %}
Move sl price to new price with syntax

**RFC UPDATE SL TO \[price]**

\-------------------------------------

Example:

> GBPUSD SELL @1.25182\
> Stop Loss 1.25682&#x20;
>
> Take profit 1.2130

**RFC UPDATE SL TO 1.25421**
{% endtab %}

{% tab title="SL ENTRY" %}
Move sl price to BE with syntax

**RFC UPDATE SL TO \[price]**

\-------------------------------------

Example:

> GBPUSD SELL @1.25182\
> Stop Loss 1.25682&#x20;
>
> Take profit 1.2130

**RFC  SL ENTRY**
{% endtab %}
{% endtabs %}


# Edit Order

**Modify TP and SL**

You can edit TP, SL from post signal to modify it

![](https://336892245-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FtVjBgAJnVI2mruGw1wLX%2Fuploads%2Fo8S00RMTRG2KDQjdhVpt%2Fimage.png?alt=media\&token=4bd35f67-c640-4bd4-8881-22dcedaf6510)


# \[Pro]CLOSE ORDER

{% hint style="info" %}
With running orders, you can completely close from telegram
{% endhint %}

&#x20;You can use **RFC syntax reply** to update prices

* RFC CANCEL
* RFC CLOSE
* RFC CLOSE HALF
* RFC CLOSE x.xx
* RFC CLOSE x% (x: 1-100)


# Cancel Order Pending

{% hint style="info" %}
With running orders, you can completely close from telegram
{% endhint %}

&#x20;You can use **RFC syntax reply** to cancel order pending as

* **RFC CANCEL**

Example:

> GBPUSD SELL @1.25182\
> Stop Loss 1.25682&#x20;
>
> Take profit 1.2130

**RFC CANCEL**


# Close Order

{% hint style="info" %}
With running orders, you can completely close from telegram
{% endhint %}

&#x20;You can use **RFC syntax reply** to close order as

* **RFC CLOSE**

Example:

> GBPUSD SELL @1.25182\
> Stop Loss 1.25682&#x20;
>
> Take profit 1.2130

**RFC CLOSE**


# Close Half

{% hint style="info" %}
With running orders, you can completely close from telegram
{% endhint %}

&#x20;You can use **RFC syntax reply** to close half order as

* **RFC CLOSE HALF**

Example:

> GBPUSD SELL @1.25182\
> Stop Loss 1.25682&#x20;
>
> Take profit 1.2130

**RFC CLOSE HALF**


# Close Volume Lot

{% hint style="info" %}
With running orders, you can completely close from telegram
{% endhint %}

&#x20;You can use **RFC syntax reply** to close order as

* **RFC CLOSE x.xx**

{% hint style="info" %}
**x.xx is a lot volume**
{% endhint %}

Example:

> GBPUSD SELL @1.25182\
> Stop Loss 1.25682&#x20;
>
> Take profit 1.2130

**RFC CLOSE 0.01**


# Close Percent Lot

{% hint style="info" %}
With running orders, you can completely close from telegram
{% endhint %}

&#x20;You can use **RFC syntax reply** to close order as

* **RFC CLOSE x%**

{% hint style="info" %}
&#x20;**x is percent from 1-100**
{% endhint %}

Example:

> GBPUSD SELL @1.25182\
> Stop Loss 1.25682&#x20;
>
> Take profit 1.2130

**RFC CLOSE 20%**


# \[Pro]CLOSE ORDER BY TP

{% hint style="info" %}
With running orders, you can completely close from telegram
{% endhint %}

&#x20;You can use **RFC syntax reply** to update prices

* RFC CLOSE TP\[1-3]
* RFC CLOSE TP\[1-3] HALF
* RFC CLOSE TP\[1-3] x.xx
* RFC CLOSE TP\[1-3] x%(x: 1-100)&#x20;


# Close Order By TP

{% hint style="info" %}
With running orders, you can completely close from telegram
{% endhint %}

&#x20;You can use **RFC syntax reply** to close order as

* **RFC CLOSE TP\[1-3]**

Example:

> GBPUSD SELL @1.25182\
> SL 1.25682&#x20;
>
> TP 1.2130
>
> TP2 1.2130
>
> TP3 1.2130

**RFC CLOSE TP1**


# Close Half By TP

{% hint style="info" %}
With running orders, you can completely close from telegram
{% endhint %}

&#x20;You can use **RFC syntax reply** to close half order as

* **RFC CLOSE TP\[1-3] HALF**

Example:

> GBPUSD SELL @1.25182\
> SL 1.25682&#x20;
>
> TP 1.2130
>
> TP2 1.2130
>
> TP3 1.2130

**RFC CLOSE TP1 HALF**


# Close Volume Lot By TP

{% hint style="info" %}
With running orders, you can completely close from telegram
{% endhint %}

&#x20;You can use **RFC syntax reply** to close order as

* **RFC CLOSE TP\[1-3] x.xx**

{% hint style="info" %}
**x.xx is a lot volume**
{% endhint %}

Example:

> GBPUSD SELL @1.25182\
> SL 1.25682&#x20;
>
> TP 1.2130
>
> TP2 1.2130
>
> TP3 1.2130

**RFC CLOSE TP3 0.02**


# Close Percent Lot By TP

{% hint style="info" %}
With running orders, you can completely close from telegram
{% endhint %}

&#x20;You can use **RFC syntax reply** to close order as

* **RFC CLOSE TP\[1-3] x%**

{% hint style="info" %}
&#x20;**x is percent from 1-100**
{% endhint %}

Example:

> GBPUSD SELL @1.25182\
> SL 1.25682&#x20;
>
> TP 1.2130
>
> TP2 1.2130
>
> TP3 1.2130

**RFC CLOSE TP1 20%**


# CLOSE WITHOUT REPLY

{% hint style="info" %}
With running orders, you can completely close from telegram
{% endhint %}

&#x20;You can use **RFC syntax reply** to update prices

* RFC CLOSE \[SYMBOL]
* RFC CLOSE x%\[SYMBOL]
* RFC CLOSE ALL


# Close All Order

{% hint style="info" %}
With running orders, you can completely close from telegram
{% endhint %}

&#x20;You can use **RFC syntax without reply** to close all orders&#x20;

* **RFC CLOSE All**


# Close Order By Symbol

{% hint style="info" %}
With running orders, you can completely close from telegram
{% endhint %}

You can use **RFC syntax without reply** to close all order by symbol

* **RFC CLOSE \[SYMBOL]**

Example:

**RFC CLOSE XAUUSD**


# Close Order Symbol With Percent

{% hint style="info" %}
With running orders, you can completely close from telegram
{% endhint %}

&#x20;You can use **RFC syntax without reply** to close all order symbol percent

* **RFC CLOSE x%\[SYMBOL]**

{% hint style="info" %}
&#x20;**x is percent from 1-100**
{% endhint %}

Example:

**RFC CLOSE 20% XAUUSD**


# How To Build Auto Trade with RedFox Signals

Before going to this section please do the following steps:

1. [Downloaded RedFox Copier Pro](/guides/download-redfox-copier-pro-from-market-mql5-to-mt4-mt5)
2. [Create a Bot and get API Token From Telegram](/guides/how-to-create-a-bot-and-api-token-from-telegram)
3. [Create Telegram Channel and add Bot To Channel](/guides/how-to-create-telegram-channel-and-add-bot-to-channel)
4. [Install RedFox Copier Pro and active](/guides/install-redfox-copier-ea-and-active-from-market)

### **Build Auto Trade With RedFox Signals**

From Telegram open bot <https://t.me/Auto_Forward_Messages_Bot>

{% hint style="info" %}
**Auto Forward Telegram Bot** is Bot help you auto forward post message from channels to channels, channels to groups, groups to groups, groups to channels
{% endhint %}

![](https://336892245-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FtVjBgAJnVI2mruGw1wLX%2Fuploads%2FKhSwUTt108qLq92VCd8d%2Fimage.png?alt=media\&token=678a41a7-150f-4226-8e16-0a8e55ab6cea)

**B1.** Next click **START** and connect it .Follow the instruction&#x20;

{% embed url="<https://docs-v2.autoforwardtelegram.com/guides/how-to-connect-bot>" %}

**B2.** After completed connect Bot Auto Forward Telegram.

We will create a auto forward from RedFox Signals VIP to own channel. Follow the instruction

{% embed url="<https://docs-v2.autoforwardtelegram.com/guides/how-to-create-task-auto-forward>" %}

![CREATE A NEW FORWARD FROM SIGNAL VIP TO OWN CHANNEL](https://336892245-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FtVjBgAJnVI2mruGw1wLX%2Fuploads%2F75JOhknLjl3dURvWbJip%2Fimage.png?alt=media\&token=1111b8e6-ed50-4f87-bddd-0ce03dc38421)

![COMPLETE AUTO FORWARD](https://336892245-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FtVjBgAJnVI2mruGw1wLX%2Fuploads%2FVEMoXceeyRNBEBoRFL6s%2Fimage.png?alt=media\&token=e43033a8-cb96-43c6-acfc-01529ab57222)

So. we have completed an automated system combined with RedFox Signals. Thanks

Any questions please message me at [@RedFox\_Support](https://t.me/RedFox_Support)


# Introducing some EA configurations for reference

### 1. **Configurations open 3 order with 3 TP**

> With this configuration EA will open 3 orders with 3 TP from RedFox signal. Using this configuration you will get profit every time you reach TP level or close each order manually if desired target is achieved but also riskier than [opening 1 order](#1.-configurations-open-3-order-with-3-tp-1) because lot size will be needed bigger

**Configurations for Balance \~300$**

* Open 3 orders with 3 TP
* Fix lot size 0.01 each order
* Move SL to BE when TP1
* Move SL to TP1 when TP2

**=> Download file Config**&#x20;

{% file src="/files/L4gHVEPfYKSRi3eJAoX5" %}

\==============================================================

&#x20;**Configurations for Balance \~500$**

* Open 3 orders with 3 TP
* Fix lot size **0.02** for TP1, **0.01** for TP2, **0.01** for TP3
* Move SL to BE when TP1
* Move SL to TP1 when TP2

**=> Download file Config**&#x20;

{% file src="/files/DqWwF2nHLRprpaTvktPF" %}

\===============================================================

&#x20;**Configurations for Balance >=1000$ with Fix Lot**

* Open 3 orders with 3 TP
* Fix lot size **0.03** for TP1, **0.02** for TP2, **0.01** for TP3
* Move SL to BE when TP1
* Move SL to TP1 when TP2

**=> Download file Config**&#x20;

{% file src="/files/VYh34ft2fZfogzylxj54" %}

**Configurations for Balance >=1000$ with Auto Lot**

* Open 3 orders with 3 TP
* AUTO\_LOT with % of balance to risk for **TP1** :**1% , TP2: 0.5%, TP3: 0.5% .Total risk 2% for 3 orders**
* Move SL to BE when TP1
* Move SL to TP1 when TP2
* **=> Download file Config**&#x20;

{% file src="/files/vbtEQo9KKiUw7BR2BQf2" %}

\===============================================================

### 2. **Configurations open 1 order with Auto Lot**

> With this configuration the EA will only open 1 order with 3 TPs from RedFox signals and will automatically combine conditions from EA config or signals to process orders. It will be safer by using Auto Lot by Balance

**Configuration by Balance**

* Open **1** orders
* Auto Lot with % of balance to risk in one trade **1 to 2%**
* Move SL to BE when TP1
* Move SL to TP1 when TP2

**=> Download file Config**&#x20;

{% hint style="danger" %}
**Please reconfigure Account Balance** and **% of balance to risk in one trade** according to your account balance
{% endhint %}

{% file src="/files/YV5roa8Grt62Xcq6p0Np" %}

\==============================================================

### 3. How to load Config

From Input Config select Load and select File config download

![](https://336892245-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FtVjBgAJnVI2mruGw1wLX%2Fuploads%2FqSH3ccVxAOVgOU5n9ThH%2Fimage.png?alt=media\&token=2fa5922b-0275-43a5-bbf0-61eae8e96639)

\==============================================================

Here are some configurations for RedFox Copier Pro. you can use it or set up your own configuration

Any questions please message me at [@RedFox\_Support](https://t.me/RedFox_Support)


# How to Connect to a VPS on Windows

### How to Connect to a Windows VPS

**Microsoft Remote Desktop Connection (RDC)**

Navigate to the Start menu and search for “**remote desktop**.” You should find it on your PC.

<br>

![](https://336892245-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FtVjBgAJnVI2mruGw1wLX%2Fuploads%2FkjjxG08nhzpWr6yeKNzD%2Fimage.png?alt=media\&token=fa024314-d1e8-4e9d-aaae-1d5cac9dfc8b)

Enter the IP address of your Windows server or Windows VPS. Where to get a Windows server with remote desktop? Be sure to check out our Windows VPS hosting service.

![](https://336892245-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FtVjBgAJnVI2mruGw1wLX%2Fuploads%2FK7vwORgcWs5VbrrPnB9r%2Fimage.png?alt=media\&token=68395291-1616-4513-9f48-ba62539e850b)

You will be prompted for the account username and password on the remote system.

![](https://336892245-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FtVjBgAJnVI2mruGw1wLX%2Fuploads%2FTfDPPm6ycRLmITb76sKe%2Fimage.png?alt=media\&token=87692a50-6d26-412f-97fa-3a85cc9ceef8)

That’s it! If the login was successful, you will see the remote desktop opened in Remote Desktop Connection.


# How to make an Auto Trading system with Channel Telegram other and Meta Trader

{% hint style="info" %}
<https://medium.com/@tienbm/how-to-make-an-auto-trading-system-with-telegram-and-meta-trader-part-1-6dbc44cc5ef3>
{% endhint %}

{% hint style="info" %}
<https://medium.com/@tienbm/how-to-make-an-auto-trading-system-with-telegram-and-meta-trader-part-2-c73738613447>
{% endhint %}


# FAQ


# What is the difference between the pro version and the free version?

<figure><img src="https://336892245-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FtVjBgAJnVI2mruGw1wLX%2Fuploads%2FbZ64ZsoaoGuDhunS48HP%2Fimage.png?alt=media&amp;token=d7c8b853-3cdc-443d-a131-ae1b24093d4a" alt=""><figcaption></figcaption></figure>

{% hint style="info" %}
Version Pro will can open multiple order same symbol and include all advanced feature management order. You can check [Config BOT ](/guides/ea-input-describe)
{% endhint %}


# Do i need to install telegram to my vps in order to run the telegram copier 24 hours or is it enoug

{% hint style="info" %}
Yes. i need use vps to can run 24h
{% endhint %}


# Assume if i bought the lifetime one,does telegram copier will need updates in the future...if so wil

{% hint style="info" %}
No. You can update free in future when have new feature
{% endhint %}


# Do i need to buy auto forward message bot in order to run telegram copier auto?

{% hint style="info" %}
You can use Auto Forward package Free. In case need change format content post to valid with copier then will need upgrade
{% endhint %}


# if i buy only lifetime telegram copier how much is that?

{% hint style="info" %}
You can buy it on market mql5 with price 149$ <https://www.mql5.com/en/market/product/71929>
{% endhint %}


# More

{% hint style="info" %}
**Good to know:** depending on the product you're building, it can be useful to explicitly document use cases. Got a product that can be used by a bunch of people in different ways? Maybe consider splitting it out!
{% endhint %}


# Hướng dẫn sử dụng RedFox Service BOT

### Quản lý khách hàng qua BOT

Từ telegram try cập bot @RedFox\_Service\_BOT

Tại đây gõ **/start** để lấy ra các cú pháp hướng dẫn

<figure><img src="https://336892245-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FtVjBgAJnVI2mruGw1wLX%2Fuploads%2FL7Ifgj5AZu2dbcXTjHqI%2Fimage.png?alt=media&amp;token=bbb04354-523a-4eeb-b712-6b958c297516" alt=""><figcaption></figcaption></figure>

{% code overflow="wrap" %}

```
/create_client [USER_NAME]
Đây là cú pháp create và active cho khách hàng mới. Bạn có thể sử dụng username từ telegram của khách hàng
```

{% endcode %}

<figure><img src="https://336892245-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FtVjBgAJnVI2mruGw1wLX%2Fuploads%2FSlZiFasm1aMqd6t4DozP%2Fimage.png?alt=media&amp;token=117ce778-c4db-4141-86bd-df88d75e9729" alt=""><figcaption></figcaption></figure>

Sau khi tạo thành công BOT sẽ gen ra 1 token . **Token này sẽ gửi cho khách hàng để add vào EA**

**Tiếp theo quay trở lại channel tín hiệu add 2 BOT sau với quyền admin**

@RedFox\_Service\_BOT và @RFCopierMT4\_Service\_BOT

### Phía khách hàng

Mở MT4 . Trên thanh menu chọn Tools-> Option tick và nhập 2 url như sau. Rồi click OK

<https://api.telegram.org> , <https://service.redfox-capital.com>

<figure><img src="https://336892245-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FtVjBgAJnVI2mruGw1wLX%2Fuploads%2FjRxRH9prIHFJdZFkHq7g%2Fimage.png?alt=media&amp;token=47862dae-a691-42b3-af96-19c215f908b8" alt=""><figcaption></figcaption></figure>

Tiếp theo add EA to chart và nhập token đã được admin gửi và click ok

<figure><img src="https://336892245-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FtVjBgAJnVI2mruGw1wLX%2Fuploads%2FdVXfCtrlC5fvc8a8ctYz%2Fimage.png?alt=media&amp;token=1e9ce57b-bdec-46f5-8afb-98347d516db7" alt=""><figcaption></figcaption></figure>

**Đến đây việc khách hàng đã xong .**


