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
  #841 (permalink)  
Old 11-05-2007, 03:29 AM
Junior Member
 
Join Date: Jul 2007
Posts: 15
mbaklur99 is on a distinguished road
(need help) how to make multi time frame signal EA

please help

i have signal from TF 4H
(may be from philip nell or other 4h signal)

then i wan to make
entry point by the signal come from
smaller TF (1-5 minutes)

i just need any reference
EA
that ever built

no matter if even very oldest EA
that ever made

any one can help me ? please ? :-o
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #842 (permalink)  
Old 11-05-2007, 03:33 AM
ralph.ronnquist's Avatar
Senior Member
 
Join Date: Oct 2006
Posts: 280
ralph.ronnquist is on a distinguished road
Quote:
Originally Posted by ajk View Post
double CON1= High[iHighest(NULL,15,MODE_HIGH,10,5)]*Point;
double CON2= Low[iLowest(NULL,15,MODE_LOW,10,5)]*Point;
double CONBREAKPOINT = 10;
double BREAKFINAL = (CON1 - CON2) ;

I am developing a simple price filter and can't make this work. Can anyone tell me how to determine the highest price of the last x n number of bars?
I would like to take the pricehigh - price low and compare in pips

Any help would be appreciated.
The High[m] and Low[n] values already are "*Point", because they are the actual prices. You might have meant "/Point" in order to get the number of pips they represent.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #843 (permalink)  
Old 11-05-2007, 04:39 AM
wolfe's Avatar
Senior Member
 
Join Date: Jan 2006
Posts: 723
wolfe is on a distinguished road
Quote:
Originally Posted by ajk View Post
double CON1= High[iHighest(NULL,15,MODE_HIGH,10,5)]*Point;
double CON2= Low[iLowest(NULL,15,MODE_LOW,10,5)]*Point;
double CONBREAKPOINT = 10;
double BREAKFINAL = (CON1 - CON2) ;

I am developing a simple price filter and can't make this work. Can anyone tell me how to determine the highest price of the last x n number of bars?
I would like to take the pricehigh - price low and compare in pips

Any help would be appreciated.

I think all you need to do is this:

Highest=iHighest(NULL,0,MODE_HIGH,20,0);
Gives you the highest high of last 20 bars


Highest=iHighest(NULL,0,MODE_HIGH,50,0);
This is the highest high of the last 50 bars

I hope this works for you.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #844 (permalink)  
Old 11-05-2007, 06:25 AM
Senior Member
 
Join Date: Feb 2006
Posts: 559
Michel is on a distinguished road
Quote:
Originally Posted by ajk View Post
double CON1= High[iHighest(NULL,15,MODE_HIGH,10,5)]*Point;
double CON2= Low[iLowest(NULL,15,MODE_LOW,10,5)]*Point;
double CONBREAKPOINT = 10;
double BREAKFINAL = (CON1 - CON2) ;

I am developing a simple price filter and can't make this work. Can anyone tell me how to determine the highest price of the last x n number of bars?
I would like to take the pricehigh - price low and compare in pips

Any help would be appreciated.
PHP Code:
double HighPrice iHigh(NULL,15,iHighest(NULL,15,MODE_HIGH,n,0));
double LowPrice iLow(NULL,15,iLowest(NULL,15,MODE_LOw,n,0));
double Delta = (HighPrice LowPrice) / Point
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #845 (permalink)  
Old 11-06-2007, 08:28 PM
Junior Member
 
Join Date: Feb 2007
Posts: 4
boum_999 is on a distinguished road
Help - InitialStop code - for Brainwashing EA

Hi,

I'm using the "Brainwashing #1c_2" Expert on Daily time frame, the initialstop is generate by the "PriceChannel_Stop_V1" , and sometime..it's to big. Is it possible add a Max Value, like 50pip.

And, is it possible to add a "BreakEven" to this Expert

Here is the part of the code

PHP Code:
extern int    SLIPPAGE       3
extern double Lots           0.1;    
extern int    StopLoss       10;     
extern int    TakeProfit     80
And

PHP Code:
 if (Sell==-&& Sell1>-&& !buysig) { buysig=truesellsig=falsesigtime=Time[lookupidx]; sigsl=Sell1; }
   if (
Buy==-&& Buy1>-&& !sellsig) { sellsig=truebuysig=falsesigtime=Time[lookupidx]; sigsl=Buy1; }
   if (!
ExistPosition() && ttime!=Time[0]) {
      
sigbar=(Time[0]-sigtime)/60/Period(); //the bar with signal
      
if (buysig
            
&& ((sigbar<=BarsToConfirm && Bid>sigsl && ItrendFilter && iTredn1>ItrendLevel) ||!ItrendFilter//iTrend filter
         
) {
         if (
StopLoss!=0ldStop=sigsl-StopLoss*Point;
         if (
TakeProfit!=0ldTake=Ask+TakeProfit*Point;
         
SetOrder(OP_BUYAskldStopldTake);
         
buysig=false;
         
ttime=Time[0];
      }
      if (
sellsig
            
&& ((sigbar<=BarsToConfirm && Ask<sigsl && ItrendFilter && iTredn2>ItrendLevel) ||!ItrendFilter//iTrend filter
         
) {
         if (
StopLoss!=0ldStop=sigsl+StopLoss*Point;
         if (
TakeProfit!=0ldTake=Bid-TakeProfit*Point;
         
SetOrder(OP_SELLBidldStopldTake);
         
sellsig=false;
         
ttime=Time[0]; 
I have already try to change this code line
PHP Code:
if (StopLoss!=0ldStop=sigsl-StopLoss*Point
...but... without success

Here is the orginal EA

Thank's
Attached Files
File Type: mq4 Brainwashing #1c_2.mq4 (11.5 KB, 8 views)
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #846 (permalink)  
Old 11-10-2007, 10:05 AM
cico707's Avatar
Junior Member
 
Join Date: Sep 2007
Posts: 9
cico707 is on a distinguished road
It is possible to insert a trailing stop to this EA?

I have tried this Ea on the currency GBP/USD and I think that he can give good results with a trailing stop.
Who helps me to insert a trailing stop?

THANKS
Attached Files
File Type: mq4 WeeklyBreakout_v1[1].0.mq4 (4.8 KB, 12 views)
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #847 (permalink)  
Old 11-10-2007, 11:28 AM
cico707's Avatar
Junior Member
 
Join Date: Sep 2007
Posts: 9
cico707 is on a distinguished road
Quote:
Originally Posted by cico707 View Post
I have tried this Ea on the currency GBP/USD and I think that he can give good results with a trailing stop.
Who helps me to insert a trailing stop?

THANKS
BACKTEST GBPJPY
Attached Images
File Type: gif StrategyTester GBPJPY.gif (5.5 KB, 122 views)
Attached Files
File Type: htm StrategyTester GBPJPY.htm (90.9 KB, 4 views)
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #848 (permalink)  
Old 11-10-2007, 07:36 PM
Sadly's Avatar
Senior Member
 
Join Date: Nov 2006
Posts: 260
Sadly is on a distinguished road
How do I express the following in MQL:-

if(boolean_condition_is_true AND (this_is_true OR that_is_true))

That is to say if boolean_condition is true AND (either this_is_true OR that_is_true) THEN do_something.

Anyone?
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #849 (permalink)  
Old 11-11-2007, 11:51 PM
Sadly's Avatar
Senior Member
 
Join Date: Nov 2006
Posts: 260
Sadly is on a distinguished road
In MQL, to change the sign of an identifier from positive to negative the syntax is: A = - A However, the reverse doesn;t seem to work out ie: A = + A. How can I change the sign of a negative value into a positive?
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #850 (permalink)  
Old 11-12-2007, 05:27 PM
Senior Member
 
Join Date: Feb 2006
Posts: 559
Michel is on a distinguished road
Quote:
Originally Posted by Sadly View Post
In MQL, to change the sign of an identifier from positive to negative the syntax is: A = - A However, the reverse doesn;t seem to work out ie: A = + A. How can I change the sign of a negative value into a positive?
A = -A; //Always works ...

Or :

A *= -1;

Last edited by Michel; 11-12-2007 at 05:30 PM.
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.