Forex
Google
New signals service!

Go Back   Forex Trading > Metatrader Training > Metatrader 4 mql 4 - Development course > Questions


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 (2) Thread Tools Display Modes
  #1261 (permalink)  
Old 08-18-2008, 10:03 AM
Warren's Avatar
Junior Member
 
Join Date: Jan 2006
Posts: 9
Warren is on a distinguished road
How to automatically close open position after 1 hour?

Dear colleagues!

Could someone post piece of EA code which automatically closes open position exactly after definite time interval, for example, after 1 hour or 3600 seconds? It needed in case if open position didn't reached Take Profit or Stop Loss after exact minutes/hours.

Best regards,
Warren
__________________
Short Term Pain for Long Term Gain!
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #1262 (permalink)  
Old 08-19-2008, 06:48 AM
basza's Avatar
Senior Member
 
Join Date: Dec 2005
Posts: 146
basza is on a distinguished road
zig zag pointer as a filter?

Hi all

I new to writing EA's and would like a little bit of help please.

Could someone please tell me how I could add the zig_zag_pointer as a filter in an ea. How do you tell if arrow is down or up?

I have added the indi I want to use below.

Thanks in advance.
Attached Files
File Type: mq4 ZigZag_Pointer_alert.mq4 (5.4 KB, 1 views)
__________________
http://westauckfx.oxyrack.com/
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #1263 (permalink)  
Old 08-19-2008, 07:48 AM
Junior Member
 
Join Date: Jul 2008
Posts: 2
mike1247 is on a distinguished road
please help. Basic code MQL4.

Quote:
Originally Posted by codersguru View Post
Hi folks,

I've got a lot of private messages asking me for helping with some pieces of code.

Here you can post your questions related to MQL4, and I'll do my best to answer them.
Hello.
I'm new in programming but really serious to learn.
I read one example in metatrader platform (moving average.mq4).

there is a line of code that i don't understand its purpose (I put a mark in moving average.mq4).

I modified some part of this EA in order to anticipate requote or rejection from the broker once the EA sent ordersend() for buy or sell.

Please advice me if this block of code could works or not.

Many thanks in advance.

Cheers,
Mike
Attached Files
File Type: mq4 Moving Average.mq4 (7.7 KB, 3 views)
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #1264 (permalink)  
Old 08-20-2008, 11:34 AM
Junior Member
 
Join Date: Feb 2007
Posts: 1
bengold is on a distinguished road
Please I need help in correcting the bug in this ea

I will be very glad if someone could help in correcting the bug in the attached ea.
Attached Files
File Type: mq4 100 pips v3.1 with EquityGainPercentage.mq4 (8.1 KB, 7 views)
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #1265 (permalink)  
Old 08-24-2008, 07:56 PM
Junior Member
 
Join Date: Apr 2006
Posts: 3
eddieee2000 is on a distinguished road
Help with Hedge EA

Can anyone help me code a "batch order"? I would like to have something that allows me to enter two seperate positions with the click of a button. I typically trade in hedged positions. I have several different pairs I trade at different times. All I would like to have is an EA that the moment I turn it on, it will (for example) enter me into a 1 lot long on the EURUSD and 1 lot short on the GBPUSD. Can anyone help assist me with this code? It would sure be much nicer to simply hit one button rather than to open one chart click new order, click buy and then race to open the next chart hit new order and sell it.
Thanks,
EZ
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #1266 (permalink)  
Old 08-24-2008, 09:34 PM
JBear's Avatar
Member
 
Join Date: Aug 2008
Location: Adelaide South Australia
Posts: 45
JBear is on a distinguished road
Help

Can someone please tell me why is it that everytime I try to download an EA or indicator from this site the first thing I have to do is to sign in even though I am already signed in and then it gives me the file in HTML Code. Am I doing something wrong

Thanks in advance

JBear
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #1267 (permalink)  
Old 08-25-2008, 02:55 AM
Linuxser's Avatar
Moderator
 
Join Date: May 2006
Location: Helliconia (Spring)
Posts: 3,322
Blog Entries: 46
Linuxser has disabled reputation
Quote:
Originally Posted by JBear View Post
Can someone please tell me why is it that everytime I try to download an EA or indicator from this site the first thing I have to do is to sign in even though I am already signed in and then it gives me the file in HTML Code. Am I doing something wrong

Thanks in advance

JBear
I don't know what browser are you using. And assuming you have a default installation, not a tweaked one...

For Firefox and Opera (the best choice) you need to be logged in. Just be careful to check the "Remember me" option on the login process. See pictures.

For Explorer, if you're not logged in the browser will display the mql4 file as HTML within some posts. Not all posts will let you do that. This is often with old posts. Otherwise browser it will request the log process.

2008-08-24_224438.gif

2008-08-24_224448.gif

Any other problem is you browser config. For questions like this one please, next time post on this thread Questions: how to start with MetaTrader and forex
__________________
Elite Manual Trading | Portfolio | Calendar | Suggestions to improve the forum | My Blog

Remember: Signatures must have three lines as maximum
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #1268 (permalink)  
Old 08-25-2008, 04:46 AM
Senior Member
 
Join Date: Oct 2007
Posts: 224
Dave137 is on a distinguished road
Question Icustom indicator

How would I write a iCustom input for an EA. The indicator name is CycleTarget.

Here are the variables of the indicator:

extern int PriceActionFilter=1;
extern int Length=3;
extern int MajorCycleStrength=4;
extern bool UseCycleFilter=false;
extern int UseFilterSMAorRSI=1;
extern int FilterStrengthSMA=12;
extern int FilterStrengthRSI=21;

a=iCustom(NULL,0,????????????,0,0); What do I use to fill in the ???

Confused??

Dave
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #1269 (permalink)  
Old 08-25-2008, 06:28 AM
JBear's Avatar
Member
 
Join Date: Aug 2008
Location: Adelaide South Australia
Posts: 45
JBear is on a distinguished road
Hi Linuxser

Thanks for your help

I will go to the other place that you have directed me

By the way I am using Explorer

Regards

JBear
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #1270 (permalink)  
Old 08-25-2008, 11:14 PM
Linuxser's Avatar
Moderator
 
Join Date: May 2006
Location: Helliconia (Spring)
Posts: 3,322
Blog Entries: 46
Linuxser has disabled reputation
Hi JBear,

Just remember to click on "Remember me" with every browser (Firefox, Opera, Explorer, Safari...) and do not higly restric cookies.
__________________
Elite Manual Trading | Portfolio | Calendar | Suggestions to improve the forum | My Blog

Remember: Signatures must have three lines as maximum
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply

Bookmarks

Tags
histogram, forex, ZUP_v1.mq4

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

LinkBacks (?)
LinkBack to this Thread: http://www.forex-tsd.com/questions/270-ask.html
Posted By For Type Date
OzFx System:) - Page 639 This thread Refback 06-21-2008 10:53 PM
Forex SRDC Sidus Sibkis EA MT4 Forum OTCSmart This thread Refback 12-08-2007 12:46 PM


All times are GMT. The time now is 06:21 AM.



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