Forex



Go Back   Forex Trading > Discussion Areas > Setup Questions
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 06-20-2009, 04:58 AM
Junior Member
 
Join Date: Jun 2009
Posts: 5
smokinbs is on a distinguished road
I wrote an EA ! ???

I am a new member here and this is my first thread. If your wondering why its my first there is a simple answer, I just learned how to post a thread. I have been having the same problems learning not only the MQL4 programming but Forex Trading as well.
My question for persons with experience is: Is there a way to process my EA line by line so I can see what the heck I did wrong?
I did follow as many instructions and rules as I could remember in my programming. It only took me a day to correct my errors and warnings while compiling. But still I did something wrong, when I run a back test I get nothing but ... 0 ... and since this is my first EA this might be good since my actual total losses would also be 0. Please help if you can.
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 06-20-2009, 05:20 AM
Senior Member
 
Join Date: Sep 2007
Posts: 428
jturns23 is on a distinguished road
Quote:
Originally Posted by smokinbs View Post
I am a new member here and this is my first thread. If your wondering why its my first there is a simple answer, I just learned how to post a thread. I have been having the same problems learning not only the MQL4 programming but Forex Trading as well.
My question for persons with experience is: Is there a way to process my EA line by line so I can see what the heck I did wrong?
I did follow as many instructions and rules as I could remember in my programming. It only took me a day to correct my errors and warnings while compiling. But still I did something wrong, when I run a back test I get nothing but ... 0 ... and since this is my first EA this might be good since my actual total losses would also be 0. Please help if you can.
When your backtesting, click the "journal" tab. There should be some errors listed. An example would be "error 130" . If you could list those here, we could help. Otherwise unless you post the EA, it's impossible to know.
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 06-20-2009, 06:14 AM
Junior Member
 
Join Date: Jun 2009
Posts: 5
smokinbs is on a distinguished road
Thank you Jturns23

I looked at the journal and it tells me the inputs it loaded (I think) and that the file loaded successfully. I will try to attach it here for your review.
Well I'm a real genius I can't even find my EA file.
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 06-22-2009, 12:30 AM
Junior Member
 
Join Date: Jun 2009
Posts: 5
smokinbs is on a distinguished road
I wrote an EA! (thread2)???

Well this is me again, still learning not only MQL4 but how to post Threads in a Forum. Jturns23 I am going to try again and post my first EA here and let you and other get a good laugh and see if you can tell me where I am going wrong.
Attached Files
File Type: mq4 OMG_WTF.mq4 (6.9 KB, 10 views)
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 07-11-2009, 01:16 AM
Senior Member
 
Join Date: Sep 2007
Posts: 121
Ms_Mel is on a distinguished road
First of all, no one is here to "laugh" at someone trying to learn something. On the contrary, at least you are trying. So applause, applause !

MQL isn't the most difficult language, but it's not the easiest either. It's based on the C language, so maybe reading up on C could help.

I've never found the debug function, which doesn't help. When clicking on errors, it only shows you where they are but barely explains what the problem might be. I've spent countless hours trying to figure out what was wrong (and am still are) so don't give up!

Good luck,

Ms_Mel
__________________
Profitable trading starts here:
http://forexleader-forexleader.blogspot.com/
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 07-11-2009, 05:21 PM
cockeyedcowboy's Avatar
Senior Member
 
Join Date: Nov 2005
Posts: 481
cockeyedcowboy is on a distinguished road
smokinbs


I had a look at your code; Had to make assumtions about your logic; as I think there was errors in it. All my assumtions are noted in the code.

Made other changes as it (I assumed again) a learning exersise for you. I use a lot of white space in my code as I dont look so good. That is, my eyes dont see so good.

I have not tested it or even run the code, as the markets are currently closed. So they will most likely be some mistakes that I missed or introduced myself. let me know if you find any.

Keit
Attached Files
File Type: mq4 OMG_WTF v1.00 b03.mq4 (6.4 KB, 9 views)

Last edited by cockeyedcowboy; 07-11-2009 at 05:40 PM.
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
So I wrote this little script... Limstylz MetaTrader 0 09-23-2008 01:52 AM


All times are GMT. The time now is 11:02 PM.



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