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

all the most powerful moves occur only through the information, but in addition, it happens that the information for one currency pair attracts other currencies and everything to do in this scenario, since nothing has been indicated in the list for the information? When writing an Expert Advisor, I left the lists of information, indicators (which are still overdue). The principle of functioning of the Expert Advisor is rather straightforward and concise.

Expert Pending Orders) sets two pending orders – BUYSTOP and SELLSTOP-at a predetermined distance in the current price. The Expert Advisor places orders within the specified seconds before the candle closes (the TimeStart parameter) and after the specified seconds after the new candle opens, it will delete failed orders (the timeEnd parameter). It works on any currency pairs and periods. Pending orders are placed with a pre-defined StopLoss and TakeProfit (with zero values, the corresponding parameter is disabled). The time filter to work around the clock or by trade sessions (HourStart – Hour to start placing orders and HourEnd – Hour end of trading)

Closes orders:

Optimal for the strategy – we install the Expert Advisor on charts with the M5 or M15 period of several currency pairs (we optimize the parameters for each pair over the past two weeks) and TakeProfit will be yours. But we never forget that all existing robots are only for semi-automatic work of the trader.

[spoiler title=”Read More…”]

  • PERIOD=CURRENT; Working timeframe of the Expert Advisor.
  • FixLot =0.01; Fixed lot.
  • Profit=20.0; Percentage of the balance total profit.
  • StopLoss=30; Stop loss size, if 0-the corresponding parameter is disabled.
  • TakeProfit=60; Take profit size, if 0-the corresponding parameter is disabled.
  • deltapips=110; The size of the offset from the current price for setting a pending order >0.
  • TimeStart=10; Seconds until the candle closes.
  • timeEnd=20; Seconds after opening a new candle, the Expert Advisor will delete failed orders.
  • losscontrol=false; Transfer of StopLoss (if the profit on the transaction on the currency pair is non-negative) at the first opportunity, if false-disabled.
  • bustart=200; Profit size in points for StopLoss transfer.
  • sizeBU=30; break-even Size in points.
  • TrailingStop=false; Trailing stop.
  • TrailingStart=100; The amount of profit to start TrailingStop (in points).
  • trailingdist=100; TrailingStop distance from the current price (in points).
  • TrailingStep=20; TrailingStop step (in points).
  • Magic=10000; ID of orders and positions of the Expert Advisor.
  • hourstart=0; The hour when the EA starts placing orders.
  • hourend=24; Hour of the end of placing orders by the Expert Advisor.
  • Commentary=false; Comments in the Expert tab.

[/spoiler]

Add review
Reviews ( 0 ):