# What to do with unprofitable positions?

Here is the strategy:

* Step 1. Initially, pending orders, for example Buy Limit and Sell Limit, are placed at the same distance from the current price (example code of scripts:Pending orders UP,Pending orders DOWN- just as an example of placing pending orders).

* Step 2: When one of the pending orders triggers, the rest of them are deleted and step 1 is repeated.

After a while, positions with losses are accumulated, while we can also see profitable positions. Question: How do I minimise the number of losing positions?

Here is the strategy:

* Step 1. Initially, pending orders, for example Buy Limit and Sell Limit, are placed at the same distance from the current price (example code of scripts:Pending orders UP,Pending orders DOWN- just as an example of placing pending orders).

* Step 2: When one of the pending orders triggers, the rest of them are deleted and step 1 is repeated.

After a while, positions with losses are accumulated, while we can also see profitable positions. Question: How can we minimize the appearance of losing positions?

We do not.

After a while, positions accumulate with a loss, while there are also profitable positions. Question: How can I minimise the appearance of losing positions?

Well, obviously, we should only place orders in the direction in which the price will go. If you see that the price moves up, set a buy stop. Down - you set a sell stop.

George Merts:

Well, obviously you only place orders in the direction the price will go. If you see price going up, you put a buy stop. Down - you put a sell stop.

If you knew where it was going...

### Two pending orders, version 1.000:

There are only two parameters:

• The distance from current price (in pips) - the distance from the current price.
• The minimum profit (in money) - the minimum profit, at which all positions are closed and all remaining pending orders are deleted.

Files:

Martingale to help - cover the profitable ones.

Here is the strategy:

* Step 1. Initially, pending orders, for example Buy Limit and Sell Limit, are placed at the same distance from the current price (example code of scripts:Pending orders UP,Pending orders DOWN- just as an example of placing pending orders).

* Step 2: When one of the pending orders triggers, the rest of them are deleted and step 1 is repeated.

After a while, positions with losses are accumulated, while we can also see profitable positions. Question: How can we minimize the appearance of losing positions?

At least use the channel. Sell limit is set at the upper limit, TP = lower_limit + const. For a buy limit it is vice versa

Alexey Volchanskiy:

At least work with a channel. Sell limit at the upper limit, TP = lower limit + const. For a buy limit it is vice versa

What is the stop size?

Vitaly Muzichenko:

With what stop size?

I think for sell limit will be upper limit + const )))) It depends on the channel width of course and should be chosen, the optimizer helps