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
  #261 (permalink)  
Old 08-23-2006, 08:18 PM
Junior Member
 
Join Date: Feb 2006
Posts: 8
guibernaua is on a distinguished road
MTF Stochastics

HI

I have an idea about an indicator: Slow Stochastic Multiple Time Frames.

The idea here is to have an indicator that shows the STO level in different TF by a color code.

The indicator could be displayed like Forex Freedom Indicator.

Color code to display (for example):
0-10 Extremely oversold
10-20 Oversold
20-80 Transition Level
80-90 Overbought
90-100 Extremely Overbought

Time Frames to Display: 5min, 15 min, 30 min, 1h, 4h, Daily

Customizable K, D and Slow, colors and levels

What do you think?

Thanks
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #262 (permalink)  
Old 08-25-2006, 02:15 PM
Junior Member
 
Join Date: May 2006
Posts: 4
ludekz is on a distinguished road
e-mail

Hi,

Sorry about stupid question. How to put e-mail alert on indicator? (“Demo1”)

Thanks
Ludek



Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #263 (permalink)  
Old 08-25-2006, 02:56 PM
Administrator
 
Join Date: Sep 2005
Posts: 16,323
Blog Entries: 108
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 ludekz
Hi,

Sorry about stupid question. How to put e-mail alert on indicator? (“Demo1”)

Thanks
Ludek



It is not stupid question.
It is very right question.
I collected everything in one thread here Email
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #264 (permalink)  
Old 08-25-2006, 07:34 PM
iscuba11's Avatar
Senior Member
 
Join Date: May 2006
Location: Houston
Posts: 400
iscuba11 is on a distinguished road
Question Help needed on Modifying Stop Loss and Take Profit on Existing Trades

I created this, but have a problem. I have 2 trades active - 1 sell on EURUSD, and 1 sell on USDCHF. The below coding will modify the first sell trade EURUSD, but will not modify the second sell trade USDCHF. I know something is wrong and lacking in the coding. Would you eyeball it and tell me what I did wrong or what is omitted in the below coding. This is very important to me! Thanks much in advance!

Dave
<><<<



int i=0;

for(i=0; i<OrdersTotal(); i++)

OrderSelect(i, SELECT_BY_POS, MODE_TRADES);

if(OrderType()>=OP_SELL && OrderSymbol()==Symbol() && OrderMagicNumber () == MagicNumber || MagicNumber==0)
{
OrderModify(OrderTicket(),OrderOpenPrice(),Ask+(15 *Point),Bid-(20*Point),Cyan); //Modify stop loss and take profit
return(0);
}

if(OrderType()>=OP_BUY && OrderSymbol()==Symbol() && OrderMagicNumber () == MagicNumber || MagicNumber==0)
{
OrderModify(OrderTicket(),OrderOpenPrice(),Bid-(15*Point),Ask+(20*Point),Cyan); //Modify stop loss and take profit
return(0);
}

return(0);

}

}

Last edited by iscuba11; 08-26-2006 at 01:29 AM.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #265 (permalink)  
Old 08-26-2006, 01:40 AM
iscuba11's Avatar
Senior Member
 
Join Date: May 2006
Location: Houston
Posts: 400
iscuba11 is on a distinguished road
Smile

From what I have experienced so far in looking at various codings of programs, there really seems a lack of modular block coding to handle all the various functions of the programs. Some languages use this block coding very extensively which eliminates a lot of custom coding. I wonder if this is possible with this language. Like the function of my coding above. This is modular in itself. It serves one big function (when it is coded right) and that is to modify existing ongoing live trades.

Why can't most if not all of this coding be broken down into useable modular blocks of code, each doing a specific task. Maybe I am not seeing it for what these programs are doing, but many of these programs are one big miss mash of coding. They function, but they are hard to follow the logic in them. Modular coding is much cleaner and easy to learn from.

Just my thoughts!


Dave
<><<<

P.S. Would you fine programmers in this forum lend my little block of programming in above post a hand. It needs your expertise to fix it!
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #266 (permalink)  
Old 08-26-2006, 06:36 AM
Member
 
Join Date: Dec 2005
Posts: 71
richx7 is on a distinguished road
Templates and block codes would make developing EAs much easier.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #267 (permalink)  
Old 08-26-2006, 06:22 PM
Junior Member
 
Join Date: Dec 2005
Posts: 22
Kent is on a distinguished road
Quote:
Originally Posted by richx7
Templates and block codes would make developing EAs much easier.
>>>
I agree to what you both said. The otherday, I saw someone mentioning that there is no 'or' operator/syntax is available in Mql. Really? Surprised.

Aside, Can any one help me in suggesting a simple indicator and corresponding EA combination so that I can understand how things work here?

Last edited by Kent; 08-26-2006 at 06:28 PM.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #268 (permalink)  
Old 08-27-2006, 03:26 AM
Junior Member
 
Join Date: Aug 2006
Posts: 19
solaris is on a distinguished road
Need help to fix exit on simple MA EA...

I have an EA I did quickly using a template I have found on the net. It seems to work fine executing the BUY/SELL entries. However, it is not executing the exit code. Would someone please check it out and make the necessary corrections?

It is a simple MA cross using a fast EMA3 and couple EMAs serving as upper and lower bands. BUY is when EMA3 cross up and above the upper EMA band and exit when it cross down and below the upper EMA band. SELL is when EMA3 cross down and below the lower EMA band and exit when it cross up and above the lower band.

I would appreciate any help.

solaris
Attached Files
File Type: mq4 20-20 MAX Test EA v2.mq4 (10.0 KB, 23 views)
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #269 (permalink)  
Old 08-27-2006, 03:44 PM
Member
 
Join Date: Dec 2005
Posts: 58
adria is on a distinguished road
two last numbers of a price

Please, help me.
How to write the next code: two last numbers of the close price of the current bar = 00 or 50?
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #270 (permalink)  
Old 08-27-2006, 04:14 PM
Senior Member
 
Join Date: Mar 2006
Posts: 787
Maji is on a distinguished road
Something similar to

if(MathMod(num1,100) == 0 || MathMod(num1,50) == 0)


I have not tested it, but it should send you in the right direction.
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 07:20 PM.



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