How to setup MT4 Expert Advisor Simulation? - article from articlesbase.com




1) The choice of simulation chart period. The commonly used charting period is 1 minute chart (M1), 5 minutes chart (M5), 15 minutes chart (M15), 1 hour chart (H1), 4 hour chart (H4) and 1 day chart (D1). From my experiences, simulating with M1 period result will produce accurate results from your EA. Any chart time frame greater then 1M, will result in frame stepping by the simulator. The simulator will step thru the time frame and aggregate the closet to your number, which can cause false breakout and unrealistic result.

2) Use fully downloaded M1 result from a data server. Many broker nowadays support client to backwards download data from now to 2002 (at least last 10 years of data). Once full M1 data downloaded, you can use period converter to convert to M5, M15, H1, H4 and D1 database. This will complete the database that is used by simulator when called to run back testing for your EA.

3) Most EA are ready to be used for live and demo trading. However, if you are modifying a EA that is meant for live trading, you need to include below 3lines of code to let it run in back testing mode by the simulator.
AdChoices

line1: static datetime nextRund

line2: if( nextRund > TimeCurrent() ) return(0);

line3: nextRund = TimeCurrent() + 30;


The above codes with delay your program by 30 seconds before it proceed to executed the next program. You cannot use while loop or jump program as it is non static and will stop the moment the program executed the last line of code. The above actually set a static variable and this variable is match with the time in the PC. As this variable is static, it will stay in memory when your program exist and execute again. The 30 is default in terms of seconds. This may be difficult at first, but after some trial and error, you will get use to it and use different time seconds to your advantage.

4) Delay is non static but it can be use to temporarily stop the program while running other function. This is extremely using if you are running multiple EA and executing on a single data server. By setting different delays, your program will execute at different time thus not congesting the order send to your server. This act as multitasking your order and does average your CPU utilisation over time.

The above are some factor to consider. Thank you

Source http://www.articlesbase.com/currency-trading-articles/how-to-setup-mt4-expert-advisor-simulation-5738197.html





Your plain-English guide to currency trading

Forex markets can be one of the fastest and most volatile financial markets to trade. Money can be lost or made in a matter of seconds, and forex markets are always moving. So how do you keep up? This hands-on, friendly guide shows you how the forex market really works, what moves it, and how you can actively trade in it — without losing your head!
  • All the world's a stage — get an easy-to-follow introduction to the global forex market and understand its size, scope, and players
  • Show me the money — take a look at the major fundamental and economic drivers that influence currency values and get the know-how to interpret data and events like a pro
  • Prepare for battle — discover different types of trading styles and make a concrete strategy and game plan before you act on anything
  • Pull the trigger — establish a position in the market, manage the trade while it's open, and close out on the most advantageous terms
Open the book and find:
  • Currency trading conventions and tools
  • Key characteristics of successful traders
  • Trading pitfalls to avoid and risk management rules to live by
  • How major currencies typically trade
  • Why it's important to be organized and prepared
  • The 411 on buying and selling simultaneously
  • Tips for understanding rollovers and interest rates
Learn to:
  • Grasp currency quotes
  • Capitalize on the foreign exchange market
  • Manage risk and reward
  • Use the forces that drive currency movements
  • Identify key traits of individual currency pairs  

Editorial Reviews

Review

"It offers practical guidance and savvy tips.." (Hedge Fund Manager, Thursday 23rd August) "…gives readers a step by step guide (to) getting acquainted with the forex market and to making those killer transactions." (Professional Pensions, Thursday 30th August 2007) --This text refers to an out of print or unavailable edition of this title.

From the Back Cover

Features forex market guidelines and sample trading plansThe fun and easy way® to get started in currency trading
Want to capitalize on the growing forex market? This nuts-and-bolts guide gives you a step-by-step action plan for understanding and trading the forex market. It offers practical guidance and savvy tips in everything from comprehending currency quotes to using leverage, trading with fundamentals, and navigating technical analysis.
  • Identify trading opportunities
  • Understand what drives the market
  • Choose a trading broker
  • Execute a successful trade
  • Minimize risk and maximize profit
  • Analyze currency charts
--This text refers to an out of print or unavailable edition of this title.

About the Author

Brian Dolan has worked for more than 20 years in the forex market as a currency trader and analyst. As the Chief Currency Strategist at FOREX.com, Brian oversees fundamental and technical analysis and is a frequent resource for the financial media on currency developments.



No comments:

Post a Comment

Top Forex Automated Trading Expert Advisor (EA)


Forex EAROI (Monthly)Profit FactorMax Draw DownS3 ScoresStar RatingAlexa.com
FAP Turbo207%31.770.32%280 points5 starsRank 31,123
GPS Forex Robot28%3.935.68%260 points4 starsRank 283,290
Forex MegaDroid19.8%NANA250 points4 starsRank 72,310
Leo Trader Pro32%2.855.84%250 points4 starsRank 213,570
Forex BulletProof11%1.3219%250 points4 starsRank 309,467
Million Dollar Pips925%2.132.58%240 points4 starsRank 75,635
Forex Growth Bot148%1.669.05%190 points3 starsRank 214,229
Forex Over Drive5.8%NA21%190 points3 starsRank 453,393

Fully editable *.mq4 files that compile successfully with no errors (3MB zip file with 200+ EA codes. Including 40+ strategies from the Strategy Book. You can download the Free Strategy Book by joining my email newsletter on the right side of this website. Click "Buy Now" to make payment and instant down the Best Forex Ranking Cook Book at USD $79 (One time payment only) Click here for more info

Please inform me if unable to purchase or download (send to sngerge@gmail.com)