Description of labor
The ‘C2’ class skilled advisor works utilizing martingale. When a sign from the built-in indicator seems, the skilled advisor checks whether or not there’s an open place that the skilled advisor opened earlier. If there’s an open place, the skilled advisor accompanies it till it’s closed; if there isn’t any open place, the skilled advisor analyzes how the earlier place was closed with revenue or loss. If with a revenue, then opens a place with the preliminary quantity, if with a loss, then will increase the amount. After opening a place, the skilled advisor units a stoploss and takeprofit, and accompanies it till it’s closed.
Notice: earlier than operating the advisor, the settings have to be optimized for a particular instrument and timeframe.
Knowledgeable advisor settings
Common settings
Timeframe
The parameter units the timeframe on which the skilled advisor will work. The parameter is required if you happen to swap the timeframe whereas the skilled advisor is working, and the skilled advisor will work with the timeframe that’s set within the settings.
Instance: the skilled advisor is engaged on H1, you turn the timeframe to D1 to see the worldwide state of affairs, however the skilled advisor continues to work on H1. Though, to guage the chart, you should utilize one other chart on which the skilled advisor doesn’t work.
Notice: if you choose the present parameter from the record, the skilled advisor will work on the timeframe that’s at present energetic. The parameter is beneficial when testing on totally different timeframes, in order to not swap the parameter every time when altering the timeframe for testing.
Magic
The parameter units a singular identifier for every open place. This parameter is required if sooner or later you need to have a look at the historical past of transactions with a particular magician to be able to assess the profitability of the buying and selling technique. A magic is assigned to an open place and is saved within the buying and selling historical past.
Instance: you might have the identical skilled advisor working, however with totally different settings, for instance, one skilled advisor works with breakeven turned on, and one other with breakeven turned off, because the skilled advisor is identical, the Magic parameter will assist distinguish positions opened by the skilled advisor with breakeven turned on from positions with breakeven turned off.
Notice: for positions opened manually, the terminal routinely units the magic = 0, so it’s higher to not use 0 as a magic.
Cash administration settings
Place quantity
The parameter units the place quantity with which the skilled advisor opens a place. This quantity is ready for positions after worthwhile positions.
Instance: the skilled advisor was buying and selling with losses and the place quantity elevated to 0.08, the Place quantity = 0.01 parameter was set within the settings, after closing the place with a revenue, the skilled advisor will set the amount for the brand new place to 0.01.
Notice: set the right quantity for the instrument on which the skilled advisor will work. It should be higher than or equal to the minimal quantity, lower than or equal to the utmost quantity, and be a a number of of the amount step. To do that, you’ll be able to have a look at the specification of the software, learn the directions.
Multiplier after loss
This parameter units the amount multiplier after a loss. After losses, the skilled advisor will improve the amount till a revenue is made.
Calculation method:
Place quantity × MathPow(Multiplier after loss, TotalLoss), the place
Place quantity – place quantity (parameter in settings),
Multiplier after loss – quantity multiplier (parameter in settings),
TotalLoss – the variable shops the variety of losses in a row,
MathPow(val1, val2) – the operate returns a worth that’s multiplied by the preliminary quantity.
Instance: the skilled advisor is buying and selling with losses and acquired 3 losses in a row, with every new open place the amount will improve. With parameters (Place quantity = 0.01, Multiplier after loss = 1.2) the amount will improve like this:
0.01 × MathPow(1.2, 1) = 0.01 × 1.2 = 0.012, rounded to the right quantity of 0.01;
0.01 × MathPow(1.2, 2) = 0.01 × 1.44 = 0.0144, rounded to the right quantity of 0.01;
0.01 × MathPow(1.2, 3) = 0.01 × 1.7279 = 0.017279, rounded to the right quantity of 0.02.
If losses proceed, then this algorithm for rising quantity will proceed. When making a revenue, the amount can be reset to the preliminary worth – 0.01.
Notice: the skilled advisor will be unable to open positions if the amount will increase considerably and there aren’t sufficient funds; it’ll additionally not have the ability to open positions if the elevated quantity turns into higher than the utmost allowable quantity for the instrument. For those who set Multiplier after loss = 1.1, then the amount after losses will improve extra slowly than if you happen to set Multiplier after loss = 2.0 or extra.
Place opening settings
This group accommodates settings for the indicator that provides alerts. The settings might be seen for the precise indicator the skilled advisor works with.
Place closing settings
StopLoss
The parameter units the gap from the opening worth to the loss restrict worth.
Calculation method:
For a Purchase place: opening worth – (StopLoss x pip measurement)
For a Promote place: opening worth + (StopLoss x pip measurement)
Instance: StopLoss = 100, place opening worth = 1.08000, cease loss for the Purchase place can be set at 1.07900 (1.08000 – (100 x 0.00001)), for the Promote place – 1.08100 (1.08000 + (100 x 0.00001)).
Notice: the parameter is required and should at all times be higher than 0.
TakeProfit
This parameter units the gap from the opening worth to the revenue taking worth.
Calculation method:
For a Purchase place: opening worth + (TakeProfit x pip measurement)
For a Promote place: opening worth – (TakeProfit x pip measurement)
Instance: TakeProfit = 100, place opening worth = 1.08000, take revenue for the Purchase place can be set at 1.08100 (1.08000 + (100 x 0.00001)), for the Promote place – 1.07900 (1.08000 – (100 x 0.00001)).
Notice: the parameter is required and should at all times be higher than 0.
The purpose measurement might be seen within the instrument specification or on the chart itself, for instance, for the EURUSD pair the purpose measurement is 0.00001 (fifth quotes), for the USDJPY pair it’s 0.001 (third quotes).
Class ‘C2’ skilled advisors:
MA7 Flax C2 MT4;
MA7 Flax C2 MT5.
Subscribe to the ‘MA7 Buying and selling’ channel to obtain notifications about new applications, updates and different data.
Ask questions within the profile on the MQL5.