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
  #351 (permalink)  
Old 09-14-2006, 02:07 PM
codersguru's Avatar
Senior Member
 
Join Date: Oct 2005
Posts: 987
codersguru has a spectacular aura aboutcodersguru has a spectacular aura aboutcodersguru has a spectacular aura about
Arrow

Quote:
Originally Posted by jsevero83
anyone know if is possible lock an EA to not work in backtests?
thx
hi jsevero83,

Give this code a try:

PHP Code:
int start()
  {
     if(
IsTesting()) return(0); //prevent me backtested!
     
.....
   } 
__________________
Hope it helps !
Coders' Guru
Senior MQL programmer:
www.xpworx.com/custom.htm
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #352 (permalink)  
Old 09-16-2006, 02:53 AM
Eaglehawk's Avatar
Senior Member
 
Join Date: Jun 2006
Posts: 141
Eaglehawk is on a distinguished road
Question a question on your lessons #'s 10-12

with this custom indicator buisiness, maybe i'm just not understanding what right in front of me, but i am having troubles finding where i could add a function to determine the value of a line made in an indicator i've been working on.

if you've seen my latest thread in the suggestions for trading systems, section of this forem recently, i decided to work on making an indicator for my day off safety detector, it has the functions there that i had been able to work on so far.

if you haven't, i've got the most up-to-date, version of my day off safety detector, (what i call an ea add-on) in this post.

now for what i have done, i've looked through the lessons i listed in the title, and i've worked throught what i could understand, (which frankly stopped around the middle of part 3 , (lesson 12) and one question on an integer issue in part two, that is clarified in the beginin of the indicator)

i also have an attatchment in this post with what i've been working on with this new indicator so far.

please assist me in clarifying theese issues!

btw, your lessons rock!
__________________
"One's ability to accomplish his or her goals is limited only by the ingenuity of how one uses what he or she already knows."- Eaglehawk
REMEMBER,
"Genius is nothing but a greater aptitude for patience." –Benjamin Franklin

____________________________________

Have a simple ea you just can't figure out how to code??? Odds are you can make it here. Just remember to push complete when you're done, NOT SAVE!!!

http://sufx.core.t3-ism.net/ExpertAdvisorBuilder

Last edited by Eaglehawk; 10-21-2006 at 05:37 PM.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #353 (permalink)  
Old 09-16-2006, 10:11 AM
jth jth is offline
Junior Member
 
Join Date: Aug 2006
Posts: 25
jth is on a distinguished road
Please Please can anyone help me?

Hi everyone
I am a newbi on a big scale here. This is my first input to the forum please be gentle with me . I am looking for some one to help me create an ea.
I have read allot of the threads on here for the last two months. I think that this is a really really great way to learn and profit from the forex from all of these masters in this forum. I think their must be an ea available in this forum to my options but may not.

This is the idea of the ea I would like:

Choice of 4 different types moving averages slow,
Choice of 4 different types moving averages fast,
Activate an order when they cross long or short one bar after crossing but straight after one closes an other opens.
One or more bars after crossing is an optional amount.
When the order is activated it keeps track of the open price to the present price,
Allowing you to take a profit by adjustable percentage scale from an adjustable appointed amount.
The ea should also allow additional manual entries on the same ea via keyboard shortcut without affecting the ea's performance.
Exit point should be by adjustable percentage scale or by cross of moving average or manual which ever comes first.
I also would like a money management controller to my account amount
With risk percentage
And lot size
This ea can be used on all time frames

A similar ea might be available which can be adjusted to my options.

Please please please can someone help me with this???
Thanx
JTH
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #354 (permalink)  
Old 09-16-2006, 11:05 AM
Administrator
 
Join Date: Sep 2005
Posts: 16,311
Blog Entries: 106
newdigital has much to be proud ofnewdigital has much to be proud ofnewdigital has much to be proud ofnewdigital has much to be proud ofnewdigital has much to be proud ofnewdigital has much to be proud ofnewdigital has much to be proud ofnewdigital has much to be proud of
Quote:
Originally Posted by jth
...Activate an order when they cross long or short one bar after crossing but straight after one closes an other opens.
One or more bars after crossing is an optional amount.
When the order is activated it keeps track of the open price to the present price,
...
Thanx
JTH
Hi jth,

Can you clarify above mentioned.
I did not understand sorry.
With image if possible.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #355 (permalink)  
Old 09-16-2006, 11:21 AM
jth jth is offline
Junior Member
 
Join Date: Aug 2006
Posts: 25
jth is on a distinguished road
I hope this helps you newdigital

I am sorry newdigital you can see I am new to this.
Anyway what I mean is the moving averages go long or short that it would activate an order.
Example when an active order goes short and it crosses the slow ma that it exits the long order then opens a short order at the same time or a price bar or two or none after the cross over.
One additional thing can the cross over have an alarm in it that rings once or for the duration of the bar which ever I choice.
Thanx newdigital
Regards
JTH
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #356 (permalink)  
Old 09-16-2006, 11:22 AM
jth jth is offline
Junior Member
 
Join Date: Aug 2006
Posts: 25
jth is on a distinguished road
I hope this helps you newdigital

i'll atach a image with what i mean i a little while ok
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #357 (permalink)  
Old 09-16-2006, 12:17 PM
jth jth is offline
Junior Member
 
Join Date: Aug 2006
Posts: 25
jth is on a distinguished road
my image attempt

my image attempt any questions let me know
Thank you
JTH
chart print1.gif
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #358 (permalink)  
Old 09-16-2006, 12:58 PM
skyline's Avatar
Member
 
Join Date: Apr 2006
Location: Pisa
Posts: 62
skyline is on a distinguished road
Hi CodersGuru
I tried your function to sendemail to any email from EA but it seems doesn't works with Outlook 2003 , any suggest? Have i to use only in conjunction with Outlook Express?
Futhermore i'd like to be able to send an email from my EA when an order is closed , how can I code this ?

thanks a lot

have a nice weekend
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #359 (permalink)  
Old 09-16-2006, 01:10 PM
Administrator
 
Join Date: Sep 2005
Posts: 16,311
Blog Entries: 106
newdigital has much to be proud ofnewdigital has much to be proud ofnewdigital has much to be proud ofnewdigital has much to be proud ofnewdigital has much to be proud ofnewdigital has much to be proud ofnewdigital has much to be proud ofnewdigital has much to be proud of
Quote:
Originally Posted by jth
my image attempt any questions let me know
Thank you
JTH
Attachment 15024
jth,

It is one MA crossing the the other MA? But you are talking about 4 MAs crossing with the other 4 MAs. May be i am wrong. So please clarify: how many MAs are crossing the other MAs?

If MA is going long so it means that the value of this MA (value on the chart - the same with price but value of MA on some bar - y-scale) on the second closed bar for example) is less than the value of the first closed bar (for example as well).

First close bar is the previous from current one (current one is open bar and is not closed yet). Counting is started from the current zero bar. So, from current zero back to the first, second and so on ("back to the future").

If MA is going short it means that value of MA (any MA because in EA we can set the close/open or any price and set to be EMA, SMA and so on) on the second close bar is more higher than on the first close bar.

So how many MAs indicators to program?. Also, if one MA is crossing the other one so it is understandable. But if 4 MAs are crossing the other 4 MAs so it is necessary to clarify: which one should be fast MAs and which one is slow.

Or two MA are crossing the other two MAs? It's ok. This EA will not trade often but it is no problem. Problem will be the following: it will be difficult to optimize the settings (period of each MA, type of MAs and so on).

So need clarification.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #360 (permalink)  
Old 09-16-2006, 02:55 PM
jth jth is offline
Junior Member
 
Join Date: Aug 2006
Posts: 25
jth is on a distinguished road
Hi newdigital,
No no no not all, at the same time I mean the choice of any one ma at any one time no more.

Let me try to clarify;

When a short ma crosses the slow ma in either direction it executes an order, at the same time it records the start price value and keeps track of the maximum price in that executed order. Then after a predetermined (which is determined by me) amount of pips it will execute a profit taking percentage (which is determined by me) amount not before the predetermined pips have been reached.
So that when the graph goes up and comes down (reverse if it is in a short order) to the predetermined percentage amount of the entry price, and the max price order, it exits the order or if the crossing of the slow ma over the fast ma which ever comes first. That’s it.

Obviously the money management, lot size and optional additional orders in the same ea, has also got to be in the ea if possible.
Regards
JTH
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:42 PM.



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