Forex
Google
New signals service!

Go Back   Forex Trading > Downloads > Tools and utilities


Register in Forex TSD!
Trading Systems Leaders in this forum (automated trading systems) are winning more than 3000 pips in a month (30000$ investing one lot every time).
Click here to register and get more information

Reply
 
LinkBack (1) Thread Tools Display Modes
  1 links from elsewhere to this Post. Click to view. #11 (permalink)  
Old 01-25-2007, 10:43 AM
Administrator
 
Join Date: Sep 2005
Posts: 16,799
Blog Entries: 144
newdigital has much to be proud ofnewdigital has much to be proud ofnewdigital has much to be proud ofnewdigital has much to be proud ofnewdigital has much to be proud ofnewdigital has much to be proud ofnewdigital has much to be proud ofnewdigital has much to be proud of
I was reading this article and it's really good to backtest some manual trading systems without EA creating.

I will try to translate shortly. Not word for word. Just very shortly.
Article is here http://articles.mql4.com/ru/195
Author Andrey Khatimlyanskyy:
komposterius[@]mail[.]ru
icq: 211 605 801

Author ( Andrey Khatimlyanskyy ) took some codes from AutoGraf program with their permission.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #12 (permalink)  
Old 01-25-2007, 11:06 AM
Administrator
 
Join Date: Sep 2005
Posts: 16,799
Blog Entries: 144
newdigital has much to be proud ofnewdigital has much to be proud ofnewdigital has much to be proud ofnewdigital has much to be proud ofnewdigital has much to be proud ofnewdigital has much to be proud ofnewdigital has much to be proud ofnewdigital has much to be proud of
1. Motivation.

In this part of article the author said that it is very good that we can backtest EAs in visual mode in Metatrader. Abd he wants to present the way about how to backtest manual trading systems using Metatrader's visual mode without EA creation.

2. Preparation.

So everybody can use Metatrader's strategy tester in visual mode?
Well. First of all you need to download all necessary files to your computer:

- place vHandsTrade.mq4 in \MetaTrader 4\experts\ directory;
- place VisualTestingTools.mq4 file in \MetaTrader 4\experts\include\;
- place two indicators (vTerminal.mq4 and vHistory.mq4) in \MetaTrader 4 Work\experts\indicators\.

And after that compile vHandsTrade EA in MetaEditor. You should not get any errors:



After that you may create template for testin (tpl file). To do that please open any chart, attach vTerminal and vHistory.mq4 indicators and save this template under the name vHandsTrade.tpl:





Please note: you should switch 'Chart shift' option on:

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #13 (permalink)  
Old 01-25-2007, 01:15 PM
Administrator
 
Join Date: Sep 2005
Posts: 16,799
Blog Entries: 144
newdigital has much to be proud ofnewdigital has much to be proud ofnewdigital has much to be proud ofnewdigital has much to be proud ofnewdigital has much to be proud ofnewdigital has much to be proud ofnewdigital has much to be proud ofnewdigital has much to be proud of
3. Adjustment of EA.

Just spend 5 minutes and adjust the settings of vHandsTrade EA and it will be easy for you to test your manual trading system. So do the following.

You will have control panel on your chart. And using this panel you will be able to select lot size, expiration time for pending orders and so on. Basicly it will looks like this one:



This panel is corresponding to some code in EA (open EA in MetaEditor):



Those parameters are very understandable:

- RISK (Risk) - % from deposit;
- LOT (Lot) - lot size for openning the orders if RISK = 0;
- STOPLOSS (SL) - stop loss value if we are not moving stop loss line on the chart;
- TAKEPROFIT (TP) - take profit value if we are not moving stop loss line on the chart;
- TRAILINGSTOP (TS) - trailing stop;
- EXPIRATION (Exp) - exriration time for pending orders (if you will have pending orders).

You may change anything directly inside the code. For example, if you use the following lot sizes: 1.0, 2.0, 5.0, 10.0 and 50.0 so you may change some line inside the code, for example:
Code:
double LOT[] = { 1.0, 2.0, 5.0, 10.0, 50.0 };
And after compilling EA in MetaEditor once again you will see the following control panel on your chart:



What is SELECTED_LOT, SELECTED_RISK, SELECTED_STOPLOSS, SELECTED_TAKEPROFIT, SELECTED_TRAILINGSTOP, SELECTED_EXPIRATION?
It is value by default.
Do you see red colored figures on the control panel? It is default value. For example:
if int SELECTED_LOT = 1 in the code (see image above) so the fist figures will be default. First figutes in lot size line (1.0, 2.0, 5.0, 10.0, 50.0) is 1. Means lot=1 is default value.

If you want to select lot=5 to be default so change as the following:

Code:
int SELECTED_LOT = 3;
And 3rd figures (5 lot size) will be in red color in control panel:



I think it is neccesary to be adjusted one only, select default values for every parameters inside the code.

Last edited by newdigital; 01-25-2007 at 01:18 PM.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #14 (permalink)  
Old 01-25-2007, 01:58 PM
Administrator
 
Join Date: Sep 2005
Posts: 16,799
Blog Entries: 144
newdigital has much to be proud ofnewdigital has much to be proud ofnewdigital has much to be proud ofnewdigital has much to be proud ofnewdigital has much to be proud ofnewdigital has much to be proud ofnewdigital has much to be proud ofnewdigital has much to be proud of
4. Starting.

Now open Strategy Tester in Metatrader, select our EA (vHandsTrade), symbol, model 'every tick', period and so on.

Just before pressing 'Start" open 'Expert Properties' and finish with settings:



And you will see the following settings:

- CommentsCount - max number of cumments on the chart;
- SelectedColor - color for Risk, Lot, SL, TP, and so on values;
- ModifyColor - color for modify order on the chart;
- TrailingColor - color for trailing stop on the chart;
- TerminalRows - if TerminalRows = 0 so Terminal will not be refreshed;
- HistoryRows - max rows for 'Account History'. if HistoryRows = 0 so account history will not be re-freashed;
- BigText - big text=true;
- SignalPoints - distance in pips to see stop loss, take profit and price to open the order on the chart, for example if SignalPoints = 10 so stop loss will ve visible when the price will be 10 pips near the stop loss value;
- ShowCancelled - if true so you will see canceled orders in 'Account History';
- ShowExpired - if true so you will see expired pending orders in 'Account History';
- MainColor - color for heading in Terminal, 'Account History' and for balance and equity
- BuyColor - buy color orders on the chart;
- BuyOPColor;
- BuySLColor;
- BuyTPColor;
- SellOPColor, SellSLColor and SellTPColor - just a color on the chart for sell.

All the colors by default are for black chart. If you use write backgroud for your chart so change the color in EA's asettings accordingly.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #15 (permalink)  
Old 01-25-2007, 02:03 PM
Linuxser's Avatar
Moderator
 
Join Date: May 2006
Location: Helliconia (Spring)
Posts: 3,306
Blog Entries: 46
Linuxser has disabled reputation
I guess is already translated

http://articles.mql4.com/301

http://articles.mql4.com/302

http://articles.mql4.com/303
__________________
Elite Manual Trading | Portfolio | Calendar | Suggestions to improve the forum | My Blog

Remember: Signatures must have three lines as maximum
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #16 (permalink)  
Old 01-25-2007, 02:07 PM
Administrator
 
Join Date: Sep 2005
Posts: 16,799
Blog Entries: 144
newdigital has much to be proud ofnewdigital has much to be proud ofnewdigital has much to be proud ofnewdigital has much to be proud ofnewdigital has much to be proud ofnewdigital has much to be proud ofnewdigital has much to be proud ofnewdigital has much to be proud of
Thanks Linuxser.
It saves my time a lot.
I will stop. So, everybody may read the translation (see previous post).
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #17 (permalink)  
Old 01-25-2007, 02:08 PM
Junior Member
 
Join Date: Oct 2006
Posts: 9
pinedajp is on a distinguished road
Qustion About Placing Orders

Thanks to Newdigital for the translation, now everything seems clearer!!!

Just one question....I understood that we will manage the orders by modifying the code...is that right?.

Thanks Again.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #18 (permalink)  
Old 01-25-2007, 02:10 PM
Junior Member
 
Join Date: Oct 2006
Posts: 9
pinedajp is on a distinguished road
Please disregard my previous post

Thanks to Newdigital and Linuxuser.

Have a good day.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #19 (permalink)  
Old 01-25-2007, 02:34 PM
Linuxser's Avatar
Moderator
 
Join Date: May 2006
Location: Helliconia (Spring)
Posts: 3,306
Blog Entries: 46
Linuxser has disabled reputation
Quote:
Originally Posted by newdigital
Thanks Linuxser.
It saves my time a lot.
I will stop. So, everybody may read the translation (see previous post).

Anytime my friend.

I just discovered the articles on last weekend, and due to "need more time in my day" I´d just can take a read today.

Now we have a manual testing tool. This is absolutely great for all who love manual trading and we feel a little uncomfortable with EA´s. Or just need to test how an indicator perform, etc etc.

Great if metaquotes includes this indicators in coming releases
__________________
Elite Manual Trading | Portfolio | Calendar | Suggestions to improve the forum | My Blog

Remember: Signatures must have three lines as maximum
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #20 (permalink)  
Old 01-25-2007, 03:21 PM
Administrator
 
Join Date: Sep 2005
Posts: 16,799
Blog Entries: 144
newdigital has much to be proud ofnewdigital has much to be proud ofnewdigital has much to be proud ofnewdigital has much to be proud ofnewdigital has much to be proud ofnewdigital has much to be proud ofnewdigital has much to be proud ofnewdigital has much to be proud of
I am tryng to use this manual backtester but stucked: can not modify the orders.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply

Bookmarks

Tags
vHandsTrade

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off
Forum Jump

LinkBacks (?)
LinkBack to this Thread: http://www.forex-tsd.com/tools-utilities/1621-trading-simulators.html
Posted By For Type Date
Hibbiz Journal - Page 2 This thread Refback 03-08-2008 04:48 PM

Similar Threads
Thread Thread Starter Forum Replies Last Post
Mobile Trading/Technical Requirements/Automated Trading Championship icum Tools and utilities 73 07-31-2008 10:23 AM
T Squared Trading LLC Currency Trading/Mercado de Divisas T Squared Trading Deleted Commercial Threads 134 11-28-2007 12:07 PM
Forex Trading Survey (live trading) bcitra General Discussion 1 01-14-2007 03:49 PM


All times are GMT. The time now is 03:19 AM.



Search Engine Friendly URLs by vBSEO 3.2.0 ©2008, Crawlability, Inc.