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

Closed Thread
 
Thread Tools Display Modes
  #181 (permalink)  
Old 03-13-2009, 01:01 PM
Member
 
Join Date: Mar 2009
Location: Slovenia, EU
Posts: 32
weirdgod is on a distinguished road
How to Save Balance to Excel file once per day...

Hello there

I am new at MT4 scripting, so please forgive me if I am asking a stupid thing...
I am testing few EAs, and what I would like to do, is export current account balance (and optionally daily change) to a .csv or .txt file, once every day (at 00:01 for example)...
I tried writing a script that would do that, but although i was looking for examples, i did not get past this:

int start()
{
//----
int handle;
handle=FileOpen("my_data.csv",FILE_CSV|FILE_READ,' ;');
if(handle<1)
{
Print("File c:\my_data.dat not found, the last error is ", GetLastError());
return(false);
}
balance=DoubleToStr(AccountBalance(),2);

//----
return(0);
}
//+---------


So, I know how to open a file and how to get balance... But how to write it the end of file?
And how to run this at exact time, but only once daily?

thanks,
Jaka

Last edited by weirdgod; 03-13-2009 at 01:28 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!
  #182 (permalink)  
Old 04-18-2009, 11:54 AM
Junior Member
 
Join Date: Oct 2006
Posts: 1
adamww is on a distinguished road
help with excell formula

Who could help me to modify excel formula for calculating losers row.
spreadsheet attached
Attached Files
File Type: rar New Microsoft Office Excel Worksheet (2).rar (6.4 KB, 113 views)
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!
  #183 (permalink)  
Old 05-13-2009, 12:49 AM
fungraphic's Avatar
Member
 
Join Date: Dec 2007
Posts: 50
fungraphic is on a distinguished road
Quote:
Originally Posted by 67-17454 View Post
Here is a tool for combining trading results into an Excel spreadsheet from multiple accounts.

Put the EA where you want to start collecting results. This dumps the data so Excel can ingest it. Put that path in the Startup worksheet of the Excel spreadsheet along with which currency pair you want to extract and the name of the tab/worksheet you want the results to be placed. After extracting the information, it creates a Summary sheet of all of the sheets it analyzed with results by date & tab. It's not as pretty as the other, but I had a lot of kludged code in that which was customized for the sordid way I have my folders laid out.

When you launch the spreadsheet, you have to enable macros or it can't work. All of the source for the spreadsheet macros & EA are included as well as an instruction sheet, so tweak to your own tastes.

UsingProcessResults.pdf (32.6 KB, 343 views)

CalcResults.ZIP (29.9 KB, 311 views)
GetHistory.mq4 (1.0 KB, 251 views)

Don't work in office 2007!!!
Help please
Attached Images
File Type: gif ScreenHunter_02 May. 13 02.34.gif (13.1 KB, 359 views)
File Type: gif ScreenHunter_03 May. 13 02.34.gif (7.3 KB, 356 views)

Last edited by fungraphic; 05-13-2009 at 01:35 AM.
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!
  #184 (permalink)  
Old 05-17-2009, 06:52 PM
Junior Member
 
Join Date: May 2007
Posts: 15
ra457 is on a distinguished road
Moving Average and MACD export to .csv

Hey everybody,

This is the newest of three separate scripts I've created in the last couple weeks to help me populate an interactive spreadsheet. It exports data for the following pairs:


EURUSD
GBPUSD
USDCHF
GBPCHF
EURCHF
USDJPY
GBPJPY
EURJPY
AUDJPY
NZDJPY
CHFJPY
USDCAD
AUDUSD
NZDUSD
EURGBP
EURAUD
EURCAD
AUDCAD
AUDNZD


It exports the 32, 64 and 200 period moving average values for M15, H1, H4 and D1. It also exports the MACD values from the last 4 bars on M15, H1, H4 and D1.

R

[ help with a csv export ]
Attached Files
File Type: mq4 [MA_MACD].mq4 (76.4 KB, 42 views)

Last edited by ra457; 05-18-2009 at 12:44 AM.
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!
  #185 (permalink)  
Old 05-18-2009, 03:53 AM
Junior Member
 
Join Date: May 2009
Posts: 14
binar is on a distinguished road
Seeking for an Excel FX Trader Log Template

Fellow Forum Members,
The link below shows a FX Trader Log app that I think is pretty cool:


http://www.fxtraderlog.com/screenshots.htm

What I don't like about it is that it's not setup in EXCEL. Therefore, I don't plan to buy it. Can anyone out there let me know where online I could find a FX Trader Log similar to what is shown in the link above but that is setup using Excel?

I'm not an Excel wizard, but isn't it possible in EXCEL to setup bar charts that dyanmically respond to date range filtering? I'm using Excel 2007 and my objective is to setup a trading log that tracks my performance with something that in known as a dashboard in EXCEL lingo.

I would appreciate hearing from anyone out there that is willing to point me to some EXCEL files that are already setup as a FX Trader Log that has all of the necessary formulas and charts already included. Thanks.

Last edited by binar; 05-18-2009 at 04:42 AM. Reason: Link was not displaying with correct text
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!
  #186 (permalink)  
Old 05-18-2009, 10:00 PM
Member
 
Join Date: Apr 2007
Posts: 62
scalpmaster is on a distinguished road
Excel worksheet needed for coin toss

I was wondering if a simple excel worksheet can be created to project the effects of applying different types of betting progressions to a user defined number of coin flip simulations.

The user input a certain amount of capital and he begins with a bet of x% of this capital with a user defined progression set in the simulator, for example,
bet ratio 1-2-2-4-2-1 restarting at 1 at any stage if it is a win, and also switching the bet to the opposite side (H or T) at the next throw whenever it is a win but following the progression set on the same side (H or T) if it is a loss.

I am interested to find out what are the maximum number of bets various progressions can enable the betting to go on before implosion, and create some statistics for different sample sizes of each type of progression(user defined).

I would appreciate if anyone can help to create and post this excel worksheet. Thanks.

Last edited by scalpmaster; 05-18-2009 at 10:20 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!
  #187 (permalink)  
Old 06-13-2009, 05:25 PM
Senior Member
 
Join Date: Sep 2007
Posts: 121
Ms_Mel is on a distinguished road
When I was working in an office, I couldn't have my CHARTS up on my screen to watch my trades, so I made myself a nice little Excel thing (which I put to the right side, so I could slide to it then come back to my normal work).

All you need to do is put something like this in a cell:

=MT4|bid!EURUSD

This will give you the current price in real time. Then you make a simple formula where you enter your entry price minus current price and you can instantly see how your trades are doing.

Make sure you've got an instance of MT4 running in the background (minimized) for this to work.

And if your boss happens to walk by and mention he's seeing "numbers changing on your Excel screen", simply smile and tell him he drank too much yesterday (and quickly slide back to your original work )
__________________
Profitable trading starts here:
http://forexleader-forexleader.blogspot.com/
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!
  #188 (permalink)  
Old 06-30-2009, 11:46 AM
Junior Member
 
Join Date: Jun 2009
Posts: 4
pipdevil is on a distinguished road
How to connect/export MT4 to Excel

What are the tools out there available to manage MT4 via Excel. Would not it be nice if there was an Excel based trading platform that could interact with MT4?
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!
  #189 (permalink)  
Old 07-09-2009, 03:50 PM
Junior Member
 
Join Date: May 2008
Posts: 9
i2trader is on a distinguished road
Working with Excel 2000 and 2003

My question is this = in Excel if you want the MT4 platform the return the value to the workkbook one would use this in the cell selected

=MT4|BID!USDCHF for the Bid and

=MT4|ASK!USDCHF for the Ask and so on

So the Question is how does one return the current price or better yet the current trade?

I tried a couple of thing but it does not seem to work. I doh't see anything in the Documentation or I am in the wrong section.
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!
  #190 (permalink)  
Old 07-10-2009, 12:26 AM
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 i2trader View Post
My question is this = in Excel if you want the MT4 platform the return the value to the workkbook one would use this in the cell selected

=MT4|BID!USDCHF for the Bid and

=MT4|ASK!USDCHF for the Ask and so on

So the Question is how does one return the current price or better yet the current trade?

I tried a couple of thing but it does not seem to work. I doh't see anything in the Documentation or I am in the wrong section.
You´re working with current price according with the instructions you write inside excel cell.
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!
Closed Thread

Bookmarks

Tags
adaptive moving average excel, average directional index excel, Directional Movement Index EXCEL, excel, excel forex, Excel Hilbert transform, forex excel, forex excel tools, hilbert, hilbert transform excel, Kaufman, parabolic SAR calculation excel, parabolic sar excel, parabolic sar excel formula, parabolic sar formula excel, Parabolic SAR in Excel, parabolic SAR spreadsheet, ta-lib.xll


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
Mql2Mq4 Conversion Tool Beta V0.2 yousky Tools and utilities 33 10-20-2006 09:59 AM
4 Hr Expert very profitable needs conversion saslam Expert Advisors - Metatrader 4 8 09-24-2006 12:57 PM
Some useful tools ( portable version, so, working WITHOUT installation ) De Vinci Tools and utilities 1 08-18-2006 04:16 PM
Thread subscription tools not working cardio General Discussion 1 02-21-2006 08:13 PM


All times are GMT. The time now is 12:24 PM.



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