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
  #91 (permalink)  
Old 04-18-2006, 12:20 PM
Member
 
Join Date: Apr 2006
Posts: 61
gordon is on a distinguished road
Thank you for your help Firedave.

Gordon
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #92 (permalink)  
Old 04-18-2006, 03:41 PM
Member
 
Join Date: Apr 2006
Posts: 34
Tamershahin is on a distinguished road
Help please!

First of all I am new to this forum and I have to thank everyone here for making it so wonderful, especially Newdigital and Codersguru!

I have a question about some code.

If a trade has been opened according to some conditions for that bar. Assume that a profit was made and the trade was closed. How do I make the EA not open a position again on the bar that was just closed?

I hope that it is clear!?

Thanks again!!

Tamer
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #93 (permalink)  
Old 04-18-2006, 04:53 PM
Junior Member
 
Join Date: Apr 2006
Posts: 3
Landzone is on a distinguished road
Quote:
Originally Posted by jerrymar
codersguru,

gud day!

what code could i add to silvertrend signal. so that everytime it signals buy or sell aside from visual signal it will also sound off or better send me an email.

thanks it would help me alot.

Merry Christmas!!!

hi, can you help me to modify the code instead of tracing the buy or sell signal at the same time it will do auto close when the bar reach up to that level.. tq
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #94 (permalink)  
Old 04-23-2006, 11:41 PM
Junior Member
 
Join Date: Mar 2006
Posts: 14
Rupp is on a distinguished road
Hello, does anyone know if you can add comments from different indicators on the same chart to appear without overwriting each other? This is annoying me that I can't do this, I tried adding "\n" spaces in different comments so they dont write on the same line, but the other indicator will just erase everything from any previous indicator....so far I can only have comments from one indicator appear on my chart at any given time.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #95 (permalink)  
Old 04-24-2006, 12:35 AM
Member
 
Join Date: Mar 2006
Posts: 33
dr_richard_gaines is on a distinguished road
Icustoms Expert

HI

I would like a few examples of Icustoms Expert Advisors I am understand indicators. I would like it to have a number of calls like 8 indicators that I can try different combinations of them. I would like to be able to call list and add to the list after I learn how.

Doc

Quote:
Originally Posted by codersguru
Hi folks,

I've got a lot of private messages asking me for helping with some pieces of code.

Here you can post your questions related to MQL4, and I'll do my best to answer them.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #96 (permalink)  
Old 04-24-2006, 03:25 AM
Junior Member
 
Join Date: Nov 2005
Posts: 25
jerseydevil20 is on a distinguished road
Indicators in Price frame?

Is there a way to plot indicators such as MACD or Williams %R in the price window? (and not in their own frame at the bottom)
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #97 (permalink)  
Old 04-24-2006, 03:35 PM
Mohammed's Avatar
Senior Member
 
Join Date: Mar 2006
Posts: 119
Mohammed is on a distinguished road
Quote:
Originally Posted by jerseydevil20
Is there a way to plot indicators such as MACD or Williams %R in the price window? (and not in their own frame at the bottom)
Salam jersey,

Just edit this line:

#property indicator_separate_window

To be:

#property indicator_chart_window
__________________
There is a fine line between freedom of expression and hate literature.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #98 (permalink)  
Old 04-25-2006, 03:20 AM
Junior Member
 
Join Date: Apr 2006
Posts: 3
eddieee2000 is on a distinguished road
Lightbulb Parabolic SAR EA help

CODERSGURU,
Many thanks for helping me understand a bit more of the MT4 coding!!!!!
I am needing help with a new project I have been working on. Is it possible to make an EA which will take a long or short position only ONCE (until a new signal reverses direction) on a Parabolic SAR signal? In other words, I want to go long the moment the Parabolic SAR plots a dot underneath the current price. Then take profit @ 20pips or so (depending on time frame). Then NOT take any other trades until the Parabolic SAR plots above the price.....then go short with the TP, etc.
Please help!
Eddie
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #99 (permalink)  
Old 04-27-2006, 10:40 AM
Senior Member
 
Join Date: Oct 2005
Posts: 301
Bongo is on a distinguished road
MQL3 to MQL4

Hi,
I’m confuse. These codes are working in MQL3
but only selling in MQL4. Why?
Thanks
Bongo
MQL3:
if iRSI(Per,0) > iRSI(Per,1) and iRSI(Per,0) > Alfa then
{
Alfa = iRSI(Per,0);
SetOrder(OP_SELL,Lots,etc....
Exit;
}
if iRSI(Per,0) < iRSI(Per,1) and iRSI(Per,0) < Alfa then
{
Alfa = iRSI(Per,0);
SetOrder(OP_BUY,Lots,....
Exit;
}

MQL4:
if( iRSI(NULL, 0, Per, PRICE_CLOSE, 0) > iRSI(NULL, 0, Per, PRICE_CLOSE, 1) && iRSI(NULL, 0, Per, PRICE_CLOSE, 0) > Alfa )
{
Alfa = iRSI(NULL, 0, Per, PRICE_CLOSE, 0);
OrderSend(Symbol(),OP_SELL,Lots,...
return(0);
}

if( iRSI(NULL, 0, Per, PRICE_CLOSE, 0) < iRSI(NULL, 0, Per, PRICE_CLOSE, 1) && iRSI(NULL, 0, Per, PRICE_CLOSE, 0) < Alfa )
(If I switch MQL4 this red to > then ..buy and sell) {
Alfa = iRSI(NULL, 0, Per, PRICE_CLOSE, 0);
OrderSend(Symbol(),OP_BUY,Lots,...
return(0);
}
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #100 (permalink)  
Old 05-14-2006, 02:52 AM
Junior Member
 
Join Date: Apr 2006
Posts: 4
cramnhoj is on a distinguished road
Inter EA Communication

Hi all,

would like to ask how do you facilitate communication between two or more running EAs. What I want to do is maintain a set upper limit on the percentage of equity at risk, and I want several EAs running on different currency pairs. Say the total at risk would be 10% and each trade is set at 1% risk. One way I see this is when an EA has a signal to open a trade, I want it to check a global variable that has the current total percentage at risk, if less than 10%, continue with the trade and increment the global variable (if not, forget the trade).

The question here is if the operation is atomic in execution, what little I remember from college OS concepts is that aside from the global variable containing the percentage at risk I also need a global variable saying whether or not the percentage at risk variable is in use (a lock so to speak). I believe there's a function that sets a value to a global variable but first checks it's current value, this could be used if it's execution is atomic right?

I asked here in case someone has already done this (or remembers their OS concepts course ).
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:26 AM.



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