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

The Expert Advisor allows you to build a trading system based on a custom indicator. It performs automated opening/closing of trades based on the indicator signals that place values other than 0 and EMPTY_VALUE in the buffer. The Expert Advisor polls the values of the specified indicator buffers, opens/closes and accompanies transactions according to the specified parameters.

The Expert Advisor implements the following functions of transaction support:

  • installing SL and TP;
  • calculating the volume for a given risk;
  • transfer to break-even;
  • partial closure.

The Expert Advisor parameters, which have values in points, are calculated for an account with 4-digit quotes. For an account with 5-digit quotes, the values are automatically multiplied by 10.

To connect your own indicator to the Expert Advisor, you need to enter its name and set the buffers used. The indicator should be located in the standard folder. The values specified in the parameter string are converted by the program to values of the type int, double, bool, string. Parameters must be separated by a comma. The int value must contain only digits, double – digits separated by a dot, bool-true or false, string-limited to a single quote. For example, the string 0,0. 0, false,’ text ‘ contains 4 parameters of the type int, double, bool, string.

[spoiler title=”Read More…”]

Expert Advisor parameters:

  • startLot – fixed volume of transactions;
  • RiskPercent – risk per trade for volume calculation;
  • TakeProfit, StopLoss-TP and SL values in points;
  • noLoss – the value in points to convert to breakeven;
  • MinProfit – value in points for partial closing;
  • minProfitFactor-volume for partial closure;
  • TrailStop, trailStep – value and step in points for trailing;
  • trailAfterNoLoss – allowing trailing after breaking even;
  • numOrders – number of unidirectional orders;
  • bothOrdersDir – allowing trading in both directions;
  • IndicatorName, IndicatorTimeFrame, IndicatorParams – name, period, and string of indicator parameters;
  • barIndex-index of the indicator bar;
  • open_Buy_BufferIndex, open_Sell_BufferIndex – index of the buy/sell buffer;
  • takeProfit_Buy_BufferIndex, takeProfit_Sell_BufferIndex-TP buffer index;
  • stopLoss_Buy_BufferIndex, stopLoss_Sell_BufferIndex-index of the SL buffer;
  • close_Buy_BufferIndex, close_Sell_BufferIndex-index of the closing buffer;
  • minProfit_Buy_BufferIndex, minProfit_Sell_BufferIndex-index of the partial close buffer;
  • noLoss_Buy_BufferIndex, noLoss_Sell_BufferIndex-index of the break-even buffer;
if the buffer is not used, set the value to -1
  • testerAutoTrade – automatic transactions for validation (disable for user work)
  • useButtons-display BUY/SELL buttons on the chart
  • MAGIC-magic number;
  • slippage – slippage.
  • startLot – fixed volume of transactions;
  • RiskPercent – risk per trade for volume calculation;
  • TakeProfit, StopLoss-TP and SL values in points;
  • noLoss – the value in points to convert to breakeven;
  • MinProfit – value in points for partial closing;
  • minProfitFactor-volume for partial closure;
  • TrailStop, trailStep – value and step in points for trailing;
  • trailAfterNoLoss – allowing trailing after breaking even;
  • numOrders – number of unidirectional orders;
  • bothOrdersDir – allowing trading in both directions;
  • startLot – fixed volume of transactions;
  • RiskPercent – risk per trade for volume calculation;
  • TakeProfit, StopLoss-TP and SL values in points;
  • noLoss – the value in points to convert to breakeven;
  • MinProfit – value in points for partial closing;
  • minProfitFactor-volume for partial closure;
  • TrailStop, trailStep – value and step in points for trailing;
  • trailAfterNoLoss – allowing trailing after breaking even;
  • numOrders – number of unidirectional orders;
  • bothOrdersDir – allowing trading in both directions;
  • IndicatorName, IndicatorTimeFrame, IndicatorParams – name, period, and string of indicator parameters;
  • barIndex-index of the indicator bar;
  • open_Buy_BufferIndex, open_Sell_BufferIndex – index of the buy/sell buffer;
  • takeProfit_Buy_BufferIndex, takeProfit_Sell_BufferIndex-TP buffer index;
  • stopLoss_Buy_BufferIndex, stopLoss_Sell_BufferIndex-index of the SL buffer;
  • close_Buy_BufferIndex, close_Sell_BufferIndex-index of the closing buffer;
  • minProfit_Buy_BufferIndex, minProfit_Sell_BufferIndex-index of the partial close buffer;
  • noLoss_Buy_BufferIndex, noLoss_Sell_BufferIndex-index of the break-even buffer;
if the buffer is not used, set the value to -1
  • IndicatorName, IndicatorTimeFrame, IndicatorParams – name, period, and string of indicator parameters;
  • barIndex-index of the indicator bar;
  • open_Buy_BufferIndex, open_Sell_BufferIndex – index of the buy/sell buffer;
  • takeProfit_Buy_BufferIndex, takeProfit_Sell_BufferIndex-TP buffer index;
  • stopLoss_Buy_BufferIndex, stopLoss_Sell_BufferIndex-index of the SL buffer;
  • close_Buy_BufferIndex, close_Sell_BufferIndex-index of the closing buffer;
  • minProfit_Buy_BufferIndex, minProfit_Sell_BufferIndex-index of the partial close buffer;
  • noLoss_Buy_BufferIndex, noLoss_Sell_BufferIndex-index of the break-even buffer;
if the buffer is not used, set the value to -1
  • testerAutoTrade – automatic transactions for validation (disable for user work)
  • useButtons-display BUY/SELL buttons on the chart
  • MAGIC-magic number;
  • slippage – slippage.
  • testerAutoTrade – automatic transactions for validation (disable for user work)
  • useButtons-display BUY/SELL buttons on the chart
  • MAGIC-magic number;
  • slippage – slippage.

[/spoiler]

Add review
Reviews ( 0 ):