EA CM-RUL | Get 200% Every Month

0
(0)

You can trade with any strategies and any advisers, but a time comes when trading comes to a standstill. All dogmas and rules are violated and you do not know what to do next. Hands drop and I want to rest, but at stake are several thousand dollars, which are so insulting to throw at the mercy of fate. You can, of course, just lock up, go on vacation, and then calm down everything, or you can entrust all this to the adviser and rest calmly. 
And so the cm-RUL simple lock adviser is designed just for the situation when you no longer know what to do with the account in order to save it. 
Name: MACD Histogram.jpg Views: 30 Size: 184.1 KB
Consider an example of a situation. 
We have 10 open buy positions with a total lot of 25 and the price goes down. Drawdown is more than half of the deposit, but we still have 1000 usd of free funds.
If nothing is done in this situation, then with a further downward movement of the price, a Margin Call will occur and the deposit will be lost. To avoid this, we must place a lock order sell 25 lot. It is better to remove stops and profits from all open positions. We do not know where the price will go and therefore a closed position even in plus will give us a drawdown in the opposite direction. After that, no matter where the price goes, the level of available funds will not change (it can vary slightly within the limits of accrued swaps). Leaving a deposit in this state is also impossible. After the transfer of trade to the lock, the adviser begins to gradually resolve it. Let us consider this process in more detail. 

Attention! For the adviser to work, the unzip button must be pressed! 

We have a total of 25 lot buy and 25 lot sell
The scavenger finds the farthest buy order and the farthest sell order. 
Let's say the long-distance buy volume is 10 lots, and sell 0.01 lot. 
In the settings, there is a 0.01-lot unloader lot, the lot increase ratio is 1.5, the step is 10 points and MinProfit = 2 points 
1 option the price goes up and gradually open averaging sell positions 0.01 0.02 0.03 0.05 0.08 0.11 0.17 0.26 0.38
In this case, in order to open these 9 averaging positions, the price had to go through without a rollback of 90 p (which is generally quite rare for 4 digits, the usual movement is not more than 50 p, then rollback, etc. But for each instrument, this data may be individual). But, despite this path, the adviser opened a total of just over 1 lot, which did not really affect the overall picture of the account! Further, the price goes down. At some point in time, all these 9 averaging sells give a total profit greater than the loss of the farthest (lower) sell (not all, but only part of it equal to 0.01 lot). How much profit should become greater than the loss is determined by the MinProfit parameter (it is indicated in the panel as an item). Further, the EA closes the farthest sell and all averaging sells with a total profit of about 2 points. This is approximately because that while 10 orders are being closed, the price can jump either down, then close more than 2p, or up, then close less than 2p. If the price goes up more than 2p, then we will get a small, but still a loss. Therefore, you can set the minimum profit more, but not so much that the price does not reach it. In general, do not be greedy and do not grind. This parameter is selected for each currency individually, but should not be less than the spread.

Now we have 25 buy lots and 24.99 sell lots. 
Next, the price went down and gained 0.01 0.02 0.03 0.05 0.07 ... buy positions, then went up again and when the sum of all buy blocked 0.0001 part of the farthest buy, i.e. 0,01 lots from 10 lots, then all the destructive buy closed and 0.01 from the farthest buy. 
Total we have left 24.99 buy and 24.99 lot sell. The adviser reduced the lottery in each direction by 0.01 lot and at the same time earned several points at each such close.

Further, everything follows the same pattern until all positions are closed in plus. The process is certainly not fast. You can speed it up if you increase the lot of razrulivaniya or reducing the step, but then you may have to add a deposit to have enough funds for razliruyuschih lots. The unloading lot should be calculated so that if the price goes one way without a pullback, then the adviser should have enough funds to open the farthest averagers at a given step. As a rule, no more than 8 pieces, but anything happens. Here you need to take into account the volatility of the pair and the value of the point in the currency and the security ... In general, for each broker and each currency these are individual parameters that are best experimentally selected in the tester.
Thus, if the price will go in the near future without long rollbacks, then our deposit will increase and unload from unnecessary lots, if the price goes into rollback, then either allow it to continue to average or lock already in a new way and set the resolver with another magician, so that he closes his lots gradually, and not immediately. 

The adviser has some more useful parameters. 
SumProfit is a profit in the deposit currency
With the total profit of all open positions specified in SumProfit, the EA will close all open positions. The adviser in this case closes all positions on the contrary i.e. one at the expense of the other. At the same time, we not only speed up the closing process, but also save half the spread. This is necessary for regular trading, if you have already settled everything and just open positions manually or with the help of an adviser. Or if the razverlivatel brought one direction to a big plus, and unloaded the second so much that in total both directions gave us a plus. 

Example: 
Total we have left 24.99 buy and 24.99 lot sell. 
The price went up 50 p and after 30 down, we closed another 0.01 from sell b, so the price went several times, for a total of 200-300 p, closing 5 sell lots.
In total, we have 24.99 buy and 19.99 lot sell left, but now all Buy is in a big plus and may well cover the remaining sell at a loss with profit. So, if all positions in total exceed SumProfit in the deposit currency, then all of them will be closed and the deposit is completely free for further trading or for withdrawing funds! 

Lock function 
Attention! For the lock function to work, the lock button must be pressed! 

When the lock button is clicked, the adviser analyzes the situation and compares the total volume of buy and sell positions
Lock only works when there are no open steer positions. Those. immediately after their closure, the adviser either exposes the missing lots to the sagging direction or closes part of the profitable lots from the profitable direction. So that as a result, to align the lottery of both sides. The difference in the lots of the parties should be greater than the resolving lot. 

Example:
1. There are 24.99 buy left and 25 lot sell. - the adviser does not set a lock, since the difference in lots is not more than 0.01 
2. There are 24 buy and 25 sell lots left, all sell positions are unprofitable. - the adviser will set 1 buy lot and equalize the parties. 25 buy and 25 lot sell 
3. There are 24 buy and 25 lot sell and 0.5 sell lots left in profit. - the adviser closes the 0.5 lot sell and sets the 0.5 lot buy. 24.5 buy and 24.5 lot sell
4. There are 24 buy and 25 lot sell left, and of these, more than 1 lot in profit. - the adviser closes 1 lot sell. We get 24 buy and 24 lot sell. 

You can put the adviser in a tester with visualization, indicate the test lot as you have on your real account and put buy and sell positions at the same time. Next, enable the rollout and see the process. In the process, you can select all the parameters and then transfer them already to real life. 

Parameters of the adviser. (All basic parameters can be specified directly in the trading window, and not in the advisor settings, but upon restart they will be updated.)
Something unexpected happened during testing. 

I have the maximum number of orders = 3, but as soon as 3 orders have been made, it opens 3 more, then 3 more, then 3 more and so on ... 

I expected 3 orders to be the end of this. No more after that.

Title: multiple sets.jpg Views: 48 Size: 85.1 KB

Title: SVL problem.jpg Views: 52 Size: 139.3 KB

Step = 5; - step between averaging positions 
MinProfit = 2; - profit in points at which we close the stealing positions together with the long- 
term unprofitable SumProfit = 100.0; - profit in the deposit currency for which we close all positions of the instrument on which the Expert Advisor is 
Lot = 0.01; - a straightening lot (a lot that we bite off at unprofitable positions) 
K_Lot = 1.5; - coefficient of increase of the 
steering lot Max_Lot = 10.0; - the maximum possible lot that the adviser can supply. (if he needs to deliver 25 lots, then with this value he will set the lock with three positions 10 + 10 + 5) 
Magic = 1212; - the unique number of the taxiing positions should not coincide with any other magicians of the remaining positions
Slippage = 30; - price slippage when opening / closing positions 
Key = 4158266; - a key for trading on a real account (see how to get a key on the site. link ) 
TimeSleep = 60; // delay time between opening averaging 
LOTTEST = 1.0; - lot for manual trading or for testing an adviser (to create a difficult situation in the visualization tester) 
RU = false; -start position of the roll out button (if true is immediately pressed) 
Lock = false; -start position of the lock button (if true is immediately pressed)

In version 4.16 he added 
- “memory” of the lock line 
- added drawdown drawdown at which the lock is turned on (when the drawdown is reduced, the lock is turned off automatically) 
- The lock volume can be selected either full or lock only the main ones without averaging 
- do not touch positions with the specified magic number 
- removed change of magic when Max_Orders 
- updated the check on the prohibition of trade 
- added the closing of distant ones due to the profit accumulated during the day 
- fixed the removal of all third-party objects (the adviser deletes only its own) 
- added the output of information to a separate file

paperclip
 Images
See also  Forex Destructor Strategy MT4 - Get 400% Net Profit Every Month

attachment1916203 

paperclip Attachments
  • How useful was this post?

    Click on a star to rate it!

    Average rating 0 / 5. Vote count: 0

    No votes so far! Be the first to rate this post.

    We are sorry that this post was not useful for you!

    Let us improve this post!

    Tell us how we can improve this post?



    Author: Forex Wiki Team
    We are a team of highly experienced Forex Traders [2000-2023] who are dedicated to living life on our own terms. Our primary objective is to attain financial independence and freedom, and we have pursued self-education and gained extensive experience in the Forex market as our means to achieve a self-sustainable lifestyle.