Forex



Go Back   Forex Trading > Downloads > Expert Advisors - Metatrader 4
Forex Forum Register More recent Blogs Calendar Advertising Others Help






Register
Welcome to Forex-TSD!, one of the largest Forex forums worldwide, where you will be able to find the most complete and reliable Forex information imaginable.

From the list below, select the forum that you want to visit and register to post, as many times you want. It’s absolutely free. Click here for registering on Forex-TSD.

Exclusive Forum
The Exclusive Forum is the only paid section. Once you subscribe, you will get free access to real cutting-edge Trading Systems (automated and not), Indicators, Signals, Articles, etc., that will help and guide you, in ways that you could only imagine, with your Forex trading.
  • Elite Section
    Get access to private discussions, specialized support, indicators and trading systems reported every week.
  • Advanced Elite Section
    For professional traders, trading system developers and any other member who may need to use and/or convert, the most cutting-edge exclusive indicators and trading systems for MT4 and MT5.
See more

Reply
 
Thread Tools Display Modes
  #1 (permalink)  
Old 09-14-2007, 11:56 AM
cromium's Avatar
Junior Member
 
Join Date: Sep 2007
Posts: 5
cromium is on a distinguished road
Thumbs up Need HELP to make CromiumEA PERFECT...

I've made this EA based on my Gambling Experience & Strategy in Casino.
And I use MA as the trigger to place an order.

This is the first time I develop an EA and I faced 3 great problems.
I need solutions from you whom are more senior and expert than me.

My 1st Problem : My EA can't place order at the exact price I've set ( with mod 10) ex: 115.11 , 116.89 which should be 115.10 , 116.90 (I've used NormalizedDouble ( X ,1) but it failed).

My 2nd Problem : My EA shouldn't place more order if there's been an order with the same price. I've tried to put every OpenOrderPrice in memory but still not working properly.

My 3rd Problem : My EA should cut loss all possition and calculate the total loss of the cut loss action. Cut loss will occur if the bar crossed MA and hit the lowest entry price ( with mod 10 ).And then new order will be placed at the cut loss price but with the reverse action ( buy become sell , sell become buy). The quantity of the new order = total lost from cut loss + lots


I will attach the EA, and I hope this topic will be usefull for all of us...
==MAY GOD LOVES ALL THE TRADERS==


Rudi Saputra
rudi.saputra@gmail.com
Attached Files
File Type: mq4 Cromium - BETA 0.mq4 (5.9 KB, 33 views)

Last edited by cromium; 09-14-2007 at 11:59 AM.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!StumbleUpon this Post!Reddit this Post!Facebook this Post!BlinkList this Post!Google Bookmarks this Post!Yahoo! My Web this Post!
Reply With Quote
  #2 (permalink)  
Old 09-14-2007, 01:00 PM
cromium's Avatar
Junior Member
 
Join Date: Sep 2007
Posts: 5
cromium is on a distinguished road
AFTER Those problems fixed, I will enchanted my EA with C.O.T.L system...
So It can be more agresive
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!StumbleUpon this Post!Reddit this Post!Facebook this Post!BlinkList this Post!Google Bookmarks this Post!Yahoo! My Web this Post!
Reply With Quote
  #3 (permalink)  
Old 09-14-2007, 03:41 PM
Senior Member
 
Join Date: Jan 2006
Posts: 1,119
omelette is on a distinguished road
Hi. I have just had a very quick look at your code and there are serious problems with the way you are dealing with open orders. (that's as far as I got)

Check out the use of the keywords 'Point' and 'Digits'.

You are trying to close orders using the price of a moving average which will undoubtedly be far away from what the current Ask and Bid are - in other words, you must use the Ask and Bid prices to close (unless those are meant to be Limit orders)...
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!StumbleUpon this Post!Reddit this Post!Facebook this Post!BlinkList this Post!Google Bookmarks this Post!Yahoo! My Web this Post!
Reply With Quote
  #4 (permalink)  
Old 09-14-2007, 05:22 PM
cromium's Avatar
Junior Member
 
Join Date: Sep 2007
Posts: 5
cromium is on a distinguished road
I agree with you omelette...

do you have any idea how to edit it??
if i use order limit, can the EA do the cut loss action??
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!StumbleUpon this Post!Reddit this Post!Facebook this Post!BlinkList this Post!Google Bookmarks this Post!Yahoo! My Web this Post!
Reply With Quote
  #5 (permalink)  
Old 09-14-2007, 05:45 PM
Senior Member
 
Join Date: Jan 2006
Posts: 1,119
omelette is on a distinguished road
Quote:
Originally Posted by cromium View Post
I agree with you omelette...

do you have any idea how to edit it??
if i use order limit, can the EA do the cut loss action??
You haven't outlined precisely what your strategy is so I am not sure what needs changing. As you have posted the EA I presume you are not worried about other knowing it so you can either post what the rules are and someone will (might) fix it or you can PM them to me and I will have a go when I have time - I am knee-deep trying to debug my own code atm and just check out TSD when it all gets too much...
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!StumbleUpon this Post!Reddit this Post!Facebook this Post!BlinkList this Post!Google Bookmarks this Post!Yahoo! My Web this Post!
Reply With Quote
  #6 (permalink)  
Old 09-15-2007, 04:03 AM
cromium's Avatar
Junior Member
 
Join Date: Sep 2007
Posts: 5
cromium is on a distinguished road
Okay... I will pm you omelette.
I need your help here to finish the EA development.

=======================================

If Anybody else here in the forum also have the solutions, please paticipate in.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!StumbleUpon this Post!Reddit this Post!Facebook this Post!BlinkList this Post!Google Bookmarks this Post!Yahoo! My Web this Post!
Reply With Quote
Reply

Bookmarks


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
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
Help Needed Making Perfect Trailing Stop EA sbwent Expert Advisors - Metatrader 4 31 08-07-2009 07:41 PM
Can someone make this into an EA? joforex Metatrader 4 4 05-16-2007 02:35 PM
The perfect trader black ice General Discussion 9 11-14-2006 06:51 AM
Must have utility for MT coders who are not 100% perfect ycomp Tools and utilities 2 02-23-2006 11:45 PM


All times are GMT. The time now is 04:15 PM.



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