Forex
Google

Go Back   Forex Trading > Downloads > Expert Advisors - Metatrader 4
Forex Forum Register FAQ Members List Calendar Search Today's Posts Mark Forums Read


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 05-05-2008, 07:13 AM
daet daet is offline
Member
 
Join Date: Jun 2006
Posts: 69
daet is on a distinguished road
Zmeitrader - coding help

Please could a coder help me with this EA. I must state from the beginning that this is NOT my EA, i found it on the forum somewhere so i'm not sure of the implications of changing the code. All i need is for someone to add the "majic number" field so i can trade on multiple currencies.
I'ts a slow EA producing around 7-27 trades per month but will double your account if used properly. The best currency is GBP on 60min.
Please help..!
Thanks in advance.
Attached Files
File Type: ex4 Zmei_trader.ex4 (3.9 KB, 17 views)
File Type: mq4 Zmei_trader.mq4 (2.7 KB, 54 views)
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 05-05-2008, 07:34 AM
Enforcer Enforcer is offline
Senior Member
 
Join Date: Dec 2007
Posts: 257
Enforcer is on a distinguished road
add this

PHP Code:
extern int MaxOrders 1// ěŕęńčěŕльноĺ ęолčчĺńňво одновđĺěĺно оňęđűňűő оđдĺđов
extern int Magic 123456
and change this

PHP Code:
if(ord==OP_BUY)
   {
      
TP=Bid+TakeProfit*Point; if(TakeProfit==0TP=0;
      
SL=Ask-StopLoss*Point;   if(StopLoss==0SL=0;
      
ticket=OrderSend(Symbol(),OP_BUY,Lot,Ask,3,SL,TP,"Ďоęуďŕĺě",Magic,0,White);
   }
   if(
ord==OP_SELL)
   {
      
TP=Ask-TakeProfit*Point; if(TakeProfit==0TP=0;
      
SL=Bid+StopLoss*Point;   if(StopLoss==0SL=0;
      
ticket=OrderSend(Symbol(),OP_SELL,Lot,Bid,3,SL,TP,"Ďđодŕĺě",Magic,0,Yellow);
   } 
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3 (permalink)  
Old 05-05-2008, 12:03 PM
daet daet is offline
Member
 
Join Date: Jun 2006
Posts: 69
daet is on a distinguished road
Help

Thanks Enforcer, i know how to open the EA in the metaeditor but don't know where to paste this and compile. I have no clue with coding...
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #4 (permalink)  
Old 05-05-2008, 12:10 PM
sivach's Avatar
sivach sivach is offline
Senior Member
 
Join Date: Jun 2006
Posts: 108
sivach is on a distinguished road
Hi daet, could you please post your EA file again as it is not being downloaded from your first post for some reason . Thanks.

Quote:
Originally Posted by daet View Post
Thanks Enforcer, i know how to open the EA in the metaeditor but don't know where to paste this and compile. I have no clue with coding...
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #5 (permalink)  
Old 05-05-2008, 01:03 PM
aurorau aurorau is offline
Senior Member
 
Join Date: May 2007
Posts: 102
aurorau is on a distinguished road
Quote:
Originally Posted by daet View Post
Thanks Enforcer, i know how to open the EA in the metaeditor but don't know where to paste this and compile. I have no clue with coding...
Modified, have a try this...
Attached Files
File Type: mq4 Zmei_trader.mq4 (2.7 KB, 59 views)
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #6 (permalink)  
Old 05-05-2008, 01:55 PM
daet daet is offline
Member
 
Join Date: Jun 2006
Posts: 69
daet is on a distinguished road
Thumbs up Thanks

Thanks aurorua, i'll give it a try tonight..
Calling all testers, see how you do with this EA, i like the fact thats it trades very seldom but drawdowns are pretty low at under 20% (GBP)..
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #7 (permalink)  
Old 05-05-2008, 03:33 PM
Robfx Robfx is offline
Junior Member
 
Join Date: Apr 2008
Posts: 2
Robfx is on a distinguished road
i tried to help test this out a bit, but i keep getting "order send error 130".

and when i compile it, it give me an error on the "order CI"

so i changed it once and removed it the second time, i keep getting the same
"order send error"
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #8 (permalink)  
Old 05-06-2008, 06:41 AM
daet daet is offline
Member
 
Join Date: Jun 2006
Posts: 69
daet is on a distinguished road
robfx

I have not yet managed to test the amended EA but i do often come across the "order 130) error on other EA's and not sure what it is. It appears that the EA cannot trade at a given price, perhaps something to do with the spread etc, but i have no clue.
Any explanations, experts...?
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #9 (permalink)  
Old 05-06-2008, 06:47 AM
FerruFx FerruFx is offline
Senior Member
 
Join Date: Feb 2007
Posts: 542
FerruFx is on a distinguished road
Quote:
Originally Posted by daet View Post
I have not yet managed to test the amended EA but i do often come across the "order 130) error on other EA's and not sure what it is. It appears that the EA cannot trade at a given price, perhaps something to do with the spread etc, but i have no clue.
Any explanations, experts...?
Here's the explanation of the error 130:

Stops are too close, or prices are ill-calculated or unnormalized (or in the open price of a pending order). The attempt can be repeated only if the error occurred due to the price obsolescense. After 5-second (or more) delay, it is necessary to refresh data using the RefreshRates function and make a retry. If the error does not disappear, all attempts to trade must be stopped, the program logic must be changed.

Hope that helps.

FerruFx
__________________
THE HEART of FOREX & THE PROBABILITY METER - Trade with 100% confidence and ... Stress Less!!!
Coding services: Experts Advisors, indicators, alerts, etc ... more info by PM
NEW: video presentation of the Probability Meter ... 24hrs action on the website
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #10 (permalink)  
Old 05-06-2008, 07:16 AM
mikkom mikkom is offline
Senior Member
 
Join Date: Oct 2007
Posts: 172
mikkom is on a distinguished road
Looks like a very simple EA that always buys if your trade count is under specified maximum trades and when awesome oscillator goes up and sells when it goes down (with a trailing stop).
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


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

vB 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


Similar Threads
Thread Thread Starter Forum Replies Last Post
N4 TF Has Bar Coding ? mikeschra Metatrader 4 11 11-10-2007 01:15 PM
Coding help please mj_bolt Indicators - Metatrader 4 2 05-07-2007 10:39 AM
Help with Coding Please hoosain Questions 1 08-01-2006 05:36 PM
Coding Help jerrymar Indicators - Metatrader 4 1 03-23-2006 09:20 AM
Need help coding jdsim1 Suggestions for Trading Systems 4 03-19-2006 10:40 PM


All times are GMT. The time now is 04:57 AM.