Forex



Go Back   Forex Trading > Discussion Areas > Setup Questions
Forex Forum Register More recent 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 01-07-2008, 12:58 AM
Junior Member
 
Join Date: May 2006
Posts: 11
RosDaBoss is on a distinguished road
Exclamation Export CSV with Moving Average data

I'd like to export the CSV file with the usual Date, Time, Open .... , but also with several different Moving Average information. I've got 5 different moving averages plotted on chart, but when I export data I don't get it on the "csv" file.
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 01-07-2008, 01:46 AM
Senior Member
 
Join Date: Nov 2006
Posts: 308
luxinterior is on a distinguished road
You could write an EA to write the information to a text file and format it anyway you like. The run it through strategy tester for the dates you require.

There might be another way but that would work.

Hope that helps.

Lux
__________________
Build An Expert Advisor. FREE E-course As Seen On TV
ForexArea.com
Users of Gap Trader from 'Forex-Assistant' MUST Read This
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 01-08-2008, 12:07 AM
Linuxser's Avatar
User Root
 
Join Date: May 2006
Location: Helliconia (Spring)
Posts: 4,413
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
Maybe...

We have some indicators that export data into CSV format.

Like this, or this.

Maybe you could modify some of them to use iMA function, call the data value you need, record, and then DoubleToStr.

Its just theory, not sure if could work.
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 01-20-2008, 10:53 PM
PipScorer's Avatar
Member
 
Join Date: May 2007
Location: New York City, NY
Posts: 80
PipScorer is on a distinguished road
Moving Average Function

HELP... what is function to call the MA value plotted in a separate window???

The iMA function could only call Value of MA from the main_chart window. How do i call the MA Value that is on a separate windows???
Thanks anyone...
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 01-21-2008, 12:02 AM
Linuxser's Avatar
User Root
 
Join Date: May 2006
Location: Helliconia (Spring)
Posts: 4,413
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 PipScorer View Post
HELP... what is function to call the MA value plotted in a separate window???

The iMA function could only call Value of MA from the main_chart window. How do i call the MA Value that is on a separate windows???
Thanks anyone...
You need to call the value of the indicator, not the iMA.

Example (pretty ugly):
When you drop some MA with default settings into main chart window the MA is based on the bars/candle values

When you drop some MA with default settings into separate chart window and the MA is based on the values of a previous dropped indicator. You would have a MA of some indicator.

This generates the data that you need to call.

If you only changed the position of some MA from main chart to windows chart still is only a MA or iMA.
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
  #6 (permalink)  
Old 01-21-2008, 02:18 PM
PipScorer's Avatar
Member
 
Join Date: May 2007
Location: New York City, NY
Posts: 80
PipScorer is on a distinguished road
Quote:
Originally Posted by Linuxser View Post
You need to call the value of the indicator, not the iMA.

Example (pretty ugly):
When you drop some MA with default settings into main chart window the MA is based on the bars/candle values

When you drop some MA with default settings into separate chart window and the MA is based on the values of a previous dropped indicator. You would have a MA of some indicator.

This generates the data that you need to call.

If you only changed the position of some MA from main chart to windows chart still is only a MA or iMA.
Thanks so much
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
  #7 (permalink)  
Old 05-17-2009, 08:50 PM
Junior Member
 
Join Date: May 2007
Posts: 15
ra457 is on a distinguished road
Here you go.

This should help a bit. Even if you don't know what anything means in the code, as long as you can visually locate the different commands for iMACD and iMA, you can edit the heck out of this. Just understand that if you change it at the top, you'll need to change it at the bottom in the FileWrite commands as well.

I'm working on automating it so it exports once an hour and just overwrites the existing csv file.

This one 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
Attached Files
File Type: mq4 [MA_MACD].mq4 (76.4 KB, 11 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
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
XP Moving Average! codersguru Ema Cross 426 11-14-2009 09:24 PM
RSI of Moving Average Kalenzo Indicators - Metatrader 4 272 09-18-2009 02:27 PM
How to calculate Moving Average of a Moving Average babarmughal Expert Advisors - Metatrader 4 4 05-31-2009 03:05 PM
Data export question donb01 Metatrader 4 10 04-08-2008 10:24 AM
Moving Average Of CCI Kurka Fund Expert Advisors - Metatrader 4 1 11-29-2006 04:53 AM


All times are GMT. The time now is 09:27 AM.



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