Watch how to download trading robots for free

Interesting script?
So post a link to it -
let others appraise it

You liked the script? Try it in the MetaTrader 5 terminal

votes: 7
2018.06.06 13:48

A further development of the first version Hans123_Trader.

The Expert Advisor places pending Buy Stop and Sell Stop orders. To place an order, the EA searches for the highest and lowest price within the given range of bars (set to 80 in this code). Buy Stop orders are placed at the highest price, Sell Stop orders are placed at the lowest one.

The lifetime of pending orders lasts until the end of the current day. Once any of the pending orders triggers, all other orders are deleted.

Max pending orders parameter has been added in the second version - it allows setting the maximum number of pending orders.

Translated from Russian by MetaQuotes Software Corp.
Original code:

Volatility_Band2 Volatility_Band2

The Volatility Band 2 indicator is similar to the standard Bollinger Bands, and is a modification of Volatility_Band with the following difference: instead of a separate 'Low band adjustment', this parameter affects both the lower and the upper bands of the indicator.

Volatility_Band Volatility_Band

Volatility Bands

Crossing of two iMA v2 Crossing of two iMA v2

Crossover of two iMAs (Moving Averages), one more iMA (Moving Average) is used as the filter. Lot: manual or risk percent of balance. Stop, Market or Limit orders. The EA also sets Stop Loss, Take Profit, Trailing Stop.

Interpolation Interpolation

Polynomial interpolation.