[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 237

 
dmmikl86 >> :

I tried to write my first indicator: but it only draws one line instead of two.

int init()
  {
//---- indicators
   SetIndexStyle(0,DRAW_LINE);
   SetIndexBuffer(0, Buf_1);
   SetIndexStyle(1,DRAW_LINE);
   SetIndexBuffer(1, Buf_2);
//----
   return(0);
  }
 

If you have any specific specialists with experience in Elliott Waves, please tell me where I can ask my question.

The server generates me a hyperlink "Elliott Waves," where I have already been more than once.

Are there any specific specialists on the forum who have experience in wave analysis?

Or is it a forbidden topic?

 
#property indicator_separate_window
#property indicator_buffers 3
#property indicator_color1 Lime
#property indicator_color2 Aqua
#property indicator_color3 Aqua
//---- buffers
double Buf_1[], Buf_2[], Buf_3[];


//+------------------------------------------------------------------+
//| Custom indicator initialization function                         |
//+------------------------------------------------------------------+
int init()
  {
//---- indicators
   SetIndexStyle(0,DRAW_LINE);
   SetIndexBuffer(0, Buf_1);
   SetIndexStyle(1,DRAW_LINE);
   SetIndexBuffer(1, Buf_2);
   SetIndexStyle(2,DRAW_LINE);
   SetIndexBuffer(2, Buf_3);
//----
   return(0);
  }
//+------------------------------------------------------------------+
//| Custom indicator deinitialization function                       |
//+------------------------------------------------------------------+
int deinit()
  {
//----
   
//----
   return(0);
  }
//+------------------------------------------------------------------+
//| Custom indicator iteration function                              |
//+------------------------------------------------------------------+
int start()
  {
   int    i, 
          Counted_bars=IndicatorCounted();


//----
i=Bars- Counted_bars-1;           // Индекс первого непосчитанного
   while( i>=0) 
      {  
       double close = iClose("GBPUSD",PERIOD_H1, i);
       double close1= iClose("USDJPY",PERIOD_H1, i);
       Buf_1[ i]= Close[ i]*Point; 
       Buf_2[ i]= close;
       Buf_3[ i]= close1;
       i--;
      }
 
//----
   return(0);
  }
//+------------------------------------------------------------------+
I added a third buffer, but it doesn't show up on the graph. Please help! This is the second time I've had an error, but I can't figure out what it is.
 
dmmikl86 писал(а) >>

I tried to write my first indicator: but it only draws one line instead of two.

int init()
  {
//---- indicators
   SetIndexStyle(0,DRAW_LINE);
   SetIndexBuffer(0, Buf_1);
   SetIndexStyle(1,DRAW_LINE);
   SetIndexBuffer(1, Buf_2);
//----
   return(0);
  }
//+------------------------------------------------------------------+
 
dmmikl86 писал(а) >>
I added a third buffer and it's not showing on the graph. Help please! This is the second time the error has occurred and I can't understand what I'm doing wrong.

It is displayed, just off the screen. Do it in a separate window.

 
if-t >> :

By the way, I've tried to put in a rerun, but the variables seem to get the values right.


Here's a professionally executed EA (I.KIMA) using a similar algorithm to the one you described.

It's like a sample.

It will work fine in the Strategy Tester.

But for online, here is the condition.

void start() {
  if (Volume[0]<2) OpenPosition();
             }

It's better to replace with another one. Because this condition (Volume[0]<2) does not work correctly online and signals will often be skipped.

Files:
 
Oper >> :

Please advise me, where I can ask questions on Elliott Waves.

The server returns a hyperlink to me, "Elliott Waves", where I have been more than once.

Are there any specific specialists on this forum with experience of wave analysis?

>> Or is it a forbidden topic?

Dear! Will someone at least answer me?

I've got traffic, money is running out. I don't want to go to specialised forums.

Aren't there any experts here?

 
I guess there aren't any....
 
Oper >> :

Dear Colleagues! Will someone answer me?

I have traffic and money to spend. I don't want to go to specialised forums.

Are there no experts here?

This is a programming forum, not an elliotchiska forum... maybe you should go to http://elliottwave.ru/

 
splxgf писал(а) >>

This is a programming forum, not an elliotchiska forum... maybe you should go to http://elliottwave.ru/

late... timer is running... 'Wave analysis'