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
  #681 (permalink)  
Old 07-19-2007, 09:45 PM
ryanklefas's Avatar
Senior Member
 
Join Date: Apr 2006
Location: USA
Posts: 439
ryanklefas is on a distinguished road
Quote:
Originally Posted by prelude View Post
Hi coder guru,
i 'm learning to program in mtq4 language using your lessons and it's a very interesting but long long way for me.
waiting to produce my own EAs (that's the ultime purpose), i test and use EA thats other talentus programmers make.
I am also a fan of the turtle method.
I found on this forum a programmer who made a very good job on an EA dedicated to the turtle method. The EA is very promising but need to be developed again but by some one who has good knowledge in programming. My problem is that the person who made this EA seem to have given up the project because he does not answer any more on the thread he initiated himelf about his EA.
So i would like you to read the thread and to have a look on the EA and tell me if you could be interested to continue the development and testing or not.
I'm currently testing it in a demo account and it's very promising in opening positions but not very good in closing them. this is the point to work on

here is the link of the said above thread: MY TURTLES EA - need Testers

thanks for reading me

Regards,

Jonathan
What problem does it have with the closing of positions?
__________________
"Don't work harder, work smarter." -- my Java professor

Coder for Hire:
http://www.firecell-fx.com
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #682 (permalink)  
Old 07-22-2007, 05:27 PM
Junior Member
 
Join Date: May 2007
Posts: 8
prelude is on a distinguished road
Hello, thanks for your question.

i don't know if you tried to run the EA attached to the link i gave in my previous post.

This system is quiet good when it open positions (tendancial system, so buys highs and sell lows) and we have most of the time some profit which turns quickly in a lost.

the real pb is that we want to surf the tendance and that means no target profit and large stop loss to avoid to get with noises of the market.

the person who programed the EA developed a lockinprofit which locks automatically pips according to parameters you give to this function (30% of the profit when this one is higher than 50 pip are the by default settings). But it is not suficient.

He also programmed a breakeven funtion but, seems that it does not work. (i have winning trades running now but stop loss did move to break even point).

i would need some persons to help, test, share and develop this promising EA like i try to do without real programming skills

i give an ex of trades that are good in the linked picture
Attached Images
File Type: gif turltle ea ex.gif (50.4 KB, 139 views)
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #683 (permalink)  
Old 07-23-2007, 08:09 PM
Member
 
Join Date: Jul 2007
Posts: 41
MQL4 is on a distinguished road
Thank You, codersguru, for Your helpful answer.
I have one more question:

if(bid == 122.15)

I want to replace 122.15 by current market price.

Is there any function that determines current market price?

Thank You. Because of You, I can finally program
MQL4.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #684 (permalink)  
Old 07-24-2007, 01:42 AM
ryanklefas's Avatar
Senior Member
 
Join Date: Apr 2006
Location: USA
Posts: 439
ryanklefas is on a distinguished road
Thumbs up

Quote:
Originally Posted by prelude View Post
Hello, thanks for your question.

i don't know if you tried to run the EA attached to the link i gave in my previous post.

This system is quiet good when it open positions (tendancial system, so buys highs and sell lows) and we have most of the time some profit which turns quickly in a lost.

the real pb is that we want to surf the tendance and that means no target profit and large stop loss to avoid to get with noises of the market.

the person who programed the EA developed a lockinprofit which locks automatically pips according to parameters you give to this function (30% of the profit when this one is higher than 50 pip are the by default settings). But it is not suficient.

He also programmed a breakeven funtion but, seems that it does not work. (i have winning trades running now but stop loss did move to break even point).

i would need some persons to help, test, share and develop this promising EA like i try to do without real programming skills

i give an ex of trades that are good in the linked picture
I will take a look at it when I have a chunk of free time. Not really sure when that will be though...
__________________
"Don't work harder, work smarter." -- my Java professor

Coder for Hire:
http://www.firecell-fx.com
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #685 (permalink)  
Old 07-24-2007, 01:43 AM
ryanklefas's Avatar
Senior Member
 
Join Date: Apr 2006
Location: USA
Posts: 439
ryanklefas is on a distinguished road
Quote:
Originally Posted by MQL4 View Post
Thank You, codersguru, for Your helpful answer.
I have one more question:

if(bid == 122.15)

I want to replace 122.15 by current market price.

Is there any function that determines current market price?

Thank You. Because of You, I can finally program
MQL4.
The "Bid" and "Ask" variables are two of the easiest way to get the current price.
__________________
"Don't work harder, work smarter." -- my Java professor

Coder for Hire:
http://www.firecell-fx.com
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #686 (permalink)  
Old 07-24-2007, 02:09 AM
Member
 
Join Date: Jul 2007
Posts: 41
MQL4 is on a distinguished road
Thanks RyanKlefas,
I have posted a thread in "Trading Systems"(can I?), and I post my super hard MQL4 questions, would You pease mind to take a look at it often?

Thank You!
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #687 (permalink)  
Old 07-28-2007, 05:09 PM
Junior Member
 
Join Date: Mar 2007
Posts: 10
Hartadi is on a distinguished road
Hi,

Can somebody tell me what's wrong with this code?
It doesn't open any order at all?

I back test it at 2007.01.03

Cheers

PHP Code:
extern string StrGetPosition "19:55";
extern string StrStartOrderTime "20:00";
extern string StrEndOrderTime "23:59";
extern double MyBidPrice 1.3271;
int CountOrder 0BuyMagicNumberSellMagicNumber;
extern double Lots 1;
extern int StopLoss 35;
extern int TakeProfit 8;
extern bool FlagBuy false;
int xbFindMagicSellTicketSellFindMagicBuyTicketBuy;

//+------------------------------------------------------------------+
//| expert initialization function                                   |
//+------------------------------------------------------------------+
int init()
  {
//----
   
MyBidPrice 1.3271;
//----
   
return(0);
  }
//+------------------------------------------------------------------+
//| expert deinitialization function                                 |
//+------------------------------------------------------------------+
int deinit()
  {
//----
   
//----
   
return(0);
  }
//+------------------------------------------------------------------+
//| expert start function                                            |
//+------------------------------------------------------------------+
int start()
  {
//----

   
int GetPositionStartOrderTimeEndOrderTimeo;

   
GetPosition StrToTime(StrGetPosition);
   
StartOrderTime StrToTime(StrStartOrderTime);
   
EndOrderTime StrToTime(StrEndOrderTime);
   
   if (
TimeCurrent() >= StartOrderTime && TimeCurrent() <= EndOrderTime)
      {
         
FlagBuy true;
//+------------
//| Posisi BUY
//+------------
         
if (FlagBuy == true)
            {  
               if ((
MyBidPrice == Bid) && (CountOrder 6))
                  {
                     
CountOrder++;
                     
BuyMagicNumber StrToInteger("1" CountOrder Day() + Month() + Year());
                     
OrderSend(Symbol(),OP_BUY,Lots,Bid,3,Bid-StopLoss*Point,Bid+TakeProfit*Point,"Test",BuyMagicNumber,0,Green);
                     
                     if (
1MessageBox("ERROR!!");
                      
                     if (
CountOrder 1ModifyBuy();
                     if (
CountOrder == 5FlagBuy false;
                     
MyBidPrice Bid - (2*Point);                
                  }
                  
               
ShowComment();
            }
            
      }
      
//----
   
return(0);
  }
//+------------------------------------------------------------------+

void ModifyBuy()
   {
      for (
1CountOrderx++)
         {
            
FindMagicBuy StrToInteger("1" Day() + Month() + Year());
            
            for (
0OrdersTotal(); b++)
               {
                  
OrderSelect(b,SELECT_BY_POSMODE_TRADES);
                  if (
OrderMagicNumber() == FindMagicBuy)
                     {
                        
TicketBuy OrderTicket();
                        
                        
OrderSelect(TicketBuy,SELECT_BY_TICKET);
                        
OrderModify(OrderTicket(),OrderOpenPrice(),OrderStopLoss(),OrderTakeProfit()-(2*Point),0);
                        break;
                     }
               }
         }
   }
   
void ShowComment()
   {

      
Comment("DayOfWeek = ",DayOfWeek(),"\nFLAG BUY : ",FlagBuy,"\nCount Order ",CountOrder,"\nNext order = ",MyBidPrice,"\nBID = ",Bid,"\nTime : ",TimeToStr(TimeCurrent(),TIME_MINUTES));
  
   } 
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #688 (permalink)  
Old 07-28-2007, 05:47 PM
Junior Member
 
Join Date: Jun 2006
Posts: 10
reiver is on a distinguished road
Can't Find MQ4 File For Indicator

I hope someone can help me with something I initially thought would be quite straightforward. I wanted to put an audible alert on an indicator that actually comes with Metatrader so that when it reaches a particular level it will tell me. The indicator is Force Index however I can not find an MQ4 file for it anywhere in the Experts/Indicators folder. Does anyone have an idea where I could locate the file?

If I can find the mq4 file would I be right in assuming I can use the code given by Codersguru at the beginning of this thread to add an alert to it?

thanks
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #689 (permalink)  
Old 07-28-2007, 07:58 PM
Junior Member
 
Join Date: Jun 2006
Posts: 10
reiver is on a distinguished road
ref Previous Post

I have managed to solve my problem from above post.

Thanks to all for interest.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #690 (permalink)  
Old 07-28-2007, 10:17 PM
Senior Member
 
Join Date: Feb 2006
Posts: 525
Michel is on a distinguished road
Quote:
Originally Posted by Hartadi View Post
Hi,

Can somebody tell me what's wrong with this code?
It doesn't open any order at all?

I back test it at 2007.01.03

Cheers

PHP Code:
                     o OrderSend(Symbol(),OP_BUY,Lots,Bid,3,Bid-StopLoss*Point,Bid+TakeProfit*Point,"Test",BuyMagicNumber,0,Green); 
You cannot buy at bid price.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply

Bookmarks

Tags
histogram, forex

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 09:53 PM
Forex SRDC Sidus Sibkis EA MT4 Forum OTCSmart This thread Refback 12-08-2007 11:46 AM


All times are GMT. The time now is 01:44 PM.



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