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
  #671 (permalink)  
Old 07-11-2007, 08:44 PM
ryanklefas's Avatar
Senior Member
 
Join Date: Apr 2006
Location: USA
Posts: 439
ryanklefas is on a distinguished road
Quote:
Originally Posted by nyachty View Post
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.
I believe this will work.
Attached Files
File Type: mq4 Heiken_Ashi_Smoothed_MultipleAlerts.mq4 (5.2 KB, 22 views)
__________________
"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
  #672 (permalink)  
Old 07-12-2007, 05:10 PM
Junior Member
 
Join Date: Jul 2007
Posts: 1
s4325 is on a distinguished road
Retrieving open price to variable

Hi....

I want to retrieve the price and type of order of the current opened position to a variable.
Thank you in advance.....
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #673 (permalink)  
Old 07-17-2007, 11:29 AM
Junior Member
 
Join Date: Dec 2006
Posts: 2
ashnou is on a distinguished road
i need help to get this indicator fix

i'm a beginner in mql4 i made this simple indicator to draw midpoint line on chart to help me counting basic elliot wave .

i hope some one help me to fix the angle of the line.
midpoint = (dhigh+dlow)/2

thanks in advance .
PHP Code:
//+------------------------------------------------------------------+
//|                                                    Mid_Point.mq4 |
//|                                                           ashnou |
//|                http://finance.groups.yahoo.com/group/ashnou2002/ |
//+------------------------------------------------------------------+
#property copyright "ashnou"
#property link      "http://finance.groups.yahoo.com/group/ashnou2002/"

#property indicator_chart_window
#property indicator_buffers 1
#property indicator_color1 Red 

//---- buffers
double ExtMapBuffer1[];
//+------------------------------------------------------------------+
//| Custom indicator initialization function                         |
//+------------------------------------------------------------------+
int init()
  {
//---- indicators
   
SetIndexStyle(0,DRAW_LINE);
   
SetIndexBuffer(0,ExtMapBuffer1);
   
string short_name "Your first indicator is running!";

IndicatorShortName(short_name);
//----
   
return(0);
  }
//+------------------------------------------------------------------+
//| Custom indicator deinitialization function                       |
//+------------------------------------------------------------------+
int deinit()
  {
//----
   
//----
   
return(0);
  }
//+------------------------------------------------------------------+
//| Custom indicator iteration function                              |
//+------------------------------------------------------------------+
int start()
  {
   
int    counted_bars=IndicatorCounted();
//----
if (counted_bars<0) return(-1);   
//----
if (counted_bars>0counted_bars--;

int pos=Bars-counted_bars;

double dHigh dLow dResult;

Comment("Hi! good luck in EW! ashnou");
while(
pos>=0)

{

dHigh High[pos];

dLow Low[pos];

dResult = (dHigh dLow)/;

ExtMapBuffer1[pos]= dResult ;

pos--;

}
   return(
0);
  }
//+------------------------------------------------------------------+ 
Attached Images
File Type: jpg ScreenHunter_01 Jul. 17 12.56.jpg (62.5 KB, 147 views)
Attached Files
File Type: mq4 Mid_Point.mq4 (2.0 KB, 21 views)
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #674 (permalink)  
Old 07-17-2007, 04:37 PM
ryanklefas's Avatar
Senior Member
 
Join Date: Apr 2006
Location: USA
Posts: 439
ryanklefas is on a distinguished road
Quote:
Originally Posted by s4325 View Post
Hi....

I want to retrieve the price and type of order of the current opened position to a variable.
Thank you in advance.....
Create a loop that scans through your open orders. When you find the order that you are looking for, check its OrderType() and its OrderOpenPrice() and store those in variables, int and double, respectively.
__________________
"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
  #675 (permalink)  
Old 07-18-2007, 11:44 AM
Junior Member
 
Join Date: May 2007
Posts: 8
prelude is on a distinguished road
Hi coder guru,
i 'm learning to program in mtq4 language using your lessons and it's a very interesting but long long way for me.
waiting to produce my own EAs (that's the ultime purpose), i test and use EA thats other talentus programmers make.
I am also a fan of the turtle method.
I found on this forum a programmer who made a very good job on an EA dedicated to the turtle method. The EA is very promising but need to be developed again but by some one who has good knowledge in programming. My problem is that the person who made this EA seem to have given up the project because he does not answer any more on the thread he initiated himelf about his EA.
So i would like you to read the thread and to have a look on the EA and tell me if you could be interested to continue the development and testing or not.
I'm currently testing it in a demo account and it's very promising in opening positions but not very good in closing them. this is the point to work on

here is the link of the said above thread: MY TURTLES EA - need Testers

thanks for reading me

Regards,

Jonathan

Last edited by prelude; 07-18-2007 at 11:47 AM.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #676 (permalink)  
Old 07-18-2007, 11:58 AM
el cid's Avatar
Senior Member
 
Join Date: Nov 2006
Posts: 968
el cid is an unknown quantity at this point
Hi Folks

I am writing rules for an E A before I give it to a programmer to compile.

What indicator could I use to confirm a trend has broken out.

I am looking for an indicator who information can be input into an E A

regards

El cID
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #677 (permalink)  
Old 07-18-2007, 01:41 PM
Junior Member
 
Join Date: May 2007
Posts: 8
prelude is on a distinguished road
I would say ATR
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #678 (permalink)  
Old 07-18-2007, 04:10 PM
el cid's Avatar
Senior Member
 
Join Date: Nov 2006
Posts: 968
el cid is an unknown quantity at this point
Quote:
Originally Posted by prelude View Post
I would say ATR

Sounds useful ....any others?

Thanks

El cid
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #679 (permalink)  
Old 07-19-2007, 08:53 AM
iscuba11's Avatar
Senior Member
 
Join Date: May 2006
Location: Houston
Posts: 399
iscuba11 is on a distinguished road
Cool Buffer giving me a 2147483547 number in EA. How do I handle it?

Fixed it by myself!

Last edited by iscuba11; 07-19-2007 at 03:08 PM.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #680 (permalink)  
Old 07-19-2007, 10:42 PM
ryanklefas's Avatar
Senior Member
 
Join Date: Apr 2006
Location: USA
Posts: 439
ryanklefas is on a distinguished road
Quote:
Originally Posted by el cid View Post
Hi Folks

I am writing rules for an E A before I give it to a programmer to compile.

What indicator could I use to confirm a trend has broken out.

I am looking for an indicator who information can be input into an E A

regards

El cID
I like using OsMA for checking volatility. You can also use the momentum line of the ADX.
__________________
"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 06:25 AM.



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