Forex
Google
New signals service!

Go Back   Forex Trading > Discussion Areas > Metatrader 4


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
  #1 (permalink)  
Old 11-15-2006, 03:58 PM
Member
 
Join Date: Oct 2005
Posts: 34
yaniv_av is on a distinguished road
EA help!! I'm desperate...

I have a simple EA that open buy orders at Ask price or sell orders at Bid Price.
When I'm tring to backtest it, I'm getting errors regarding to the open price of the trade. How can It be ???
Attached here the output of the jurnal with those errors.
I have Printed all the variables that I pass to the "SendOrder" command, and the command itself.
What can be the problem ???
Attached Images
File Type: jpg 1.JPG (63.4 KB, 43 views)
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 11-15-2006, 04:33 PM
Kalenzo's Avatar
Senior Member
 
Join Date: Dec 2005
Location: Bydgoszcz - Poland
Posts: 693
Kalenzo is on a distinguished road
Quote:
Originally Posted by yaniv_av
I have a simple EA that open buy orders at Ask price or sell orders at Bid Price.
When I'm tring to backtest it, I'm getting errors regarding to the open price of the trade. How can It be ???
Attached here the output of the jurnal with those errors.
I have Printed all the variables that I pass to the "SendOrder" command, and the command itself.
What can be the problem ???
Hm... do u use RefreshRates() function after your order fail?
__________________
You need proffesional mql coder? Contact me! I will help you!
........................................
http://www.fxservice.eu/
........................................
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3 (permalink)  
Old 11-15-2006, 05:01 PM
Member
 
Join Date: Oct 2005
Posts: 34
yaniv_av is on a distinguished road
But ....

Quote:
Originally Posted by Kalenzo
Hm... do u use RefreshRates() function after your order fail?
But it's a backtest... not live trading...
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #4 (permalink)  
Old 11-15-2006, 05:10 PM
Kalenzo's Avatar
Senior Member
 
Join Date: Dec 2005
Location: Bydgoszcz - Poland
Posts: 693
Kalenzo is on a distinguished road
Quote:
Originally Posted by yaniv_av
But it's a backtest... not live trading...
Hm... I gues that ea is a big secret, but if u want us to help u , u should post your ea here.
__________________
You need proffesional mql coder? Contact me! I will help you!
........................................
http://www.fxservice.eu/
........................................
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #5 (permalink)  
Old 11-15-2006, 05:18 PM
Hendrick's Avatar
Senior Member
 
Join Date: Feb 2006
Posts: 501
Hendrick is on a distinguished road
Do you have a SL=0? Change this and try again.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #6 (permalink)  
Old 11-19-2006, 01:18 PM
Junior Member
 
Join Date: Oct 2006
Posts: 1
cdaniel is on a distinguished road
You have to use NormalizeDouble(Ask, Digits) - I'm a bit surprised nobody posted this yet...
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply

Bookmarks

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 On
Forum Jump


All times are GMT. The time now is 02:56 AM.



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