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
  #131 (permalink)  
Old 07-28-2007, 05:00 PM
Administrator
 
Join Date: Sep 2005
Posts: 16,817
Blog Entries: 145
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
Quote:
Originally Posted by MQL4 View Post
Thanks fo replying newsdigital,
I don't want tit with pending orders, I want it to be just trades.
This EA will open any orders (buy, sell, buy stop, sell stop, buy limit or sell limit). Accoding to your own settings, or according to the settings of EA. In the time and date you want.

But you should decide:
- you want to trade at some particular time;
or
- you want to trade on particular price.

Because if you said: "I want to open buy order at 10 am at the price 1.3451". that's fine. But if we will not have any 1.3451 at 10 am so what to do?

I understand your "to set a straddle 10 pips above and below the current price" "At 22:59:59" as pending orders.

Last edited by newdigital; 07-28-2007 at 05:26 PM.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #132 (permalink)  
Old 07-28-2007, 05:21 PM
Administrator
 
Join Date: Sep 2005
Posts: 16,817
Blog Entries: 145
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
Quote:
Originally Posted by newdigital View Post
This EA will open any orders (buy, sell, buy stop, sell stop, buy limit or sell limit). Accoding to your own settings, or according to the settings of EA. In the time and date you want.
.....
And you may sey buy and sell in the same time, or buy stop or sell stop in the same time and so on. Or set it for 3 buy and 3 sell ... Or delete 3 sell stop after 10 minutes, or after at least one buy stop weas executed, or in 10 pm fpr example, or in the end of the week, or open any number of the orders (and any kind of order) in any direction in any time. In 23rd of march 2009 for example. With MM or any.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #133 (permalink)  
Old 07-29-2007, 10:45 PM
Member
 
Join Date: Jul 2007
Posts: 41
MQL4 is on a distinguished road
Challenging Coding

Can someone code this?

On MT4, the default color of the bars are green, right?

Well, can someone make all of the bars green, and make the bars :

22:55 and 16:30 red?

Challenging, huh? Or maybe easy for You.


God Bless You all!!!

I love You!!! Thank You, I am so happy right now!!!

Thank You!!!
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #134 (permalink)  
Old 07-30-2007, 01:33 AM
Senior Member
 
Join Date: Dec 2006
Location: Ukraine
Posts: 491
Shinigami is on a distinguished road
Quote:
Originally Posted by MQL4 View Post
Can someone code this?

On MT4, the default color of the bars are green, right?

Well, can someone make all of the bars green, and make the bars :

22:55 and 16:30 red?

Challenging, huh? Or maybe easy for You.


God Bless You all!!!

I love You!!! Thank You, I am so happy right now!!!

Thank You!!!
Take Heiken-Ashi. Make a condition - if(TimeHour(TimeCurrent())==16&&TimeMinute(TimeCur rent())==30)
Done!
__________________
MQL4 programming is easy ^^
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #135 (permalink)  
Old 07-30-2007, 02:06 AM
Member
 
Join Date: Jul 2007
Posts: 41
MQL4 is on a distinguished road
Debuggin each line

Does anyone know how to debug each line in coding MQL4?
Thanks.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #136 (permalink)  
Old 07-30-2007, 02:10 AM
Senior Member
 
Join Date: Dec 2006
Location: Ukraine
Posts: 491
Shinigami is on a distinguished road
Quote:
Originally Posted by MQL4 View Post
Does anyone know how to debug each line in coding MQL4?
Thanks.
Can I ask you a question?
Why? Why do you want to debug each line?
__________________
MQL4 programming is easy ^^
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #137 (permalink)  
Old 07-30-2007, 03:03 AM
Member
 
Join Date: Jul 2007
Posts: 41
MQL4 is on a distinguished road
Because I beleive that every programmer is blind without this kind of debugging!

Why don't you want to answer!?

Also, becuase the program will say 0 errors,0 warnings, and the program will not work.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #138 (permalink)  
Old 07-30-2007, 03:22 AM
wolfe's Avatar
Senior Member
 
Join Date: Jan 2006
Posts: 723
wolfe is on a distinguished road
Quote:
Originally Posted by MQL4 View Post
Because I beleive that every programmer is blind without this kind of debugging!

Why don't you want to answer!?

Also, becuase the program will say 0 errors,0 warnings, and the program will not work.
Maybe you could post your code and someone could help you, with 0 errors and 0 warnings there is a problem somewhere with your logic.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #139 (permalink)  
Old 07-30-2007, 03:38 AM
Senior Member
 
Join Date: Dec 2006
Location: Ukraine
Posts: 491
Shinigami is on a distinguished road
There really could be a problem with logics.
When you have any sort of calculation and you know what result should be, add a Print("Parameter X is ",X," and should be XXX");
This way you'll see when your XXX is not actually XXX but XYZ instead.
This is the best way to find a flaw of logic - put that everywhere.
And don't forget to delete old logs from time to time! They sometimes take up to 10-15 gigabytes here. Oh did I mention I have MT4 folder with 15GB generated history? My HDD doesn't have enough space for 30GB logs! Clean up from time to time. Just go to MT4 folder and point the pointer on one of the folders to see its space (or right click - properties).
Logs should be in one of the folders.
__________________
MQL4 programming is easy ^^
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #140 (permalink)  
Old 07-30-2007, 03:45 AM
wolfe's Avatar
Senior Member
 
Join Date: Jan 2006
Posts: 723
wolfe is on a distinguished road
Excellent point Shinigami Print statements can be your best friend in trying to de-bug your program. I have used them many times to solve problems. You can usually figure out your problem by using this method.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply

Bookmarks

Tags
automated close order, close, eas, forex, learn mql4, learn mql4 video, mql4 learning, OrderCloseBy, profit, reach, secure profit function, T101_v1.11_orest_IBFXm.mq4, learning mql4

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
Learning Cycles For New Traders Dan7974 General Discussion 350 01-18-2008 07:04 PM
Learning to code for autotrading GoatT Metatrader Programming 8 01-10-2007 09:55 PM
Self learning expert mrtools Expert Advisors - Metatrader 4 32 10-22-2006 06:29 PM


All times are GMT. The time now is 12:12 PM.



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