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
  #661 (permalink)  
Old 07-07-2007, 01:54 PM
camisa's Avatar
Senior Member
 
Join Date: Dec 2005
Location: Portugal
Posts: 237
camisa is on a distinguished road
Quote:
Originally Posted by ryanklefas View Post
That is one strange indicator. What signals are you trying to add alerts to?
I trying to add alerts when the grey/gold little squares appear (value 5 and value 6 from madrogoldenfilter indicator window)
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #662 (permalink)  
Old 07-07-2007, 02:23 PM
ryanklefas's Avatar
Senior Member
 
Join Date: Apr 2006
Location: USA
Posts: 439
ryanklefas is on a distinguished road
Quote:
Originally Posted by camisa View Post
I trying to add alerts when the grey/gold little squares appear (value 5 and value 6 from madrogoldenfilter indicator window)
Sometimes, when the variables don't have values, they default to the maximum value which is something like: 235465464654... It's some really huge number. That could be causing your problem.
__________________
"Don't work harder, work smarter." -- my Java professor

Coder for Hire:
http://www.firecell-fx.com

Last edited by ryanklefas; 07-07-2007 at 02:26 PM.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #663 (permalink)  
Old 07-07-2007, 02:58 PM
camisa's Avatar
Senior Member
 
Join Date: Dec 2005
Location: Portugal
Posts: 237
camisa is on a distinguished road
Quote:
Originally Posted by ryanklefas View Post
Sometimes, when the variables don't have values, they default to the maximum value which is something like: 235465464654... It's some really huge number. That could be causing your problem.
hum I tried

if (madroup>0.1 && madroup<1)

because when madroup has a value, it's always 0.22

but to no avail :P
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #664 (permalink)  
Old 07-08-2007, 09:42 PM
Junior Member
 
Join Date: Jul 2007
Posts: 2
bcforex is on a distinguished road
Where to download the script for ProfitProtector Expert Advisor

Hi codersguru,

I am very new to the MQL4 programming. I have downloaded your pdf manual. And I have found that you have explained the code snippets very well in the manual. I am very interested in learning about the Expert Advisor and surprised to learn that you can do a lot of things with this language for trading. In the manual, you have mentioned that I can download the ProfitProtector script from your site. So far, I am not able to find the script. Please guide me how to download the sample script.

Thanks
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #665 (permalink)  
Old 07-09-2007, 12:10 AM
Member
 
Join Date: Jul 2006
Posts: 71
yano125 is on a distinguished road
Guideline or Template to Make an MTF Version of an Indicator

Hi.

I have requested in other threads for help to make an MTF version for the RMI Indicator which I substitute for RSI.

Since no one seems interested, I might just as well take a crack at doing it.

Could someone be kind enough to point me in the right direction where I can find the code to add to make the MTF version or maybe at least learn to make MTF versions of Indicators. I know not all indicators can have MTF versions.

Thank you in advance to whoever can help.

yano125
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #666 (permalink)  
Old 07-09-2007, 04:17 PM
basza's Avatar
Senior Member
 
Join Date: Dec 2005
Posts: 146
basza is on a distinguished road
Heiken Ashi within an ea help please

I have the following code in a ea, but I am looking for a way so that it will only enter a new trade if Heiken Ashi has changed from one color to the other colour and back again. eg. it enters a trade when blue and exits once profit is hit. Now it can not enter again untill it turns red and the back to blue.

bool CheckHeikenAshi(int cmd)
{
haOpen = iCustom(NULL,0,"Heiken_Ashi_Smoothed",MaMetod,MaPe riod,2,1);
haClose = iCustom(NULL,0,"Heiken_Ashi_Smoothed",MaMetod,MaPe riod,3,1);
switch (cmd)
{
case OP_BUY : if (haOpen < haClose) return(true);
break;
case OP_SELL : if (haOpen > haClose) return(true);
}

return(false);
}
Thanks in advance.
basza

Last edited by basza; 07-09-2007 at 04:21 PM. Reason: Typo mistake
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #667 (permalink)  
Old 07-10-2007, 09:22 PM
Junior Member
 
Join Date: Aug 2006
Posts: 13
nyachty is on a distinguished road
Heiken email alert

Hello all,

Funny I was looking for an email alert added to this indicator. Maybe the code Guru can help me modify this indicator to send emails? Thank you.
Attached Files
File Type: mq4 Heiken_Ashi_Smoothed_Alert[1].mq4 (5.1 KB, 9 views)
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #668 (permalink)  
Old 07-11-2007, 05:28 AM
iscuba11's Avatar
Senior Member
 
Join Date: May 2006
Location: Houston
Posts: 399
iscuba11 is on a distinguished road
Smile How do I easily find what value a variable is in an indicator

Is there a script or something to use, or do I use a comment statement??

Dave

<><<<
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #669 (permalink)  
Old 07-11-2007, 03:03 PM
ryanklefas's Avatar
Senior Member
 
Join Date: Apr 2006
Location: USA
Posts: 439
ryanklefas is on a distinguished road
Quote:
Originally Posted by iscuba11 View Post
Is there a script or something to use, or do I use a comment statement??

Dave

<><<<
You could try creating a global variable with the indicator and then reading it with your EA. Or you have to make the indicator output the variable via one of its buffers.
__________________
"Don't work harder, work smarter." -- my Java professor

Coder for Hire:
http://www.firecell-fx.com
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #670 (permalink)  
Old 07-11-2007, 08:38 PM
ryanklefas's Avatar
Senior Member
 
Join Date: Apr 2006
Location: USA
Posts: 439
ryanklefas is on a distinguished road
Quote:
Originally Posted by basza View Post
Now it can not enter again untill it turns red and the back to blue.

bool CheckHeikenAshi(int cmd)
{
haOpen = iCustom(NULL,0,"Heiken_Ashi_Smoothed",MaMetod,MaPe riod,2,1);
haClose = iCustom(NULL,0,"Heiken_Ashi_Smoothed",MaMetod,MaPe riod,3,1);
switch (cmd)
{
case OP_BUY : if (haOpen < haClose) return(true);
break;
case OP_SELL : if (haOpen > haClose) return(true);
}

return(false);
}
Thanks in advance.
basza
To resolve this issue would require a more complicated function than what you have presented here. The EA would have to "remember" what the indicator is doing by either (1) scanning multiple bars of the indicator (2) storing recent data for the past few bars for what the indicator has done, or what color it was.
__________________
"Don't work harder, work smarter." -- my Java professor

Coder for Hire:
http://www.firecell-fx.com
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 09:20 AM.



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