Watch how to download trading robots for free
Find us on Facebook!
Join our fan page
Interesting script?
So post a link to it -
let others appraise it
You liked the script? Try it in the MetaTrader 5 terminal
Views:
2041
Rating:
(10)
Published:
2018.09.27 15:54
Updated:
2023.03.29 13:48
\MQL5\Include\ \MQL5\Indicators\
UltraMFI.mq5 (21.9 KB) view
Need a robot or indicator based on this code? Order it on Freelance Go to Freelance

The trading system based on the UltraMFI indicator signals with an ability to change the volume of a forthcoming trade depending on the results of the previous trades for this trading system. Trading signals are formed when a bar closes if a trend has changed (which is displayed by a cloud change).

The block of input EA variables is added for managing volumes of opened positions:

input uint    BuyTotalMMTriger=5; // The number of the last Buy deals to calculate stop loss input uint    BuyLossMMTriger=3;  // The number of losing Buy deals to reduce MM input uint    SellTotalMMTriger=5;// The number of the last Sell deals to calculate stop loss input uint    SellLossMMTriger=3; // The number of losing Sell deals to reduce MM input double  SmallMM_=0.01;      // Share of a deposit in a deal in case of loss input double  MM=0.1;             // Share of a deposit in a deal during normal trading input MarginMode MMMode=LOT;      // Lot value determining method

In case of such inputs and when selecting from the last five trades, three of which are loss-making in a single direction, the EA opens the next trade in the same direction having the volume of 0.01 lot. If there are less than three loss-making trades out of the last five ones, the position volume is 0.1.

For the generated EA to operate correctly, the compiled UltraMFI.ex5 indicator file must be available under the <terminal_data_directory>\MQL5\Indicators folder.

Default Expert Advisor's input parameters without stops have been used during tests shown below.

Fig. 1. Example trades on the chart

Fig. 1. Example trades on the chart

GBPUSD H4 testing results over the year of 2017:

Fig. 2. Test results chart

Fig. 2. Test results chart

Translated from Russian by MetaQuotes Ltd.
Original code: https://www.mql5.com/ru/code/21793

i-AnyRangeCldTail_System_Alert i-AnyRangeCldTail_System_Alert

The i-AnyRangeCldTail_System indicator provides alerts, sends email and push notifications when the candlesticks break through the dot-dash channel.

i-AnyRangeCldTail_System i-AnyRangeCldTail_System

The indicator paints candlesticks, which are beyond the i-AnyRangeCldTail channel. Candlesticks outside the channel limits are marked with color according to the trend.

Exp_ColorXPWMA_Digit_NN3_MMRec Exp_ColorXPWMA_Digit_NN3_MMRec

Three independent trading systems using ColorXPWMA_Digit indicators within a single EA with an ability to change the volume of a forthcoming trade depending on the results of the previous trades for this trading system

COG_Channel COG_Channel

The Center of Gravity Channel indicator