量化交易系统

MT5-Crocus C1

  • 型号:
Main Image


If this is your first time visiting the MD programs page, please read the text on my profile .


Description of work

When the Moving Average indicator crosses, the Expert Advisor opens a position, sets a virtual stoploss and takeprofit. The intersection is analyzed on a closed candle. When a signal to open a position appears, if there is a position in the market that was opened by the Expert Advisor, then the signal is ignored, i.e. only one position can be opened.


Features of work

The Expert Advisor is designed for hedging type accounts. It works on the instrument on which it is installed. If the terminal was restarted for some reason, the Expert Advisor will restore its data.


Condition for opening a Buy position

Crossing the price of the Moving Average indicator from the bottom up, closing the candle above the Moving Average.

Optional:

If the value of the Volumes indicator is greater than a certain value in the settings, (The value of the Volumes indicator > 0).


Condition for opening a Sell position

Crossing the price of the Moving Average indicator from top to bottom, closing the candle below the Moving Average.

Optional:

If the value of the Volumes indicator is greater than a certain value in the settings, (The value of the Volumes indicator > 0).


Conditions for closing a position

Stoploss or takeprofit crossing.


Expert advisor settings


General settings

Magic - to determine the deals that the Expert Advisor has opened

Timeframe - timeframe on which the Expert Advisor is looking for entry signals


Money management settings

Volume - fixed volume of the opened position, lots

Volume multiplier after loss - position volume multiplier when taking a loss, coeff (0 - not used)

Number of losses to reset the volume - number of losses to reset the volume, pcs (0 - not used)


Position opening settings

The value of the Volumes indicator - the value of the Volumes indicator, pcs (0 - not used)


Position closing settings

StopLoss - distance to loss limit, points

TakeProfit - distance to profit taking, points


Moving Average indicator settings

The Moving Average settings are standard, as in the MetaTrader 5 terminal.


The default settings do not guarantee a profit, so the Expert Advisor needs to be optimized before work. If you have any questions about the settings of the Expert Advisor, then write to me in private messages.


In the future, I will expand the functionality of the Expert Advisor, so in order not to miss updates, subscribe to the channel here on the site ( https://www.mql5.com/en/channels/mql_development_en ), or to the telegram channel ( https://t.me/mql_development_en ).


Good luck to all.