The Expert Advisor places orders according to the trend with a decreasing lot and step a against the trend with an increasing lot and step.Each direction is assigned a take profit from the breakeven of the entire series. The most extreme orders are closed by the adviser counter so that there is a total plus, thus the adviser pulls the entire network to the price without allowing it to expand.

Parameters:

Lot = 0.00; //if set to = 0, the lot will be calculated as a percentage of free funds at risk %
risk = 0.1; / / percentage of free funds
Takeprofit = 100; / / takeprofit in points.
K_Takeprofit = true; / / coefficient of increasing the length of the takeprofit depending on the imbalance of the amount of lots
example: if the sum of buy lots = 10 and the sum of sell lots is 5, then the take profit of the sell series is multiplied by 2 and the buy series is divided by 2
ProfitClosePercent = 1.0; / / the percentage of profit from the deposit at which we close the entire network (0-off)
CloseBy = false; / / close long-distance counter
MinLossCloseBy = 10; / /loss of the order for counter-closing

Step_Trend = 10; / / do not open an order with a trend closer to the one already set.
Step_CounterTrend = 15; / / do not open an order against a trend closer to the one already set.

K_Step_Trend = 1.00; / / coefficient of increasing the distance between orders according to the trend.
K_Step_CounterTrend = 1.50; / / coefficient of increasing the distance between orders against the trend.

K_Lot_Trend = 1.0; / / coefficient of change of the lot according to the trend.
extern double K_Lot_CounterTrend = 1.5; //coefficient of change of the lot against the trend.

MaxOrders_Trend = 50; / / maximum number of orders by trend
MaxOrders_CounterTrend = 10; / / maximum number of orders against the trend

slippage = 3; // Acceptable price slippage when placing orders
Magic = 0; / / unique order number
FILTER_TIME – the time filter allows you to open new positions only at the specified time

monday = “”;TimeStartMonday = 0 ,TimeEndMonday = 24;

Tuesday = “”;TimeStartTuesday = 0 ,TimeEndTuesday = 24;

Wednesday = “”;TimeStartWednesday = 0 ,TimeEndWednesday = 24;

Thursday = “”;TimeStartThursday = 0 ,TimeEndThursday = 24;

Friday = “”;TimeStartFriday = 0 ,TimeEndFriday = 10;

Key = 0; //key for working on a real account

The key to 1 trading account costs 50 USD.
Payment methods: https://cmillion.ru/en/pay/
After the payment, write the account number to which you want to make the key.

Emailea@cmillion.ru
WhatsApp +79283690333
Skype: mqlcmillion
Telegram:   @mqlcmillion

Cm-hourglass 070521M
Cm-hourglass 070521M
cm-hourglass-070521M.ex4
37.1 KiB
155 Downloads
Details