Welcome Forex EA downloads & MT4/MT5 auto-trading resources — EAs, Gold EAs, quant tools and real-world automation.
Sign In Sign Up

Get Trends - MetaTrader 5 Expert | Forex Indicator Downloads - MT4/MT5 Resources - MetaTrader 5 Resources

author EAcpu | 5 reads | 0 comments |

Get trend - expert for MetaTrader 5

The author of the ideaYuri , the author of the MQL5 codeBarabashkakon .

attention! Expert Advisor only works on M15 time frame!

Short term trends. The Expert Advisor uses two iMA indicators and an iStochastic.

 //--- Calculate the initial parameters of the indicator to search for MA_M15 with double entry conditions = iMAGet(handle_iMA_M15, 1 );
Double MA_H1 = iMAGet(handle_iMA_H1, 1 );

DoubleStoh_slow = iStochasticGet( signalLine , 1 );
Double Stoh_fast = iStochasticGet( MAIN_LINE , 1 );
Double Stoh_fast_prew=iStochasticGet( MAIN_LINE , 2 );

DOUBLE PRICE_M15 = OFF ( 1 , void , PERIOD_M15 );
DOUBLE PRICE_H1 = OFF ( 1 , void , PERIOD_H1 );

Conditions of purchase:

 //--- Check the conditions for executing the transaction if (price_M15 if(Stoh_slow< 20 && Stoh_fast< 20 && Stoh_fast_prew Stoh_slow)
        {

Conditions of sale:

 if (price_M15>MA_M15 && price_H1>MA_H1 && (price_M15-MA_M15)<=porog*m_adjustment_points)
    {
if (stoh_slow> 80 && Stoh_fast> 80 && Stoh_fast_prew>Stoh_slow && Stoh_fast 


EURUSD, M15, c 2016.01.01 по 2017.02.06:

Get trend - expert for MetaTrader 5


Attachment download

📎 get_trend.mq5 (30.15 KB)

Source: MQL5 #17562

Verification code Refresh