Forex



Go Back   Forex Trading > Training > Metatrader > Metatrader 4 mql 4 - Development course > Questions
Forex Forum Register More recent Blogs 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
  #431 (permalink)  
Old 11-13-2006, 06:54 PM
Junior Member
 
Join Date: Nov 2006
Posts: 22
majlisb is on a distinguished road
Is there any indicator that can show us the high0low ao ech bar in value in top or below each bar ?
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
  #432 (permalink)  
Old 11-13-2006, 07:31 PM
Junior Member
 
Join Date: May 2006
Posts: 12
rcbarlow is on a distinguished road
Getting ex4 file to work in Metrader

I received an indicator for metrader, however, it ends in ex4. When I copy it into the indicators folder, it does not show up. It is missing the Orange signal indicator that I can click on. When I checked, the ex4 file is in the indicators folder but does not show up in custom indicators. What should I do to fix this?
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
  #433 (permalink)  
Old 11-14-2006, 01:23 AM
increase's Avatar
Senior Member
 
Join Date: May 2006
Posts: 844
increase is on a distinguished road
How do I set a label or line colour to none or transparent?
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
  #434 (permalink)  
Old 11-15-2006, 11:31 AM
cja's Avatar
cja cja is offline
Senior Member
 
Join Date: Apr 2006
Posts: 676
cja is on a distinguished road
Quote:
Originally Posted by increase
How do I set a label or line colour to none or transparent?

try this SetIndexStyle(0, DRAW_NONE); this removes the lines
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
  #435 (permalink)  
Old 11-21-2006, 02:32 PM
Junior Member
 
Join Date: Sep 2006
Posts: 22
derekc is on a distinguished road
Place order during certain hours

I am having trouble getting my EA to place a trades when the trading hour conditions which I have set are met.

If the EA is activated during the 14th hour ie before the conditions are met it does not place the order when the time rolls over to the 15 hour.
If the EA is activated when the conditions have already been met then it opens orders fine.

It works fine if I test it with TimeMinute() instead of TimeHour() I have also tried using Hour() but no success.

Strangely enough if I use the same conditions to delete pending orders if the condition is NOT true it deletes orders when it rolls over to the next hour.

I have tried so many things now I am desperate and any help will be much appreciated.

The EA is attached to a M1 graph

PHP Code:
//+------------------------------------------------------------------+
//|    CHECK FOR BUY CONDITIONS                                                   |
//+------------------------------------------------------------------+

if( (TimeHour(CurTime())>=15 && TimeHour(CurTime())<=16))
  {     
 if(
BuyStopOrder==&& longconditions == true)
 {
    if ( 
OrderSend Symbol(), OP_BUYSTOPLotslongprice+spread
         
3longprice-(StopLoss*Point), longprice+(TakeProfit*Point), ""
         
_MagicNumber,expiration,Green ) < )
    {
        
Alert"OrderSend Error #"GetLastError() );
        return(-
1);
    }
 }   
//+------------------------------------------------------------------+
//|    CHECK FOR SHORT CONDITIONS                                              |
//+------------------------------------------------------------------+  
 
if(SellStopOrder==&& shortconditions == true)
 { 
 
    if ( 
OrderSend Symbol(), OP_SELLSTOPLotsshortprice,
         
3shortprice+spread+(StopLoss*Point),shortprice+spread-(TakeProfit*Point), "",
          
_MagicNumber,expiration,Green ) < )
    {
        
Alert"OrderSend Error #"GetLastError() );
        return(-
1);
    }
 }
    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
  #436 (permalink)  
Old 11-21-2006, 06:10 PM
Member
 
Join Date: Jan 2006
Posts: 64
kidhudi is on a distinguished road
this is probably easy for you, but can you please take this indicator and make an envelope out of it? so that the user could set it up to be a certain percentage from the center. i hope you can help me. thanks in advance
Attached Files
File Type: mq4 ang_Fourier(2).mq4 (2.2 KB, 37 views)
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
  #437 (permalink)  
Old 11-22-2006, 07:58 PM
Junior Member
 
Join Date: Jan 2006
Posts: 5
lacika is on a distinguished road
Can somebody create a MA which is not count in the asian session bars?

Can somebody create a MA which is not count in the asian session bars?
THX, NL
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
  #438 (permalink)  
Old 11-27-2006, 01:23 AM
Baiwan's Avatar
Junior Member
 
Join Date: Nov 2006
Location: Singapore
Posts: 9
Baiwan is on a distinguished road
Hi all, I am writing an EA using either OP_BUYSTOP or OP_SELLSTOP to place an entry... However, could anyone tell me how could I check if the entry has hit? Or, the position has opened?
Thanks!
__________________
** Whatever the mind can conceive and believe, it can achieve.
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
  #439 (permalink)  
Old 12-08-2006, 04:15 AM
increase's Avatar
Senior Member
 
Join Date: May 2006
Posts: 844
increase is on a distinguished road
Quote:
Originally Posted by asaaadmy
Dear Codersguru

I would like to thank you for your help to everyone in this forum.

Can you please help me. I am trying to add alert i mean I would like to use the Alert or Playsound function so that it is activated when a dot is drawn on the chart. I have tried to do it but failed. Many thanks in advance.

I include the code below and hope that other members can help as well:

************************************************** ********

//+------------------------------------------------------------------+
//| Z1.mq4 |
//| Copyright © 2005, MetaQuotes Software Corp. |
//| http://www.metaquotes.net/ |
//+------------------------------------------------------------------+
#property copyright "Copyright © 2005, MetaQuotes Software Corp."
#property link "http://www.metaquotes.net/"

#property indicator_chart_window
#property indicator_buffers 1
#property indicator_color1 White
//---- indicator parameters
extern int ExtDepth=12;
extern int ExtDeviation=5;
extern int ExtBackstep=3;
extern int barn=1500;
//---- indicator buffers
double ExtMapBuffer[];
double ExtMapBuffer2[];

//+------------------------------------------------------------------+
//| Custom indicator initialization function |
//+------------------------------------------------------------------+
int init()
{
IndicatorBuffers(2);
//---- drawing settings
SetIndexStyle(0,DRAW_ARROW);
SetIndexArrow(0,108);
//---- indicator buffers mapping
SetIndexBuffer(0,ExtMapBuffer);
SetIndexBuffer(1,ExtMapBuffer2);
SetIndexEmptyValue(0,0.0);
ArraySetAsSeries(ExtMapBuffer,true);
ArraySetAsSeries(ExtMapBuffer2,true);
//---- indicator short name
IndicatorShortName("ZigZag("+ExtDepth+","+ExtDevia tion+","+ExtBackstep+")");
//---- initialization done
return(0);
}
//+------------------------------------------------------------------+
//| |
//+------------------------------------------------------------------+
int start()
{
int shift=barn, back,lasthighpos,lastlowpos, rang=0;
double val,res;
double curlow,curhigh,lasthigh,lastlow;

for(shift=barn-ExtDepth; shift>=0; shift--)
{
val=Low[Lowest(NULL,0,MODE_LOW,ExtDepth,shift)];
if(val==lastlow) val=0.0;
else
{
lastlow=val;
if((Low[shift]-val)>(ExtDeviation*Point)) val=0.0;
else
{
for(back=1; back<=ExtBackstep; back++)
{
res=ExtMapBuffer[shift+back];
if((res!=0)&&(res>val)) ExtMapBuffer[shift+back]=0.0;
}
}
}
ExtMapBuffer[shift]=val;
//--- high
val=High[Highest(NULL,0,MODE_HIGH,ExtDepth,shift)];
if(val==lasthigh) val=0.0;
else
{
lasthigh=val;
if((val-High[shift])>(ExtDeviation*Point)) val=0.0;
else
{
for(back=1; back<=ExtBackstep; back++)
{
res=ExtMapBuffer2[shift+back];
if((res!=0)&&(res<val)) ExtMapBuffer2[shift+back]=0.0;
}
}
}
ExtMapBuffer2[shift]=val;
}

// final cutting
lasthigh=-1; lasthighpos=-1;
lastlow=-1; lastlowpos=-1;

for(shift=barn-ExtDepth; shift>=0; shift--)
{
curlow=ExtMapBuffer[shift];
curhigh=ExtMapBuffer2[shift];
if((curlow==0)&&(curhigh==0)) continue;
//---
if(curhigh!=0)
{
if(lasthigh>0)
{
if(lasthigh<curhigh) ExtMapBuffer2[lasthighpos]=0;
else ExtMapBuffer2[shift]=0;
}
//---
if(lasthigh<curhigh || lasthigh<0)
{
lasthigh=curhigh;
lasthighpos=shift;

}
lastlow=-1;
}
//----
if(curlow!=0)
{
if(lastlow>0)
{
if(lastlow>curlow) ExtMapBuffer[lastlowpos]=0;
else ExtMapBuffer[shift]=0;
}
//---
if((curlow<lastlow)||(lastlow<0))
{
lastlow=curlow;
lastlowpos=shift;

}
lasthigh=-1;
}
}
for(shift=barn-1; shift>=0; shift--)
{
if(shift>=barn-ExtDepth) ExtMapBuffer[shift]=0.0;
else
{
res=ExtMapBuffer2[shift];
if(res!=0.0) ExtMapBuffer[shift]=res;
}
}
}

************************************************** ************
Hi,

Did anyone ever do this indicator with an alarm for you?
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
  #440 (permalink)  
Old 12-13-2006, 03:06 PM
Junior Member
 
Join Date: Nov 2006
Posts: 22
majlisb is on a distinguished road
Bar Close

HI, professional

in example In an Ea we get a signal and we want to place a BUYSTOP/SellStop Order in hight of the signal bar,

We should wait to new bar open to find the Hight of signal bar , How we can do this ? (any article , post, EA , , , )



Thanks
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 03:57 AM.



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