Tarea técnica
Summary: This is a trading strategy designed to generate profits through rebates. It starts by opening positions in both directions, and all positions are closed at a breakeven or slight profit level of around $0 or $1, including virtual profits (based on the set TP). After that, trades follow the trend according to the pending orders. However, if positions in both directions are open, they are closed again at around $0 or $1, as initially done. Even if the position closes at breakeven due to rebates, it results in a profit. The reason for closing positions at around $0, including rebates, when both directions are open is based on the principle that one cannot predict the market direction.
Settings:
- Magic Number
- Distance
- Virtual Profit per Position
- TP A (when positions in both directions are open) (Set in USD, up to two decimal places)
- TP B (when a position in one direction is open) (Set in USD, up to two decimal places)
- Position Total SL - True, False 6-1. If False, input the number of points at which the SL should activate, based on the second order opened after the initial Buy and Sell.
- Trading Time Specification (separated into Start and End times)
Process:
- Initially, both Sell and Buy orders are opened simultaneously. A Sell Stop is placed below the Sell order based on the set distance, and a Buy Stop is placed above the Buy order. Suppose the Sell order is opened, and all positions are closed according to TP A. (For example, there will be 1 Buy and 2 Sell positions, and the balance will close at a loss. However, due to the rebate, the loss will be near $0.) The orders are closed as soon as Buy and Sell positions are mixed, not only for three positions but also from the moment they are combined. This assumes Setting 6 is True.
After the Buy and Sell orders are opened simultaneously, if an additional order is opened and the market moves in the opposite direction, all three positions will be closed with a combined loss if Setting 6 is False (as further explained in point 4).
If closed, existing pending orders should be deleted.
-
Once the Sell Stop is opened, a Buy Stop is placed above, and another Sell Stop is placed below, based on the Sell order. When the Sell Stop is opened, the existing orders are closed for profit (based on the set TP B). If a second Sell Stop is opened, the remaining Buy Stop is canceled, and new Buy Stop and Sell Stop orders are placed based on the set distance value.
-
The virtual profit per order (Setting 3) is applied when Buy and Sell orders are mixed.
-
If Setting 6 is False, both Sell and Buy orders are open simultaneously, and an additional order is opened due to the Stop. The total number of orders will be 3. For example, if the Buy order is opened, there will be 2 Buy and 1 Sell orders. If the order opened by the Stop reaches a negative of around 10 points, all three orders are closed.
-
The initial orders (Buy & Sell) are opened based on the close of the candle on the current chart.
-
If closed in profit, the existing Stop orders are not deleted and remain pending. They are utilized to capture further profits in line with the trend. Example: If the Buy Stop is opened, new Buy Stop and Sell Stop orders are set based on that order.
-
The trading time is set based on the server time.
-
Information text is needed on the chart: 8-1. Number of closed orders 8-2. Number of SL orders 8-3. Amount of SL
I will provide additional examples after making a selection.