Forex



Go Back   Forex Trading > Downloads > Tools and utilities
Forex Forum Register More recent Blogs Calendar Advertising Others Help






Register
Welcome to Forex-TSD!, one of the largest Forex forums worldwide, where you will be able to find the most complete and reliable Forex information imaginable.

From the list below, select the forum that you want to visit and register to post, as many times you want. It’s absolutely free. Click here for registering on Forex-TSD.

Exclusive Forum
The Exclusive Forum is the only paid section. Once you subscribe, you will get free access to real cutting-edge Trading Systems (automated and not), Indicators, Signals, Articles, etc., that will help and guide you, in ways that you could only imagine, with your Forex trading.
  • Elite Section
    Get access to private discussions, specialized support, indicators and trading systems reported every week.
  • Advanced Elite Section
    For professional traders, trading system developers and any other member who may need to use and/or convert, the most cutting-edge exclusive indicators and trading systems for MT4 and MT5.
See more

Reply
 
Thread Tools Display Modes
  #11 (permalink)  
Old 01-25-2007, 10:43 AM
Administrator
 
Join Date: Sep 2005
Posts: 20,058
Blog Entries: 241
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!StumbleUpon this Post!Reddit this Post!Facebook this Post!BlinkList this Post!Google Bookmarks this Post!Yahoo! My Web this Post!
Reply With Quote
  #12 (permalink)  
Old 01-25-2007, 11:06 AM
Administrator
 
Join Date: Sep 2005
Posts: 20,058
Blog Entries: 241
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!StumbleUpon this Post!Reddit this Post!Facebook this Post!BlinkList this Post!Google Bookmarks this Post!Yahoo! My Web this Post!
Reply With Quote
  #13 (permalink)  
Old 01-25-2007, 01:15 PM
Administrator
 
Join Date: Sep 2005
Posts: 20,058
Blog Entries: 241
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!StumbleUpon this Post!Reddit this Post!Facebook this Post!BlinkList this Post!Google Bookmarks this Post!Yahoo! My Web this Post!
Reply With Quote
  #14 (permalink)  
Old 01-25-2007, 01:58 PM
Administrator
 
Join Date: Sep 2005
Posts: 20,058
Blog Entries: 241
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!StumbleUpon this Post!Reddit this Post!Facebook this Post!BlinkList this Post!Google Bookmarks this Post!Yahoo! My Web this Post!
Reply With Quote
  #15 (permalink)  
Old 01-25-2007, 02:03 PM
Linuxser's Avatar
User Root
 
Join Date: May 2006
Location: Helliconia (Winter)
Posts: 4,410
Blog Entries: 56
Linuxser has a reputation beyond reputeLinuxser has a reputation beyond reputeLinuxser has a reputation beyond reputeLinuxser has a reputation beyond reputeLinuxser has a reputation beyond reputeLinuxser has a reputation beyond reputeLinuxser has a reputation beyond reputeLinuxser has a reputation beyond reputeLinuxser has a reputation beyond reputeLinuxser has a reputation beyond reputeLinuxser has a reputation beyond repute
I guess is already translated

http://articles.mql4.com/301

http://articles.mql4.com/302

http://articles.mql4.com/303
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!StumbleUpon this Post!Reddit this Post!Facebook this Post!BlinkList this Post!Google Bookmarks this Post!Yahoo! My Web this Post!
Reply With Quote
  #16 (permalink)  
Old 01-25-2007, 02:07 PM
Administrator
 
Join Date: Sep 2005
Posts: 20,058
Blog Entries: 241
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!StumbleUpon this Post!Reddit this Post!Facebook this Post!BlinkList this Post!Google Bookmarks this Post!Yahoo! My Web 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!StumbleUpon this Post!Reddit this Post!Facebook this Post!BlinkList this Post!Google Bookmarks this Post!Yahoo! My Web 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!StumbleUpon this Post!Reddit this Post!Facebook this Post!BlinkList this Post!Google Bookmarks this Post!Yahoo! My Web this Post!
Reply With Quote
  #19 (permalink)  
Old 01-25-2007, 02:34 PM
Linuxser's Avatar
User Root
 
Join Date: May 2006
Location: Helliconia (Winter)
Posts: 4,410
Blog Entries: 56
Linuxser has a reputation beyond reputeLinuxser has a reputation beyond reputeLinuxser has a reputation beyond reputeLinuxser has a reputation beyond reputeLinuxser has a reputation beyond reputeLinuxser has a reputation beyond reputeLinuxser has a reputation beyond reputeLinuxser has a reputation beyond reputeLinuxser has a reputation beyond reputeLinuxser has a reputation beyond reputeLinuxser has a reputation beyond repute
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
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!StumbleUpon this Post!Reddit this Post!Facebook this Post!BlinkList this Post!Google Bookmarks this Post!Yahoo! My Web this Post!
Reply With Quote
  #20 (permalink)  
Old 01-25-2007, 03:21 PM
Administrator
 
Join Date: Sep 2005
Posts: 20,058
Blog Entries: 241
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!StumbleUpon this Post!Reddit this Post!Facebook this Post!BlinkList this Post!Google Bookmarks this Post!Yahoo! My Web this Post!
Reply With Quote
Reply

Bookmarks

Tags
vHandsTrade, vHandsTrade.mq4, vterminal.mq4


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
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

Similar Threads
Thread Thread Starter Forum Replies Last Post
Forex Trading Survey (live trading) bcitra General Discussion 2 11-06-2009 11:12 PM
Mobile Trading/Technical Requirements/Automated Trading Championship icum Tools and utilities 82 06-01-2009 05:36 PM


All times are GMT. The time now is 05:48 AM.



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