CONFIDENTIAL DOCUMENT Owner: Luis de Morais e Castro Simão Leal Address: Rua Egas Moniz, 427, 1º Frente 2765-479 Estoril - Portugal DEVELOPMENT OF AN EXPERT ADVISOR FOR TRADING - 4XMA Trend follower - MT4 EA RIGHTS----------------------------------------------------------------------------- Its mandatory and fundamental for me, to having 100% Full Ownership of the Intelectual piece, Full distribution Right and Unlimited License for all effects - All rights and ownership are exclusive and the source code has to be supplied to me as my own and total property. The source code has to be supplied fully compliant with the ruls of the MQL5 market for the Metatrader 4. One time that the programmer has the complete access to the software, he have to ensure that the software, as a whole piece, is not distributed neither is used in anyway without my prior consent. As a coder, the programmer can use the source code in little parts to enrich his ouwn knowledge, as well with care of never revealing and distribute my intelectual property. For judicial resolution - in Portugal, under portuguese law for rights of software development. NOTE: The EA has to be full compatible with the MQL5 market BASIC STRATEGY ------------------------------------------- This EA is a composition of four MAs, one for tendency, one for trading signal, other for smoothing the price and the third for trailing. Note: The EA has to maintain the session of all functions status after init or re-init. Please, use the sentences stated here in the F7 confs. GLOBAL CONFIGURATIONS ------------------------------------ Maximum spread for trading: "XXX" Maximum Slippage: "XXX" Magic Number: "XXXXXX" Order Comment: "XXXXXX" SCREEN INFORMATION --------------------------------------- - MA1 Tendency color: "XXXX" - MA2 Smooth Price color: "XXXX" - MA3 Entry Signal color: "XXXX" - MA4 Trailing Stop color: "XXXX" - TP Line color: "XXXX" - Trailing Line color "XXXX" - Profit/Loss Long and acumulate - Profit/Loss Short and acumulate - Profit/Loss Both and acumulate WORKING MODE --------------------------------------------- Working mode option: 1 - Per tick 2 - Per open candle price LOT MANAGEMENT ------------------------------------------- Lot management option: 1 - Fixed Lot per trade: "X" 2 - Managed lot X% of available equity: "X" OPEN TRADES DIRECTION ------------------------------------ Open option: 1 - Both 2 - Long 3 - Short 4 - None CLOSES --------------------------------------------------- Take Profit at % of open price variation: "X" Trailing Stop option: 1 - Fixed distance points: "X" 2 - Attached to MA4 Trailing Stop TRADING CONDITIONS---------------------------------------- 1st - The MA1 Tendency define the cycle for long or short. It has the switch to activate the cycle for long or for short (below MAs) 2nd - Distance > X points between MA1 Tendency and MA1 Smooth Price 3rd - Signal for open a Long position: When the MA2 Smooth Price cross above MA3 Entry Signal and Distance points between MAs is > X 3rd - Signal for open a Short position: When the MA2 Smooth Price cross below MA3 Entry Signal and Distance points between MAs is > X Configs: Distance points filter > between MA1 Tendency and MA2 Smooth Price >: "X" Distance points filter > between MA2 Smooth Price and MA3 Entry Signal >: "X" Number of trades at the same time in the same MA3 Entry Signal cycle: "X" Number of squential trades in the same MA Signal Cross cycle: "X" INDICATORS CONFIGURATION --------------------------------- (Please, use the MAs of the Metatrader) MA1 Tendency 1 Force time frame: "M1, M5, M15, M30..." 1 Period: "60" 1 Shift: "0" 1 Method: "simple, exponential, smoothed or linear weighted" MA2 Smooth Price 2 Force time frame: "M1, M5, M15, M30..." 2 Period: "2" 2 Shift: "0" 2 Method: "simple, exponential, smoothed or linear weighted" MA3 Entry Signal 3 Force time frame: "M1, M5, M15, M30..." 3 Period: "16" 3 Shift: "0" 3 Method: "simple, exponential, smoothed or linear weighted" MA4 Trailing Stop 4 Force time frame: "M1, M5, M15, M30..." 4 Period: "24" 4 Shift: "0" 4 Method: "simple, exponential, smoothed or linear weighted"