| New signals service! | |
|
|||||||
| 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 |
|
![]() |
|
|
LinkBack (2) | Thread Tools | Display Modes |
|
||||
|
Hi, I've attached an indicator in mq4 that alerts whenever cci<-150
It alerts in a tick by tick basis; can anyone modify it so it only alerts at close of the candle? In this case I would only like to be alerted when cci is < -150 at the end of a 5m candle Thanks in advance
__________________
http://img.photobucket.com/albums/v4...sa/userbar.jpg |
|
||||
|
ok, 2nd question, i think this one is easy:
I'm building a user indicator to alert me when price close crosses a MA I'm using the iCustom to import the MA indicator and then I don't know how to use the price close; i tried CLOSE and PRICE_CLOSE but with no results: if (CLOSE?>ma1) adxvalue= -1; if (PRICE_CLOSE?>ma1) adxvalue= -1; Also, I want the alert to sound only at the end of a 5m bar and not work on a tick by tick basis: what else should I change (this question is the one in my previous post) Thanks
__________________
http://img.photobucket.com/albums/v4...sa/userbar.jpg |
|
|||
|
Hi Codersguru,
Could you help me code an alert into Osma Color so that it alerts when the colors change. Thanks Duncan //+------------------------------------------------------------------+ //| OsMA_color.mq4 | //| Rafael | //| marynarz15@wp.pl | //+------------------------------------------------------------------+ #property copyright "Rafael" #property link "marynarz15@wp.pl" //---- indicator settings #property indicator_separate_window #property indicator_buffers 2 #property indicator_color1 Lime #property indicator_color2 Red //---- indicator parameters extern int FastEMA=12; extern int SlowEMA=26; extern int SignalSMA=9; //---- indicator buffers double ind_buffer1a[]; double ind_buffer1b[]; double ind_buffer2[]; double ind_buffer3[]; //+------------------------------------------------------------------+ //| Custom indicator initialization function | //+------------------------------------------------------------------+ int init() { //---- 2 additional buffers are used for counting. IndicatorBuffers(4); //---- drawing settings SetIndexStyle(0,DRAW_HISTOGRAM,STYLE_SOLID,2); SetIndexStyle(1,DRAW_HISTOGRAM,STYLE_SOLID,2); SetIndexDrawBegin(0,SignalSMA); SetIndexDrawBegin(1,SignalSMA); IndicatorDigits(MarketInfo(Symbol(),MODE_DIGITS)+2 ); //---- 3 indicator buffers mapping if(!SetIndexBuffer(0,ind_buffer1a) && !SetIndexBuffer(1,ind_buffer1b) && !SetIndexBuffer(2,ind_buffer2) && !SetIndexBuffer(3,ind_buffer3)) Print("cannot set indicator buffers!"); //---- name for DataWindow and indicator subwindow label IndicatorShortName("OsMA("+FastEMA+","+SlowEMA+"," +SignalSMA+")"); //---- initialization done return(0); } //+------------------------------------------------------------------+ //| Moving Average of Oscillator | //+------------------------------------------------------------------+ int start() { int limit; int counted_bars=IndicatorCounted(); //---- check for possible errors if(counted_bars<0) return(-1); //---- last counted bar will be recounted if(counted_bars>0) counted_bars--; limit=Bars-counted_bars; //---- macd counted in the 1-st additional buffer for(int i=0; i<limit; i++) ind_buffer2[i]=iMA(NULL,0,FastEMA,0,MODE_EMA,PRICE_CLOSE,i) -iMA(NULL,0,SlowEMA,0,MODE_EMA,PRICE_CLOSE,i); //---- signal line counted in the 2-nd additional buffer for(i=0; i<limit; i++) ind_buffer3[i]=iMAOnArray(ind_buffer2,Bars,SignalSMA,0,MODE_SMA, i); //---- main loop double value=0; for(i=0; i<limit; i++) { ind_buffer1a[i]=0.0; ind_buffer1b[i]=0.0; value=ind_buffer2[i]-ind_buffer3[i]; if (value>0) ind_buffer1a[i]=value; if (value<0) ind_buffer1b[i]=value; } //---- done return(0); } //+------------------------------------------------------------------+ |
|
||||
|
hi
hello guys,
you all may know the name of this author but never knew that his method coded into software. Pesavento wroted among the others this wonderful books: * Fibonacci Ratios with Pattern Recognition * Profitable Patterns for Stock Trading * Astro-Cycles : Traders Viewpoint by the way i know that ENSIGN software also have his original Pesavento Patterns study tool wich can be seen in the next link. if someone can import it from ENSIGN to MetaTrader 4 it will be amazing. http://www.ensignsoftware.com/help/pesavento.htm |
|
|||
|
Anybody Knows anything about these 2 things MA and where to get and use them for Meta Trader 4
1. SMCMA 2. WCMA The only thing I able to know that these are some Type of MA (Moving Averages) but where to get them and how to use them ?? bye Zero_Forex |
|
||||
|
Using other currency pairs in an EA?
Does anyone know how to make an Expert Advisor check other currency pair charts to help decide if you want to do a buy or sell? For example, how could I make an EA look at the usd-chf as part of criteria to decide whether to buy or sell on the gbp-chf? I have an EA that I like so far, but I think it could be better if I could also have it written into the program to check other related pairs. Codersguru, or anyone else that can help, please let me know.
Thanks! |
![]() |
| Bookmarks |
| Tags |
| histogram |
| Thread Tools | |
| Display Modes | |
|
|
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 | |