Forex



Go Back   Forex Trading > Programming > MetaTrader
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
  #1 (permalink)  
Old 05-03-2009, 01:30 AM
Junior Member
 
Join Date: May 2007
Posts: 15
ra457 is on a distinguished road
Wrong parameters count!

I've been looking at this and I can't figure out what I'm doing wrong!

I modified an existing script to handle more pairs and omit the moving average data when sending info to a .csv file.

I'll attach both and hope someone can tell me which single parameter I'm missing!! I know it's an easy fix somewhere but I'm new to programming and I think I just need another set of eyes to look at it.

Thank you in advance,

R
Attached Files
File Type: mq4 Daily Data FILE.mq4 (9.9 KB, 7 views)
File Type: mq4 Rich_daily_explort.mq4 (15.5 KB, 7 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!
Reply With Quote
  #2 (permalink)  
Old 05-03-2009, 05:44 AM
Junior Member
 
Join Date: May 2007
Posts: 15
ra457 is on a distinguished road
Removed array info.. same error

I removed all the array-related commands and referenced the OHLCV directly but am still receiving the same error.

Can someone look at this and tell me if the filewrite command is correct?

I'm still getting

')' - wrong parameters count (147, 6)

Thanks in advance...

R
Attached Files
File Type: mq4 [EXPORT].mq4 (9.1 KB, 3 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!
Reply With Quote
  #3 (permalink)  
Old 05-03-2009, 08:01 AM
Junior Member
 
Join Date: May 2007
Posts: 15
ra457 is on a distinguished road
Thumbs up Problem solved.

The FileWrite command can only use 63 parameters at a time. I had 75 (O,H,L,C & V for 15 pairs) and needed to break it into 2 separate commands. I did need to get rid of the array commands from the original script as they were useless for my purposes. Anyway, I hope someone else can use this. Just drag and drop the script from the navigator (Ctrl+N) onto any chart and it will export the OHLCV data from the previous day to expertsfilesDaily_Base.csv .

This is going to save me so much time!!!
Attached Files
File Type: mq4 [EXPORT].mq4 (9.4 KB, 2 views)

Last edited by ra457; 05-03-2009 at 08:02 AM. Reason: adding attachment
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
  #4 (permalink)  
Old 05-03-2009, 08:08 AM
Member
 
Join Date: Apr 2008
Posts: 50
okfar is on a distinguished road
To much parameters .....
Quote:
... - User data to write, separated by commas. It can be up to 63 parameters.
.
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
  #5 (permalink)  
Old 05-03-2009, 08:29 AM
Member
 
Join Date: Apr 2008
Posts: 50
okfar is on a distinguished road
maybay you can try something like:

Code:
FileWrite(handle, 
StringConcatenate(DoubleToStr(EURUSD_OPEN,4),",", DoubleToStr(EURUSD_CLOSE,4),",", DoubleToStr(EURUSD_HIGH,4),",", DoubleToStr(EURUSD_LOW,4),",",DoubleToStr(EURUSD_Volume,4)),
...
....
...
...
...
...
StringConcatenate(DoubleToStr(EURUSD_OPEN,4),",", DoubleToStr(EURUSD_CLOSE,4),",", DoubleToStr(EURUSD_HIGH,4),",", DoubleToStr(EURUSD_LOW,4),",",DoubleToStr(EURUSD_Volume,4))
);
Result of "StringConcatenate" is 1 parameter

Last edited by okfar; 05-03-2009 at 08:41 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!
Reply With Quote
Reply

Bookmarks


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
Does any1 know how to count pips? Togu Metatrader 4 12 03-11-2008 08:58 PM
MA what not count in the asian session bars lacika Setup Questions 0 11-22-2006 03:32 PM
Script: Count your net positions in MT4 for a symbol ycomp Metatrader 4 4 11-10-2006 04:23 PM
How many parameters can the OrderSend allow? Aaragorn Questions 6 07-17-2006 11:31 PM
Have parameters need a MT4 programmer trevtrade Suggestions for Trading Systems 4 03-08-2006 03:10 PM


All times are GMT. The time now is 11:01 PM.



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