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

MARI - My Automated Revenue Invention EA (MARI - My Automated Revenue Invention EA)

author EAcpu | 3 reads | 0 comments |
Hi everyone, I hope you will like my EA and help me improve it.

This EA is an automated trading program designed to make multiple trades per pair when the conditions of the following guided strategy are met.

Strategy: Use larger time frames to determine whether conditions are "ready to buy" or "ready to sell." Decision making on large time frames is guided by MACD and RSI.

Use smaller time frames to determine if a trade is "ready to buy" or "ready to sell" and execute trades based on TMA and EMA (based on NanningBob's 6.0 strategy).

Purchasing criteria:
Buying Preparation 1: If MACD is below zero and the current MACD is less than the signal MACD, and the previous MACD is greater than the previous signal MACD.

Buy Ready 2: If the bid is below the small time frame TMA buy line and the small time frame EMA.

Buy signal: If BuyReady1 is true and BuyReady2 is true and the bid is greater than the small timeframe TMA and EMA.

Sales standards:
Sell ​​Ready 1: If MACD is above zero, and the current MACD is greater than the signal MACD, and the previous MACD is less than the previous signal MACD.

Sell ​​preparation 2: If the selling price is greater than the small time frame TMA buy line and the small time frame EMA.
Sell ​​signal: If SellReady1 is true and SellReady2 is true and the sell price is smaller than the small timeframe TMA and EMA.

TP&SL
There are several ways to manage exit. There are ATR-based TP and SL. Jump Stops, Breakeven Stops and Trailing Stops also have ATR based parameters if needed. The program will close all buys when the first Sell Ready1 signal is issued and vice versa.

Most parameters are fairly standard. These parameters may require more explanation.

MaxTrades = 50 - the amount of buy or sell allowed to open a position. This EA only performs buy or sell transactions in 1 direction at a time. I would allow multiple trades - to make the robot more profitable, but it all depends on your account size and lot size.

TradeLotMult = 10 - increase the lot size every 10 trades. Observe how it works in backtesting and forward testing. For the first 10 trades, lot size = 1*0.01 = .01, for the next 10 trades 11-20, lot size = 2*0.01 = .02 and so on. Use this in your tests.
SetBuyReady1 = false - On startup, if you think the BuyReady1 condition is met, you can set this to true and it will look for the BuyReady2 condition.

SetSellReady1 = false At startup, if you think the SellReady1 condition has been met, you can set it to true and it will look for the SellReady2 condition.

LargeTimeFrame = 60 - 1H, use whatever value suits you. 4H is 240 and D1 is 1440. I use 60 60 minutes
SmallTimeFrame = 5 - 5M, use whatever value works for you, just make it lower than LargeTimeFrame. I use 5 5 minutes.
Buys_Below_Zero_Only = true - buys will only be executed when MACD is below zero - safer and more conservative approach

Sells_Above_Zero_Only = true - sells will only be executed when MACD is above zero - safer and more conservative approach

Use_RSIFilter = true - execute buys only when RSI is above zero - safer and more conservative approach; execute sells only when RSI is below zero - safer and more conservative approach;

My settings are default, but I am considering optimizing MACD, RSI and ATR for future profits and stops. That's basically it. If you have any questions, please feel free to ask. I'll try my best to answer.

I have attached pictures of the EA, my template, the TMA center indicator and the 1H chart and 5M chart of GBPJPY.

My day job is mainframe programming. I bought a book on EA writing and used it with many ideas from the FF team - so thank you all.

Gao Kuyi

Something new.

I created a small timeframe template using TMA and buy and sell MAs.
You need MARI EA V3.0 to use this template. Encoding needs to be changed.

You can still use MARI EA V2.0 on mari tpl and your trading will be the same. Smaller time frame templates and new EAs allow you to see the execution of trades based on TMA and MA criteria.
mari 1.gifMARI2day.jpgMARI PICTURE 3.jpgMARI PICTURE 1.jpg
mari 1.gifMARI2day.jpgMARI PICTURE 3.jpgMARI PICTURE 1.jpg
mari 1.gifMARI2day.jpgMARI PICTURE 3.jpgMARI PICTURE 1.jpg
mari 1.gifMARI2day.jpgMARI PICTURE 3.jpgMARI PICTURE 1.jpg
mari 1.gifMARI2day.jpgMARI PICTURE 3.jpgMARI PICTURE 1.jpg
mari 1.gifMARI2day.jpgMARI PICTURE 3.jpgMARI PICTURE 1.jpg

Attachment to original post (6)

📦 Summary of post attachments (18)

Below are all the files (18) shared in the reply.

Verification code Refresh