[WARNING CLOSED!] Any newbie question, so as not to clutter up the forum. Professionals, don't go by. Can't go anywhere without you. - page 510

 
No and why. Your case max=array[ArrayMaximum(array,10,0)];
 
zhuki >>:
Нет да и зачем. Ваш случай max=array[ArrayMaximum(array,10,0)];

Thank you so much for your help))

 
I created an indicator with arrows (Vinin helped a lot), looked at it and evaluated it. Tried both CCI and RSI and WPR, everything seems fine, I change the parameters - it turns out beautiful. I decided to try OsMA.......
I have tried it both ways. All checked, and commas and brackets and points NOTHING. Compiled normally without errors and the graph has nothing at all nothing.... Can someone please tell me!!!!!!!!!!!!!!!!!!!!

//+------------------------------------------------------------------+
//|                                               Indicator_OsMA.mq4 |
//|                                                                  |
//|                               Спасибо за помощь Vinin            |
//+------------------------------------------------------------------+
#property copyright ""
#property link      ""

#property indicator_chart_window
#property indicator_buffers 2
#property indicator_color1 Red
#property indicator_color2 Blue
//---- input parameters
extern int       Fast_EMA=12;
extern int       Slow_EMA=26;
extern int       Signal_EMA=9;
extern double    N = 0.00005;
//---- buffers
double ExtMapBuffer1[];
double ExtMapBuffer2[];
double OsMA[];

//+------------------------------------------------------------------+
//| Custom indicator initialization function                         |
//+------------------------------------------------------------------+
int init()
  {
//---- indicators
   IndicatorBuffers(3);
   SetIndexStyle(0,DRAW_ARROW, EMPTY, 1);
   SetIndexArrow(0,234);
   SetIndexBuffer(0,ExtMapBuffer1);
   SetIndexEmptyValue(0,0.0);
   SetIndexStyle(1,DRAW_ARROW, EMPTY, 1);
   SetIndexArrow(1,233);
   SetIndexBuffer(1,ExtMapBuffer2);
   SetIndexEmptyValue(1,0.0);
   SetIndexBuffer(2,OsMA);
   
//----
   return(0);
  }
//+------------------------------------------------------------------+
//| Custom indicator deinitialization function                       |
//+------------------------------------------------------------------+
int deinit()
  {
//----
   
//----
   return(0);
  }
//+------------------------------------------------------------------+
//| Custom indicator iteration function                              |
//+------------------------------------------------------------------+
int start()
  {
   int    counted_bars=IndicatorCounted();
   int limit = Bars-counted_bars-1;
   
   for(int i = limit; i>= 0; i--) {
      ExtMapBuffer2[i] = EMPTY;
      ExtMapBuffer1[i] = EMPTY;
      OsMA[i]=iOsMA(NULL,0,Fast_EMA,Slow_EMA,Signal_EMA,PRICE_OPEN,0);
      if (((OsMA[i]-N)*(OsMA[i+1]-N)<0) || ((OsMA[i]+N)*(OsMA[i+1]+N)<0))
      {
       if( OsMA[i] <-N) ExtMapBuffer2[i] = Low[i] -iATR(Symbol(), 0, 2, i);
       if( OsMA[i] > N) ExtMapBuffer1[i] = High[i]+iATR(Symbol(), 0, 2, i); 
      }
   }
   return(0);
}
//+------------------------------------------------------------------+ 
 

Hello, could you tell me if there is a debugger in MQL4 editor, and how to use it?

 
No
 
igrok2008 писал(а) >>
I created an indicator with arrows (Vinin helped me a lot), I was looking at it and evaluating it. Tried both CCI and RSI and WPR, everything seems fine, I change parameters and it works fine. I decided to try OsMA.......
I have tried it both ways. All checked, and commas and brackets and points NOTHING. Compiled normally without errors and the graph has nothing at all nothing.... Can someone please tell me!!!!!!!!!!!!!!!!!!!!




What is the signal?
 
zhuki писал(а) >>
No


and if not, why is there a breakpoint in the editor when you press F9
 
Vinin >>:


А что сигналом является?

Yes all and the euro and the pound and the kiwi and the kanadian and the aussie ALL different tf also different 5 15 30 did not look further

 
DC Alpari
 
igrok2008 писал(а) >>

Yes all and the euro and the pound and the kiwi and the kanadian and the aussie ALL different tf also different 5 15 30 did not look further

That's not what I mean. What forms the signal? What changes in the OsMA indicator?
For example a top or bottom formation, a move from a negative to a positive zone, a break of a given level?
Reason: