EA trading for two moving averages
Trading different volumes in each direction based on moving averages.
- MA1_Period - period of the first MA.
- MA2_Period - period of the second MA.
- MA_metod - MA calculation method.
- MA_price - price used for MA calculation.
- KLotBuy - ratio for the calculation of volume of a Buy position.
- KLotSell - ratio for the calculation of volume of a Sell position.
- Open_Type - if 0 - only buy, 1 - only sell, 2 - buy and sell.
- FixLot - fixed lot.
- MarginLot - lot calculation based on the specified margin.
- MarginPercentLot - lot calculation based on the % of deposit for the margin.
- Risk - lot calculation based on stop loss and risk per one trade as a % of deposit.
- SL_ - Stop Loss in points.
- SL_Bar - calculation of Stop Loss using bar extremes (of SL_ - 0).
- SL_Max - maximum allowed Stop Loss.
- TP_ - Take Profit in points for 4-digit quotes ( 2-digit).
- TP_Bar - calculation of Take Profit using extremes for a given number of bars (if ТР_ - 0).
- TP_Max - maximum allowed Take Profit.
- Profit_loss_min - minimum allowed profit to loss ratio.
- Profit_loss_max - maximum allowed profit to loss ratio.
- Tral_Start - the distance where trailing will trigger.
- Tral_Distance - trailing distance (if 0 trailing is disabled).
- Hour_Start - Expert Advisor start hour.
- Hour_End - Expert Advisor finish hour.
- ...... settings of weeks and months.
- AllTick - operation in the Every Tick mode (otherwise only bar open prices).