Watch how to download trading robots for free
Find us on Telegram!
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:
4148
Rating:
(18)
Published:
2017.01.19 16:58
\MQL5\Include\
Need a robot or indicator based on this code? Order it on Freelance Go to Freelance

The Expert Advisor opens and closes positions at the predefined moments in time.

EA inputs:

//+-------------------------------------------------+
//| Input parameters of the EA indicator            |
//+-------------------------------------------------+
input double MM=0.1; //Share of a deposit in a deal
input MarginMode MMMode=LOT; //lot value detection method
input int StopLoss_=1000; //stop loss in points
input int TakeProfit_=2000; //take profit in points
input int Deviation_=10; //max price deviation in points
input TradeMode Trade=ENUM_SELL; //Trade direction
input datetime OpenTime=D'1970.01.01 00:00'; //Position open time
input datetime CloseTime=D'3000.01.01 00:00'; //Position close time
input uint TradeInterval =60; //Trading interval in seconds (time accuracy for a trade)
//+-------------------------------------------------+
Note that the TradeAlgorithms.mqh library file allows using Expert Advisors with brokers who offer nonzero spread and the option of setting Stop Loss and Take Profit together with position opening. You can download more variants of the library at the following link: Trade Algorithms.

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

OpenTicks OpenTicks

Non-indicator system based on the analysis of the four previous bars. Implemented partial closing.

Exp_CenterOfGravityCandle Exp_CenterOfGravityCandle

The Exp_CenterOfGravityCandles Expert Advisor is based on signals of the CenterOfGravityCandles indicator.

SilverTrend_Signal_Alert SilverTrend_Signal_Alert

SilverTrend semaphore signal indicator features alerts, emails and push notifications.

Exp_ZeroFillingStop Exp_ZeroFillingStop

The Expert Advisor moves a position to a breakeven when a predefined profit is reached.