Get Back Your Money

Tuesday, March 24, 2009

Using DLL in New EA

It's a hard task for me to program all EA's logic using C++ language. I have to do this to protect my work from scammers. Looking the backtest result may attrack people to sell it.
I also make this experience as a learning process to C++ programming language. Basically I just familiar with Java programming language wich is similar to C++, but in fact it's only easy to migrate from C++ to Java but not in reverse way.
At the moment I try to put all EA's logic in DLL, and it include the indicator calculation. And again for protecting this EA to be sold then it may have an expiration about 2-3 months, if it has not expiration time then it may limited by account number.
More on this new EA, I put new option to use Martiangle Money Management. The advantage of using Martiangle money management that it can reduce our drawdown. For example if we put our risk 50% with number of trade per position are 4, then in normal money management formula it's equal to 12,5% risk per trade. On the other way, using Martiangle Money Management the risk per trade will gradually increase. Using 50% risk with 4 trades per position, I use 10%,20%,30% and 40% formula. Therefore the first trade only use 10% of 50% risk wich is equal to 5%, the second is 20% of 50% wich is equal to 10%, the third 30% of 50% which is equal to 15% and the last trade will risk 40% of 50% which is equal to 20%.
The disadvantages of using this Martiangle Money Management formula, that almost about 40 percent of profitable trades made by a single trade. And it's more then 60 profitable trade made by only 2 trades. However loosing 1 trade using standar money management will make our equity suffer 12.5% drawdown (assuming 100 stoploss and pip's value is rounded to 1 or 10) while loosing 1 trade using Martiangle Money Management only make the equity suffer 5% drawdown.
Another indicator add to this EA to filter out bad trades, and throw out the former filter TradeLowRangeDay and TradeOutSideBand since this new EA only work for EURCHF and EURGBP.
This picture is the latest backtest result, and no more change I'll make, and now I just try to write all EA's logic from MQL4 languange to C++ programming language before sharing this EA.
VS_EUROCROSS_D01 EUROCHF

0 komentar:

Post a Comment

Risk Warning

Please note that Trading in the Foreign Exchange market might carry potential rewards, but also potential risks. You must be aware of the risks and are willing to accept them in order to trade in the foreign exchange market. Don't trade with money you can't afford to lose.