Forex
Google
New signals service!

Go Back   Forex Trading > Discussion Areas > General Discussion


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

 
 
LinkBack Thread Tools
 
Old 07-17-2006, 06:33 PM
Aaragorn's Avatar
Senior Member
 
Join Date: Jun 2006
Location: USA
Posts: 801
Aaragorn is on a distinguished road
Multiple Order Entry timing....coding help requested..

How do I get it to allow multiple orders to open at the same bar?


ok my idea is to make a loop when the signal is given to have it keep looping thru and making orders until it's reached the maxtrade limit...
Attached Images
File Type: gif multipleordertiming.gif (47.8 KB, 34 views)

Last edited by Aaragorn; 07-17-2006 at 07:14 PM.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
 
Old 07-17-2006, 07:58 PM
Aaragorn's Avatar
Senior Member
 
Join Date: Jun 2006
Location: USA
Posts: 801
Aaragorn is on a distinguished road
I find it really wierd when somthing works one day and doesn't work the next and I havn't made any changes that I can see...

my strategy tester now is not responding when I change the 'maxopentrade' setting...it uses two trades no matter what, if I tell it '0' it still uses two trades...it was working fine earlier even today and now suddenly it's decided that it's going to allow two open trades all the time no matter what I tell it....am I losing my mind was I just imagining???

I swear some codes have a mind of their own.




it WAS working before I swear it was!!! why did it just stop working???


...ok it helps if I keep track of which signal of the two I'm changing....lol if I'm only using signal #2 and changing the setting on signal #1 that makes sense huh? i'm losing my marbles.

Last edited by Aaragorn; 07-17-2006 at 08:51 PM.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
 
Old 07-18-2006, 12:17 AM
Aaragorn's Avatar
Senior Member
 
Join Date: Jun 2006
Location: USA
Posts: 801
Aaragorn is on a distinguished road
PHP Code:
for (int o 0<= MaxOpenTrade++)
            
Ticket OrderSend(Symbol(), OP_BUYLotsAskSlippageStopLossLevelTakeProfitLevel"Buy(#" MagicNumber ")"MagicNumber0DodgerBlue);
            if(
Ticket 0) {
             if (
OrderSelect(TicketSELECT_BY_TICKETMODE_TRADES)) {
                   Print(
"BUY order opened : "OrderOpenPrice());
                if (
SignalMailSendMail("[Signal Alert]""[" Symbol() + "] " DoubleToStr(AskDigits) + " Open Buy");
             return(
0); 
what this doesn't do is modify the orders at the same time... I guess I need to do something similar with the order modify function so they all modify at the same times too...
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
 

Bookmarks
Thread Tools

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
Timing your entries Kurka Fund Expert Advisors - Metatrader 4 5 01-09-2007 12:34 AM
Change MT4 timing to GMT time? awsl Metatrader 4 6 06-06-2006 02:28 PM
One entry per BUY ORDER babarmughal Expert Advisors - Metatrader 4 1 05-14-2006 01:18 PM


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



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