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 (1) Thread Tools Display Modes
  #221 (permalink)  
Old 03-21-2007, 02:03 PM
jlpi's Avatar
Senior Member
 
Join Date: Oct 2006
Posts: 293
jlpi is an unknown quantity at this point
I think you can put


if (minute()<=58 && mail) // be careful not !mail but mail
mail= false;

and that should be but outside your first if , so not after mail = true; but after }

There are probably better ways to code that but that should work
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #222 (permalink)  
Old 03-21-2007, 02:16 PM
islandrock's Avatar
Member
 
Join Date: Jan 2007
Posts: 87
islandrock is on a distinguished road
Smile going to try

thanks will give it a shot...will let you know in two hours
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #223 (permalink)  
Old 03-21-2007, 08:14 PM
islandrock's Avatar
Member
 
Join Date: Jan 2007
Posts: 87
islandrock is on a distinguished road
great it works.... or at least it looks like it does
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #224 (permalink)  
Old 03-25-2007, 04:47 PM
islandrock's Avatar
Member
 
Join Date: Jan 2007
Posts: 87
islandrock is on a distinguished road
Question ?? need help with this part of code

can anyone tell me how to write this correctly? im trying to single out the open buy and sell trades individually...


i.e. : if open bid > 2.
if open ask >2
I got the rest I just cant code that part right
i know it's simple but i'm pulling out my hair.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #225 (permalink)  
Old 03-26-2007, 12:21 PM
islandrock's Avatar
Member
 
Join Date: Jan 2007
Posts: 87
islandrock is on a distinguished road
anybody?

anybody? wow maybe this was a bad question
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #226 (permalink)  
Old 03-26-2007, 12:33 PM
Member
 
Join Date: Dec 2005
Posts: 68
asmdev is on a distinguished road
if(Open[0] > 2){ //open bid
//your code
}

if(Open[0]+(Ask-Bid) > 2){ //open ask
//your code
}

depending on your broker, backtesting of open ask may not work
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #227 (permalink)  
Old 03-26-2007, 12:35 PM
islandrock's Avatar
Member
 
Join Date: Jan 2007
Posts: 87
islandrock is on a distinguished road
Red face thank you

thank you. you're a life savor
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #228 (permalink)  
Old 03-30-2007, 10:58 PM
Member
 
Join Date: Jan 2006
Posts: 30
DooMGuarD is on a distinguished road
Quote:
Originally Posted by BC Brett
Wish I had the answer.
I just finished writing my first EA and tried testing it in Strategy Tester.
I was getting errors showing in the ST journal so I tried using the Print function in my EA to debug the problems. I've worked out a few bugs so far this way, but it's a slow process.
in the metaeditor under edit menu exist "toggle breakpoint" <F9>... as to use breakpoint?
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #229 (permalink)  
Old 04-12-2007, 03:43 PM
fxgrm's Avatar
Member
 
Join Date: Mar 2007
Posts: 91
fxgrm is on a distinguished road
Help with Crossed Alerts "SendMail" code?

Hi:

Would someone be willing to add "SendMail" code for trend reversal alerts to this indicator?

I would like to receive an email to my cell phone when the ema's cross so I don't have to sit in front of the computer all day long waitng for the next trend reversal (4 hr. charts).

I tried to do it myself but it sent repeated mass emails/text messages (very costly)

Thanks and Cheers!

Last edited by fxgrm; 09-22-2007 at 02:27 PM.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #230 (permalink)  
Old 04-12-2007, 04:46 PM
Administrator
 
Join Date: Sep 2005
Posts: 16,311
Blog Entries: 106
newdigital has much to be proud ofnewdigital has much to be proud ofnewdigital has much to be proud ofnewdigital has much to be proud ofnewdigital has much to be proud ofnewdigital has much to be proud ofnewdigital has much to be proud ofnewdigital has much to be proud of
Just for information:

- thread about email function (how to code) Email

- good article with some tool Collaboration Dolly + Isakas + Nina System
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply

Bookmarks

Tags
CHinGsMAroonCLK, I_XO_A_H

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/metatrader-programming/554-how-code.html
Posted By For Type Date
Need an experienced programmer? - Page 2 Post #0 Refback 09-24-2008 06:24 AM

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 02:11 PM.



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