Mira cómo descargar robots gratis
¡Búscanos en Twitter!
Pon "Me gusta" y sigue las noticias
¿Es interesante este script?
Deje un enlace a él, ¡qué los demás también lo valoren!
¿Le ha gustado el script?
Evalúe su trabajo en el terminal MetaTrader 5
Asesores Expertos

Validate Me framework - Asesor Experto para MetaTrader 4

Visualizaciones:
18075
Ranking:
(26)
Publicado:
2021.06.22 06:02
ValidateMe.mq4 (8.19 KB) ver
MQL5 Freelance ¿Necesita un robot o indicador basado en este código? Solicítelo en la bolsa freelance Pasar a la bolsa

Validate Me framework

My interpretation of how to code a robot using market buy and sell orders to cope with market validation. This framework deals with some checks that a trading robot must pass before it is published on the market. For educational purposes.

code example BUY

ask=MarketInfo(_Symbol,MODE_ASK);
         bid=MarketInfo(_Symbol,MODE_BID);
         sl=(OrderStopPips==0)?0.0:bid-ExtOrderStop;
         if(sl!=0.0 && ExtOrderStop<StopLevel)
            sl=bid-StopLevel;
         tp=(OrderTakePips==0)?0.0:ask+ExtOrderTake;
         if(tp!=0.0 && ExtOrderTake<StopLevel)
            tp=ask+StopLevel;
         GetLot=CheckVolumeValue(Lots);
         if(!CheckStopLoss_Takeprofit(OP_BUY,ExtOrderStop,ExtOrderTake))
            return;
         if(CheckMoneyForTrade(GetLot,OP_BUY))
            order=OrderSend(_Symbol,OP_BUY,GetLot,ask,10,sl,tp,"FrameWork",678,0,Blue);

Framework inputs

framework_inputs

    moving average moving average

    candle cross 3 moving averages

    Logging library for mql4 Logging library for mql4

    A customizable logging library with Debug,Info,Error logging levels.

    divergence and rsi divergence and rsi

    macd divergence and rsi

    Momentum-based Adaptive Channel Momentum-based Adaptive Channel

    The Momentum-based Adaptive Channel is a version of the adaptive channel based on the Euclidean distance. It is designed to adapt according to the dynamic market as needed.