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
  #251 (permalink)  
Old 08-19-2006, 08:49 AM
Den's Avatar
Den Den is offline
Member
 
Join Date: Apr 2006
Posts: 32
Den is on a distinguished road
I might not be posting in the right place, but I need help and hoping someone will help me. In metatrader 4 there is an option of adding a trand line with the angle, you can put it at any angle you wish. Well what I need is an indicator or something where the angle for that line is locked. So all I have to do is apply it to a specific point on the graph without trying to create that angle. If that can be done please let me know and I will tell you what specifications I need.
__________________
Si vis pacem, para bellum
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #252 (permalink)  
Old 08-19-2006, 11:34 AM
Kalenzo's Avatar
Senior Member
 
Join Date: Dec 2005
Location: Bydgoszcz - Poland
Posts: 696
Kalenzo is on a distinguished road
Quote:
Originally Posted by iscuba11
Thank you many times over!!!!!! Really made my day. Someday, one day, hopefully before the rapture or I get as old as Moses, I may be able to be proficient at coding this language.

May God Bless You!

Reverend Dave
<><<<
I'm glad I could help u. Coding in mql isn't so hard, just keep focus and be patient

Regards
Kale
__________________
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
  #253 (permalink)  
Old 08-19-2006, 11:39 PM
kevmcfoster's Avatar
Senior Member
 
Join Date: Jul 2006
Location: Dubai
Posts: 143
kevmcfoster is on a distinguished road
Hi Codes guru

Is it possible to make an indicator with the following

Strong Downtrend
MINUS 10 POINTS= Last hour close below 5 hour moving average
MINUS 15 POINTS= NEW 3 DAY LOW
MINUS 20 POINTS= LAST PRICE BELOW 20DAY MOVING AVERAGE
MINUS 25 POINTS= NEW 3 WEEK LOW IN RECENT WEEK
MINUS 30 POINTS= NEW 3 MONTH LOW IN CURRENT MONTH

IF TOTAL SCORE=MINUS 100, THEN STRONG DOWNTREND CONFIRMED
PRICE CANT GO UP. IT CAN ONLY GO LOWER===========================

THE OPPOSITE=STRONG UPTREND

Strong UPtrend
PLUS 10 POINTS= Last hour close ABOVE 5 hour moving average
PLUS 15 POINTS= NEW 3 DAY HIGH
PLUS 20 POINTS= LAST PRICE ABOVE 20DAY MOVING AVERAGE
PLUS 25 POINTS= NEW 3 WEEK HIGH IN RECENT WEEK
PLUS 30 POINTS= NEW 3 MONTH HIGH IN CURRENT MONTH

IF TOTAL SCORE=PLUS 100, THEN STRONG UPTREND CONFIRMED
PRICE CANT GO DOWN. IT CAN ONLY GO HIGHER

Thnx
kev
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #254 (permalink)  
Old 08-21-2006, 03:57 AM
BluePearl's Avatar
Senior Member
 
Join Date: Oct 2005
Posts: 204
BluePearl is on a distinguished road
backtesting ea with two time frames

Does the strategy tester in MT4 work with an EA that uses two time frames? For example, a H1 EA that uses an indicator in a M5 time frame.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #255 (permalink)  
Old 08-21-2006, 08:36 AM
iscuba11's Avatar
Senior Member
 
Join Date: May 2006
Location: Houston
Posts: 399
iscuba11 is on a distinguished road
Question Another problem question!

h1[k] = Highest(NULL,5,MODE_HIGH,n - Nbar,n-(n-Nbar)+1);
l1[k] = Lowest(NULL,5,MODE_LOW,n - Nbar,n-(n-Nbar)+1);

h1[k] = Highest(NULL,15,MODE_HIGH,n - Nbar,n-(n-Nbar)+1);
l1[k] = Lowest(NULL,15,MODE_LOW,n - Nbar,n-(n-Nbar)+1);


I want two distinct versions of my indicator, one 5 min, and one 15 minute.

I have a comment identifying whether it is the 5 min version or the 15 minute version that comments at the top left hand corner. The problem I have is that the 15 minute comment will not disappear when I switch the time frame back to 5 minute.

The 5 minute comment should overwrite the 15 minute comment since it locates in the same place, but does not??


Is there a cure or is this a glitch in the graphics package????

Dave

P.S. I do not want to place a ' 0 ' in place of the 5 or 15 in the statement!!!!!!
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #256 (permalink)  
Old 08-21-2006, 08:56 AM
Kalenzo's Avatar
Senior Member
 
Join Date: Dec 2005
Location: Bydgoszcz - Poland
Posts: 696
Kalenzo is on a distinguished road
Quote:
Originally Posted by iscuba11
h1[k] = Highest(NULL,5,MODE_HIGH,n - Nbar,n-(n-Nbar)+1);
l1[k] = Lowest(NULL,5,MODE_LOW,n - Nbar,n-(n-Nbar)+1);

h1[k] = Highest(NULL,15,MODE_HIGH,n - Nbar,n-(n-Nbar)+1);
l1[k] = Lowest(NULL,15,MODE_LOW,n - Nbar,n-(n-Nbar)+1);


I want two distinct versions of my indicator, one 5 min, and one 15 minute.

I have a comment identifying whether it is the 5 min version or the 15 minute version that comments at the top left hand corner. The problem I have is that the 15 minute comment will not disappear when I switch the time frame back to 5 minute.

The 5 minute comment should overwrite the 15 minute comment since it locates in the same place, but does not??


Is there a cure or is this a glitch in the graphics package????

Dave

P.S. I do not want to place a ' 0 ' in place of the 5 or 15 in the statement!!!!!!
Where did u put Comment function? Post all file 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
  #257 (permalink)  
Old 08-21-2006, 10:58 AM
iscuba11's Avatar
Senior Member
 
Join Date: May 2006
Location: Houston
Posts: 399
iscuba11 is on a distinguished road
Question

Let's try a new approach. Same statement, Null, 15, etc. etc.

Comment displays message. When I switch to another time frame which activates other indicator, Null, 5, how do I eliminate the comment made by the 15 minute indicator???? Other languages, all you have to is use a comment " " field on the 5 minute indicator and it will wipe out the displayed message left by the 15 minute indicator. Why does this not work on this goofy language??
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #258 (permalink)  
Old 08-22-2006, 04:12 PM
Junior Member
 
Join Date: Dec 2005
Posts: 21
Kent is on a distinguished road
Any MA Crossing Price: Anyone? Thanks in advance

Bunch of great ppl here!. I read almost all the threads Need help.

--------------------------------------------------------------------------------
(* I posted this in Alerts Thread and later saw this forum titled 'ASK'. Sorry to repeat the post again. )

First, let me say this forum is one of the great forums. I really appreciate/applaud to those who take their time and effort to reply/solve other user's problems/queries.

Now I have been reading this forum and searching mainly for a simple indicator. Either my rusty brain is not seeing/reading the code properly or I am getting old

All I need is an Audio/Arrow Alert when PRICE crosses/touches a particular MA. I See there are lots of indicators/codes that give alerts when 2 MAs cross. But I just want an alert when PRICE Crosses/Touches a particular MA.

Is this possible? I apologise in advance if this is requested back and already answered. I couldnot find it

Also I would like to get suggestion on a starting point on understanding MQL language/functions structures and syntax and any ebook/book recos is greatly appreciated.

Thanks again for this great site and great ppl!

Kent
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #259 (permalink)  
Old 08-23-2006, 12:14 AM
kevmcfoster's Avatar
Senior Member
 
Join Date: Jul 2006
Location: Dubai
Posts: 143
kevmcfoster is on a distinguished road
Quote:
Originally Posted by iscuba11
Let's try a new approach. Same statement, Null, 15, etc. etc.

Comment displays message. When I switch to another time frame which activates other indicator, Null, 5, how do I eliminate the comment made by the 15 minute indicator???? Other languages, all you have to is use a comment " " field on the 5 minute indicator and it will wipe out the displayed message left by the 15 minute indicator. Why does this not work on this goofy language??

Hello Iscuba11,
Can u develop this indicator for me. Its a simple indicator and I just need it for reference.

If the current bar breaks the high of previous 3 bars, then a buy signal is generated.
If the current bar breaks the low of previous 3 bars, then a sell signal is generated.
Also, is it possible that the break point can be mentioned next to the buy/sell signal

Thnx
kev
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #260 (permalink)  
Old 08-23-2006, 06:58 AM
Junior Member
 
Join Date: Aug 2006
Posts: 12
billritz is on a distinguished road
Red face Mark charts in an EA (and other things)

Questions/problems:
Are there any examples around of visually showing what your EA is doing? I'd like to have arrows or labels like my indicators on the chart when the EA is running.

Speaking of that - how do some of the indicators write below the Comment() line at the top left corner?

You know how you can open a chart after testing? It's got little arrows on it for each buy or sell, if you set the color in the code. How do you get to that chart as the EA is running? For that matter, how can I increase the size of those arrows, or add labels to that chart?

Is there any way to save/load parameters for indicators? You can do it so easily for EAs that I guess I must just be missing it. I really don't want to write an entire flat file read/write routine just to do that, when it should be there anyway (In my humble opinion)
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply

Bookmarks

Tags
histogram, forex, ZUP_v1.mq4

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 10:53 PM
Forex SRDC Sidus Sibkis EA MT4 Forum OTCSmart This thread Refback 12-08-2007 12:46 PM


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



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