Forex



Go Back   Forex Trading > Training > Metatrader > Metatrader 4 mql 4 - Development course > Questions
Forex Forum Register More recent Calendar Advertising Others Help






Register
Welcome to Forex-TSD!, one of the largest Forex forums worldwide, where you will be able to find the most complete and reliable Forex information imaginable.

From the list below, select the forum that you want to visit and register to post, as many times you want. It’s absolutely free. Click here for registering on Forex-TSD.

Exclusive Forum
The Exclusive Forum is the only paid section. Once you subscribe, you will get free access to real cutting-edge Trading Systems (automated and not), Indicators, Signals, Articles, etc., that will help and guide you, in ways that you could only imagine, with your Forex trading.
  • Elite Section
    Get access to private discussions, specialized support, indicators and trading systems reported every week.
  • Advanced Elite Section
    For professional traders, trading system developers and any other member who may need to use and/or convert, the most cutting-edge exclusive indicators and trading systems for MT4 and MT5.
See more

Reply
 
Thread Tools Display Modes
  #91 (permalink)  
Old 04-18-2006, 01: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!StumbleUpon this Post!Reddit this Post!Facebook this Post!BlinkList this Post!Google Bookmarks this Post!Yahoo! My Web this Post!
Reply With Quote
  #92 (permalink)  
Old 04-18-2006, 04: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!StumbleUpon this Post!Reddit this Post!Facebook this Post!BlinkList this Post!Google Bookmarks this Post!Yahoo! My Web this Post!
Reply With Quote
  #93 (permalink)  
Old 04-18-2006, 05: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!StumbleUpon this Post!Reddit this Post!Facebook this Post!BlinkList this Post!Google Bookmarks this Post!Yahoo! My Web this Post!
Reply With Quote
  #94 (permalink)  
Old 04-24-2006, 12:41 AM
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!StumbleUpon this Post!Reddit this Post!Facebook this Post!BlinkList this Post!Google Bookmarks this Post!Yahoo! My Web this Post!
Reply With Quote
  #95 (permalink)  
Old 04-24-2006, 01: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!StumbleUpon this Post!Reddit this Post!Facebook this Post!BlinkList this Post!Google Bookmarks this Post!Yahoo! My Web this Post!
Reply With Quote
  #96 (permalink)  
Old 04-24-2006, 04:25 AM
Junior Member
 
Join Date: Nov 2005
Posts: 26
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!StumbleUpon this Post!Reddit this Post!Facebook this Post!BlinkList this Post!Google Bookmarks this Post!Yahoo! My Web this Post!
Reply With Quote
  #97 (permalink)  
Old 04-24-2006, 04: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!StumbleUpon this Post!Reddit this Post!Facebook this Post!BlinkList this Post!Google Bookmarks this Post!Yahoo! My Web this Post!
Reply With Quote
  #98 (permalink)  
Old 04-25-2006, 04: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!StumbleUpon this Post!Reddit this Post!Facebook this Post!BlinkList this Post!Google Bookmarks this Post!Yahoo! My Web this Post!
Reply With Quote
  #99 (permalink)  
Old 04-27-2006, 11:40 AM
Bongo's Avatar
Senior Member
 
Join Date: Oct 2005
Posts: 500
Bongo is an unknown quantity at this point
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!StumbleUpon this Post!Reddit this Post!Facebook this Post!BlinkList this Post!Google Bookmarks this Post!Yahoo! My Web this Post!
Reply With Quote
  #100 (permalink)  
Old 05-14-2006, 03: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!StumbleUpon this Post!Reddit this Post!Facebook this Post!BlinkList this Post!Google Bookmarks this Post!Yahoo! My Web this Post!
Reply With Quote
Reply

Bookmarks

Tags
forex, histogram, JMASlope, ToR 1.20, ZUP_v1.mq4


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
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


All times are GMT. The time now is 12:08 AM.



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