Watch how to download trading robots for free
Find us on Facebook!
Join our fan page
Interesting script?
So post a link to it -
let others appraise it
You liked the script? Try it in the MetaTrader 5 terminal
Experts

Emagic - expert for MetaTrader 4

Views:
15772
Rating:
(4)
Published:
2012.05.03 07:25
Updated:
2014.04.21 14:55
Emagic1_161.mq4 (10.26 KB) view
Need a robot or indicator based on this code? Order it on Freelance Go to Freelance

One of my first proper EAs and work in progress :P

an EA that opens an order in the direction of a customizable macd signal and ema close/ema open cross

ive included money management or fixed lot size

if money management is chosen you can select max lots and min lots - i included that cause when im testing i like not to be stopped out when my broker doesnt support some kind of lot size. atm im using a microlot account with a max of 0.5 lot and 4 digits. i have tried to make it compatible with a 5 digit acct. only thing is the percent risk for a 5 digit acct you have to write 0.3 to get 3 percent risk.

I have made all the indicators customizable for testing.

can enable or disable mail. when enabled it sends a mail to you when it opens an order.

I have found good results on 4h eur/usd with a 40/50pts SL and im using trailing stop of 11pts only cause thats the smallest stabile ts i can make with my broker - they support 8pts ts, but in a fast moving market it could fail.

Ive included a magicnumber but frankly i havent tested it properly yet.

atm im forwardtesting it on a real microaccount.

Hope you like it and feel free to feedback here :P

Cheers

Strategy Tester Report
Emagic1.161
Butenix-Server (Build 419)


SymbolEURUSD_FX (Euro vs US Dollar)
Periode4 Timer (H4) 2011.01.03 00:00 - 2011.12.30 20:00 (2011.01.01 - 2012.01.01)
ModelHvert tick (the most precise method based on all available least timeframes)
ParametreMagicNumber=12321; SignalMail=true; MM="Auto money management"; AutoMoneyManagement=true; PercentToRisk=3; MaxLots=999; MinLots=0.01; NoMM="when AutoMM is off, use lotsize below."; Lots=0.01; Slippage=3; UseStopLoss=true; StopLoss=40; UseTakeProfit=false; TakeProfit=60; UseTrailingStop=true; TrailingStop=11; Macd="Quick, Slow, Signal"; Qema=10; Sema=32; Signalmacd=4; Ema="fast close, slow open."; Fastema=8; Slowema=13;
Bars i test2556Ticks modelleret8131424Modelkvalitet86.27%
Uoverenstemmende graf fejl4
Deponeret indledningsvis50.00
Totale net profit637.55Bruttofortjeneste (gross profit)2665.68Bruttotab (gross loss)-2028.13
Profitfaktor1.31Forventet payoff0.70
Absolut drawdown1.81Maksimal drawdown141.85 (21.33%)Relativt drawdown21.86% (134.90)
Samlet antal handler905Short positions (vinder %)441 (80.05%)Long positions (vinder %)464 (80.60%)
Profit handler (% of samlet antal)727 (80.33%)Tabs handler (% af samlet antal)178 (19.67%)
Storsteprofitgivende handel31.90tabsgivende handel-21.65
Gennemsnitligprofitgivende handel3.67tabsgivende handel-11.39
MaksimumFortlobende wins (profit in money)23 (71.17)Fortlobende tab (loss in money)4 (-11.78)
Maksimalfortlobende profitter (count of wins)101.92 (22)fortlobende tab (count of losses)-37.75 (2)
Gennemsnitligfortlobende wins5fortlobende tab1

MTF Zigzag with 3 level MTF Zigzag with 3 level

3 TF Zigag Level with same settings.

Heiken Ashi Oscillator Heiken Ashi Oscillator

Choosing between Heiken Ashi bars and candlesticks is a problem and measuring when the short term trend is losing strengh is another one. This indicator solves both.

MAC-Fibo indicator MAC-Fibo indicator

Indicator based on MACFibo trading strategy

MACDcrossAUDD1 MACDcrossAUDD1

A simple robot to trade AUDUSD D1 chart only when MACD crosses.