Dr. Chuckie's Trading Tools

EasternMoon Trading System

v2bot. Live trade results.


Bookmark and Share

Free Tools and Utilities

Private corner

EasternMoon Documentation


Important:

Before you can use EasternMoon on your Demo or Real account, this account should be authorized by me to be used with the system. That's why after the purchase, I'm asking you to give me the accounts number(s) on which you want to use EasternMoon. This does not mean that I might (in any way) access your account, this is only a program protection measure. So after a purchase you will receive an email from me with the Account(s) number request. After I receive this number (or numbers), I will authorize it during one business day and will send you a second email confirming that now you can use EasternMoon on that Account(s).

What if you will change your Account? Drop me an email requesting an authorization for a new Account with your name, original Account number and the date of purchase and I will do the necessary changes.

Program Installation

EasternMoon comes in 2 separate files: EasternMoon.ex4 and http51.dll
Go to "My Computer", then browse to the location of your MetaTrader (it's usually "C:\Program Files\MetaTrader 4"), then place EasternMoon.ex4 to the "Experts" sub-folder. 
The http51.dll file should be placed into your "Windows\System32" folder.

Restart your MetaTrader after placing the files into correct folders. Now the "EasternMoon" Expert Advisor should be available in the Navigator window under "Expert Advisors" branch:


Expert Advisor usage

To apply EA to the chart, just drag it with the mouse from the Navigator window to the chart and then configure the Inputs. 
But first, you should allow it to work correctly:

1. Check the "Enable Alerts" box.
2. In the "Live Trading" section check the "Allow live trading" and uncheck  the "Ask manual confirmation" box.
3. In the "Safety" section check the "Allow DLL imports" and uncheck the "Confirm DLL function calls". If you won't do this, your EasternMoon won't be allowed to operate.

This screenshot shows how to set up these options correctly:



Time frame

EasternMoon is designed to work on M5 charts only. 

Inputs (default values are in the brackets)

Here are the EA's Inputs, grouped by the purpose:

MagicNumber (19641005)
MagicNumber might be any unique number that you are using to define your Portfolio. It's important that when you are using this EA on several charts, you assign the same MagicNumber to all of them.

StopLoss (0)
ProfitTarget (0)
If these Inputs are set to zero, the EA will be using pre-defined StopLoss and ProfitTarget levels (520/310 for EUR/Jpy and 550/390 for GBP/JPY).
But if you want to use your own StopLoss and/or ProfitTarget levels, enter them here. Just remember, that these Inputs are valued in Pips, so if your Broker uses 3 digits after the decimal dot for these Currencies' prices (like 154.365), use levels like 300 (meaning distance of 300 small pips), but if your Broker uses prices with two digits (like 154.37), use 30 for 30 pips.

* FixedLotSize (0.0)
If you set this to something other than zero, the EA will trade this lot size instead of using Money Management Inputs (see below). 

AllocationPercentage (25.0)
MaxLots (10.0)
These Money-Management Inputs define how the EA calculate the size of the new position when the condition for the entry occurs. First, EA checks your available Free Margin, then it takes the Allocation Percentage of it. Let's say you have a $10,000 margin available and AllocationPercentage is default (25.0), so your available capital for this trade will be 25% of $10,000 which is $2,500:

AvailableCapital = FreeMargin * AllocationPercentage / 100

After that, the EA calculates the amount of money which will be locked by one lot on this trade. To do that, it  calculates maximum loss per lot (based on the StopLoss Input) by increasing the StopLoss by additional 20% (for the assurance), then adds initial margin required for one lot:

LockedMoneyPerLot = StopLoss * PipPrice * 1.2 + InitialMarginPerLot

Let's say, our StopLoss is 600 and the PipPrice for EURUSD on a Mini is $0.1 and the initial margin is $50.00, then our LockedMoneyPerLot will be:

LockedMoneyPerLot = 600 * 0.1 * 1.2 + 50 = $122.00

Now the EA calculates how much lots we can afford on this trade:

PossibleLots = AvailableCapital / LockedMoneyPerLot

In our example:

PossibleLots = 2,500 / 122 = 20 (the number of lots is rounded down to  the nearest integer value).

Now, we have the Input that limits actual number of lots to be traded. It's called MaxLots. So if our PossibleLots is greater then MaxLots, only MaxLots will be traded.

In our example:

MaxLots = 10
PossibleLots = 20

MaxLots is smaller than PossibleLots, so the EA will trade 10 lots.