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
  #1241 (permalink)  
Old 07-27-2008, 12:05 AM
Member
 
Join Date: Apr 2007
Posts: 57
goldivx is on a distinguished road
EA Stop at Specific Time

I'm looking for a piece of code that will shut off EA operation at a specific time.

Anyone know how to do that?
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #1242 (permalink)  
Old 07-27-2008, 12:58 AM
Member
 
Join Date: Apr 2007
Posts: 57
goldivx is on a distinguished road
Quote:
Originally Posted by goldivx View Post
I'm looking for a piece of code that will shut off EA operation at a specific time.

Anyone know how to do that?
Nevermind. I figured it out.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #1243 (permalink)  
Old 07-27-2008, 03:03 AM
Member
 
Join Date: Apr 2007
Posts: 57
goldivx is on a distinguished road
Sorry for a triple post. I don't see an edit button or I would've just edited one post.

Anyway, I have another question.

Anyone have code to close all positions at a given time?
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #1244 (permalink)  
Old 07-27-2008, 04:18 AM
Member
 
Join Date: Apr 2007
Posts: 57
goldivx is on a distinguished road
Quote:
Originally Posted by goldivx View Post
Sorry for a triple post. I don't see an edit button or I would've just edited one post.

Anyway, I have another question.

Anyone have code to close all positions at a given time?
Nevermind, figured that out too. I'll shut up now.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #1245 (permalink)  
Old 07-30-2008, 10:16 AM
Member
 
Join Date: Feb 2008
Posts: 56
dragosd1 is on a distinguished road
EA modification

Hi, could someone help me to modify PipMaker to a version that acts "im the mirror", so when we have a BUY to make a SEL and viceversa? I know it has the "reverse" option, but it didn't act exactly reverse, so I need it to have a buy signal and make a sell in "reverse mode true". I think it's very simple, but didn't manage to do it myself....
Thank's a lot
Attached Files
File Type: mq4 PipMaker_modified_FOR_TESTS_ONLY.mq4 (40.8 KB, 3 views)
File Type: mq4 Pipmaker_V15_1.mq4 (36.8 KB, 4 views)
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #1246 (permalink)  
Old 07-30-2008, 01:09 PM
Junior Member
 
Join Date: Jun 2008
Posts: 4
loum49 is on a distinguished road
Buy order script

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.
CodersGuru,

Can you please help me modify this buy/sell order scripts so I can place pending order 2 - 5 pips under the current live market prices?

Can you be friendly and give me a hand? I dont know how to code...

thanks for your help
Attached Files
File Type: mq4 Buy Order.mq4 (1,016 Bytes, 5 views)
File Type: mq4 Sell Order.mq4 (1,014 Bytes, 5 views)
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #1247 (permalink)  
Old 07-30-2008, 01:26 PM
hesam_0082000's Avatar
Junior Member
 
Join Date: Jun 2008
Posts: 2
hesam_0082000 is on a distinguished road
need help

can some one code an indicator count number of oscilation in each candel??????????????
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #1248 (permalink)  
Old 07-31-2008, 06:53 PM
matrixebiz's Avatar
Senior Member
 
Join Date: Oct 2006
Posts: 1,174
matrixebiz is on a distinguished road
Quote:
Originally Posted by cja View Post
Hi ANCOLL

Good to hear from you again, I have just got back from the Christmas holidays and am ready to get back into it. I use this code I hope you find it works for you.

string Message="";

datetime expire = D'2008.02.04 12:00';

if (TimeCurrent()>expire){
Alert("Trial has ended. Please contact xxxx @ xxxx.com");
return(0);
}else {Message="Price Display Activated";}


ObjectDelete("Price_Account_Info");
ObjectCreate("Price_Account_Info", OBJ_LABEL,WindowFind("Price"), 0, 0);
ObjectSetText("Price_Account_Info",""+Message+" - Expires "+TimeToStr(expire)+"",8, "Tahoma", ForestGreen);
ObjectSet("Price_Account_Info", OBJPROP_CORNER, 3);
ObjectSet("Price_Account_Info", OBJPROP_XDISTANCE, 5);
ObjectSet("Price_Account_Info", OBJPROP_YDISTANCE, 5);





This code puts a message into the indicator window or chart window and an expiry into an Alert Box



Attachment 51899



This example puts a message into the indicator window or chart window and an expiry into the top left of the chart



datetime expire = D'2008.02.04 13:25';

if (TimeCurrent()>expire){
Comment("Trial has ended. Please contact xxxx @ xxxx.com");
return(0);
}else {Message="Price Display Activated";}


ObjectDelete("Price_Account_Info");
ObjectCreate("Price_Account_Info", OBJ_LABEL,WindowFind("Price"), 0, 0);
ObjectSetText("Price_Account_Info",""+Message+" - Expires "+TimeToStr(expire)+"",8, "Tahoma", ForestGreen);
ObjectSet("Price_Account_Info", OBJPROP_CORNER, 3);
ObjectSet("Price_Account_Info", OBJPROP_XDISTANCE, 5);
ObjectSet("Price_Account_Info", OBJPROP_YDISTANCE, 5);




Attachment 51900

This next example puts both the messages into Comments on the top left of the chart.


datetime expire = D'2008.02.04 13:25';

if (TimeCurrent()>expire){
Comment("Trial has ended. Please contact xxxx @ xxxx.com");
return(0);
}else {Comment("Price Display Activated");}


All of these codes make the indicator disappear when the expiry time is up

A simple indicator as an example posted below

Attachment 51902

cja
Updated below

Last edited by matrixebiz; 08-02-2008 at 11:54 PM.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #1249 (permalink)  
Old 07-31-2008, 11:10 PM
Linuxser's Avatar
Moderator
 
Join Date: May 2006
Location: Helliconia (Spring)
Posts: 3,322
Blog Entries: 46
Linuxser has disabled reputation
datetime expire = D'2008.02.04 12:00';
if (TimeCurrent()>expire){
__________________
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
  #1250 (permalink)  
Old 08-03-2008, 12:03 AM
matrixebiz's Avatar
Senior Member
 
Join Date: Oct 2006
Posts: 1,174
matrixebiz is on a distinguished road
EDIT below

Last edited by matrixebiz; 08-08-2008 at 02:37 AM.
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:10 AM.



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