Forex
Google
New signals service!

Go Back   Forex Trading > Programming > Metatrader Programming


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 Thread Tools Display Modes
  #851 (permalink)  
Old 04-25-2008, 03:09 PM
Senior Member
 
Join Date: Feb 2006
Posts: 513
Michel is on a distinguished road
Really, I don't know how to do that.
If nobody give you an answer here, maybe you should ask on the Metaquote's forum.
If you just want to execute a .exe, one method (not very elegant) is to call it instead of the alert.wav

Last edited by Michel; 04-25-2008 at 03:12 PM.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #852 (permalink)  
Old 04-25-2008, 09:29 PM
Member
 
Join Date: Oct 2006
Posts: 69
Big Be is on a distinguished road
What is wrong with this?

I am trying to get the max and min values of an indicator over the full date range of a chart.
This looks like it should work, but it doesn't cover the whole chart, the "Bars" printout gives a number far lower than the bars in the chart, even if the backtest date range covers the whole chart.
I call it from init().
Why doesn't it work?

double ATRMin = 99999;
double ATRMax;

void ATR_HL()
{
for (int i=1;i<Bars-251;i++)
{
double ATR1 = iATR(NULL,0,250,i);
if (ATR1 < ATRMin) ATRMin = ATR1;
if (ATR1 > ATRMax) ATRMax = ATR1;

}
Print ("Bars ",Bars," ATR1 ",ATR1," ATRMin= ",ATRMin," ATRMAX ", ATRMax);
return(0);
}
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #853 (permalink)  
Old 04-26-2008, 12:34 AM
Junior Member
 
Join Date: Apr 2008
Posts: 2
walesoje1 is on a distinguished road
Expert Build

Hello out there,

Would anyone be so kind to build an EA for me for my trading system?

I have a trading system I want to build an EA for and I have been learning all the while on how to go about building the EA.

I have tried all efforts to get the EA running but I needed to add some codings like trailing stop, proper money management according to account margin, use pending orders to place orders after the close of a candlestick, it must work on all currency at once i.e. trade 14 major currency pairs at once. Take Profit should be included and every 30M trade must be trigerred.

Keep all pending orders until there is a reversal in trend.

Can anyone let me know the possibility of such an EA?

It will also be comparing indicators on 2 different Time Frames.

If anyone can give me codes that can perform all these functions I will appreciate it.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #854 (permalink)  
Old 04-26-2008, 02:45 AM
Linuxser's Avatar
Moderator
 
Join Date: May 2006
Location: Helliconia (Winter)
Posts: 2,501
Blog Entries: 8
Linuxser has disabled reputation
Quote:
Originally Posted by walesoje1 View Post
Hello out there,

Would anyone be so kind to build an EA for me for my trading system?

I have a trading system I want to build an EA for and I have been learning all the while on how to go about building the EA.

I have tried all efforts to get the EA running but I needed to add some codings like trailing stop, proper money management according to account margin, use pending orders to place orders after the close of a candlestick, it must work on all currency at once i.e. trade 14 major currency pairs at once. Take Profit should be included and every 30M trade must be trigerred.

Keep all pending orders until there is a reversal in trend.

Can anyone let me know the possibility of such an EA?

It will also be comparing indicators on 2 different Time Frames.

If anyone can give me codes that can perform all these functions I will appreciate it.
And for that do you need to post everywhere in the forum with the same message?
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #855 (permalink)  
Old 04-26-2008, 05:18 AM
Member
 
Join Date: Oct 2006
Posts: 69
Big Be is on a distinguished road
To jwpdad

I had the same problem when I went from backtest to forward. It was a few minor coding errors.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #856 (permalink)  
Old 04-26-2008, 09:00 AM
Junior Member
 
Join Date: Apr 2008
Posts: 2
walesoje1 is on a distinguished road
hey

Sorry about that. I don't actually know where exactly to post it since this is a very big website.

Sorry about. I discovered all other posts have been deleted and I guess this is just the perfect place to post.

Sorry for the problems.

Quote:
Originally Posted by Linuxser View Post
And for that do you need to post everywhere in the forum with the same message?
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #857 (permalink)  
Old 04-26-2008, 11:53 AM
Senior Member
 
Join Date: Feb 2006
Posts: 513
Michel is on a distinguished road
I think you should have a solution here : MetaTrader FTP client!


Quote:
Originally Posted by sandfromsky View Post
bool SendFTP( string filename, string ftp_path=NULL)
Sends the file to the FTP server set in the Tools->Options->Publisher tab. If the attempt fails, it retuns FALSE.
The function does not operate in the testing mode. This function cannot be called from custom indicators, either.



When SendFTP in custom indicators, it's can't work, but can in scripts.

I tried your method, put my function into a .mph file, and save it into experts\include, it result error No. 4055.



TestFTPInc.mqh

int FTPTest()
{
SendFTP("shots\\" + Symbol() + "_5m_live.gif", NULL);
Alert(GetLastError());
return(0);
}

In my custom indicators, I call it like

if (IsNewBar())
{
WindowScreenShot("shots\\" + Symbol() + "_5m_live.gif", 640, 480);
FTPTest();
}

it result error No. 4055.

Thanks a lot. Have a happy weekend.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #858 (permalink)  
Old 04-27-2008, 02:48 AM
sandfromsky's Avatar
Junior Member
 
Join Date: Feb 2007
Posts: 13
sandfromsky is on a distinguished road
Quote:
Originally Posted by Michel View Post
I think you should have a solution here : MetaTrader FTP client!


Thanks, I'm the #7.

ERROR: The handle is invalid
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #859 (permalink)  
Old 04-27-2008, 07:13 AM
Junior Member
 
Join Date: Nov 2007
Posts: 10
derumuro is on a distinguished road
How to code ?

Hi all,

who can think of the program ?

- if Buy-Signal : open Buy-Order 1; 2; 3; ( I must wait if I will open several orders ? wait or sleep ?)
- if Sell-Signal : close Order 1
- if Sell-Signal 2 && close Order 1: close Order 2 & 3

Send PM?

Thanks
derumuro
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #860 (permalink)  
Old 04-27-2008, 11:13 AM
sandfromsky's Avatar
Junior Member
 
Join Date: Feb 2007
Posts: 13
sandfromsky is on a distinguished road
Quote:
Originally Posted by sandfromsky View Post
Thanks, I'm the #7.

ERROR: The handle is invalid


I can use a FTP client to finish this work. For example, "Super Flexible File Synchronizer". Make screen shot .gif first, use FTP client upload it realtime.

I think I am not a fool man.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply

Bookmarks

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 On
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
How to code this? iscuba11 Metatrader 4 mql 4 - Development course 1 08-03-2007 04:22 PM


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



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