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

Equity Millepede EA (Expert Advisor)

author EAcpu | 3 reads | 0 comments |
A warm welcome to all of you.

I'm one of the fans of Greame (the author of "Equity millepede").
His (very, very) themes motivate and inspire many traders here.

This EA we are going to build is dedicated to the great man Graeme .

To summarize the content of this post

  1. I built an EA that incorporates the concept of equity millipedes.

  1. We will update the EA's entry technology.


Detailed planning and design <br> This morning I built an EA.
This EA has the following features.

  1. It will open a transaction.
  2. Calculate lot size based on risk --> (AccountMargin()%500) * 0.01 * Risk.
    This means there are 0.01 lots per 500 USD, with risk as a multiplier.
  3. Verify stop loss. Users have the option to enter a maximum stop loss. Validated Stop will check the stop loss calculated by the entry method and validate it using the maximum stop loss.
  4. Move stop loss to breakeven --> The breakeven point and breakeven profit are user inputs.
  5. Entry method --> Check the entry with very small stop loss. It will set the stop loss (this stop loss is verified with the maximum allowed stop loss. If the stop loss is greater than the maximum allowed stop loss, the trade will not be opened) and will open the trade.
  6. Module to take pictures whenever a new trade is opened and whenever stop loss is moved to breakeven


There is no exit module. If you understand the concept of Greame, you should know why. The EA does not exit the trade. The purpose of this ea is only to strengthen the legs. You are responsible for terminating the transaction (meaning exiting the transaction).

According to Graeme, a profit of 100 or even 500 is not profit at all in itself. So there will be no Exit module in this EA.

So this EA is not a "set up and leave EA".

Now this EA can enter a trade, it can set a stop loss, it can check if the stop loss is within our budget, it can move the stop loss to break even.
These are all things we need to do to form our legs.
But what about input methods?
I have incorporated one of my own entry methods into this EA. But I have to do some filtering to make the entries more precise.

Of course, we all have our own methods of entry.
Share and retrieve.

I will only publish .ex4 files.

If any of your ideas can't be adopted, then I'll give a valid reason before removing it from my coding list.

So start sharing and I'll start coding.

Greetings Anans

PS --> The additional EA was just coded today. Not tested yet because holiday spread is so high. Please excuse my grammar.

Attachment to original post (1)

Verification code Refresh