Login / Register
Add a review
Log in
Sign UP
[bws_google_captcha]

The Expert Advisor uses the Stop-flip trading technique described in the article ” Order strategies. Universal automatic machine”. The initial position is taken. If the market goes in the opposite direction, we stop the position and open the reverse one with a larger size. We continue to do this until the position reaches the desired profit. When the position is closed with a profit, we open the reverse position and trade again.

Using this Expert Advisor, you can open a position manually and transfer control over it to the Expert Advisor according to the strategy described above, or the Expert Advisor can open a random position and accompany it. You can configure the parameters for stopping the position and fixing the profit. You can set the size of the initial position and the increase factor of the lot.

The StopAndReverse Expert Advisor uses the same magic number generator as the ObeyTheLimits Expert Advisor. So you can use the ObeyTheLimits MagicNumber utility to prevent magic number conflicts. To start working with the Expert Advisor and open an initial position, you can use the ObeyTheLimits ManualTrade utility.

  • when_optimizing_start_always_with-set to buy or sell, optimization in the tester will start from this position. Otherwise, the results may be turned off. Since optimization may be required to select a stop-reversal and take profit, this option will be very useful.

  • random_start-set it to true, and the Expert Advisor will open the first random position itself.

  • start_with_already_open-set = true if you open a position before the Expert Advisor starts and want the Expert Advisor to manage this position. If the random_start parameter is set to true, it overrides this option to false.

  • ticket_of_open_pos — if the previous parameter = true, you can specify the ticket number of the position, and the Expert Advisor will do the rest.

  • start_lot — the lot size when opening the initial position and for starting a new series.

  • lot_multiplier — when the order is reversed, the previous lot size increases by this coefficient.

  • stop_and_reverse_in — the number of points where the position stops and reverses.

  • take_profit_in — the number of points where the profit is fixed and trading starts again.

  • compansate_for_swaps — if a negative swap accumulates for a position and you want to cover it when the position is closed, set the parameter to true.

  • symbol_has_suffix-some brokers use suffixes in the names of symbols (for example, they use a dot to indicate a fixed spread, the suffix “micro” to indicate sub-lots). In this case, set = true and specify the necessary symbol_suffix suffix for the Expert Advisor to correctly process the symbol properties.

  • auto_magic_number-the Expert Advisor can use automatic magic number generation for orders. The algorithm generates the same magic number for the symbol each time, so even if you start again, the same magic number will be used for that symbol. This allows you to avoid problems in the work of the Expert Advisor. Sometimes there may be a conflict between magic numbers, when the same number is used for different characters (for example, EURUSD and EURAUD), the conflict can be prevented by using the ObeyTheLimits_MagicNumberscript .

  • magic_number — if the previous parameter is set to false, you must specify a unique magic number for the symbol that the Expert Advisor works on.

[spoiler title=”Read More…”]

when_optimizing_start_always_with-set to buy or sell, optimization in the tester will start from this position. Otherwise, the results may be turned off. Since optimization may be required to select a stop-reversal and take profit, this option will be very useful.

random_start-set it to true, and the Expert Advisor will open the first random position itself.

start_with_already_open-set = true if you open a position before the Expert Advisor starts and want the Expert Advisor to manage this position. If the random_start parameter is set to true, it overrides this option to false.

ticket_of_open_pos — if the previous parameter = true, you can specify the ticket number of the position, and the Expert Advisor will do the rest.

start_lot — the lot size when opening the initial position and for starting a new series.

lot_multiplier — when the order is reversed, the previous lot size increases by this coefficient.

stop_and_reverse_in — the number of points where the position stops and reverses.

take_profit_in — the number of points where the profit is fixed and trading starts again.

compansate_for_swaps — if a negative swap accumulates for a position and you want to cover it when the position is closed, set the parameter to true.

symbol_has_suffix-some brokers use suffixes in the names of symbols (for example, they use a dot to indicate a fixed spread, the suffix “micro” to indicate sub-lots). In this case, set = true and specify the necessary symbol_suffix suffix for the Expert Advisor to correctly process the symbol properties.

auto_magic_number-the Expert Advisor can use automatic magic number generation for orders. The algorithm generates the same magic number for the symbol each time, so even if you start again, the same magic number will be used for that symbol. This allows you to avoid problems in the work of the Expert Advisor. Sometimes there may be a conflict between magic numbers, when the same number is used for different characters (for example, EURUSD and EURAUD), the conflict can be prevented by using the ObeyTheLimits_MagicNumberscript .

magic_number — if the previous parameter is set to false, you must specify a unique magic number for the symbol that the Expert Advisor works on.

[/spoiler]

Add review
Reviews ( 0 ):