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

 

Search codebase, you'll find not only your own version there, but even cooler...

But there is no point in such a TS, you're not the first... I don't know what to do with it, it's better to study the price chart instead of its derivatives...

 
Then tell me if there is a difference between mini and regular forex, or demo and real account, when working with EAs?
 
mosart2 писал(а) >>
I am not sure what the difference is between a mini and a normal forex, or between a demo and a real account, when working with Expert Advisors?

The only difference between the mini and regular is the minimum lot size.

On the real should provide for the handling of requotes and other errors.

 
Roger писал(а) >>

The only difference between the mini and regular is the minimum lot size.

On the real should provide for the handling of requotes and other errors.

what is requotes?

 
mosart2 писал(а) >>

what is a requote?

ERR_REQUOTE 138 New prices

 

Please decipher the input parameters of an EA for a dummy, to substitute your own data:

Lots

MaximumRisk

DecreaceFactor

PeriodRSI

StohK1

StohD1

StohSlow1

StohK2

StohD2

StohSlow2

Control_period

 
Hi, I just registered and decided to create a thread. I'm not sure where to find the exact indicator and information about it. I am grateful in advance.
 

Hi, Edička, we'll tell you what's going on. Find CodeBase link on the top, click there, then click Indicators and choose any of them, they are all accurate and contain info. No need to thank you :-)

 

Hello

Please advise the following

If I use one indicator to open about 1 to 7 deals either in buy or sell, and then by the same indicator, it should logically close all open deals either in buy or sell mode

I tried to implement it this way

int start()
  {
//----
int i;
if(iCustom(NULL,0,"Индикатор",0,0)!=0 || iCustom(NULL,0,"Индикатор",4,0)!=0)
   OrderSend(Symbol(),OP_BUY,0.1,Ask,3,0,0,"SynergyInd",230684,0,Green);
if(iCustom(NULL,0,"Индикатор",1,0)!=0 || iCustom(NULL,0,"Индикатор",5,0)!=0)
   OrderSend(Symbol(),OP_SELL,0.1,Bid,3,0,0,"SynergyInd",230684,0,Green);
if(iCustom(NULL,0,"Индикатор",2,0)!=0)
   {
      for( i=0; i<OrdersTotal(); i++)
         {
            if(OrderSelect( i, SELECT_BY_POS, MODE_TRADES))
               {
                  if(OrderType()==OP_BUY) OrderClose(OrderTicket(),OrderLots(),Bid,3,White);
               }
         }
   }    
if(iCustom(NULL,0,"Индикатор",3,0)!=0)      
   {
      for( i=0; i<OrdersTotal(); i++)   
         {
            if(OrderSelect( i, SELECT_BY_POS, MODE_TRADES))
               { 
                  if(OrderType()==OP_SELL) OrderClose(OrderTicket(),OrderLots(),Ask,3,White);
               }
         }
   }  
//----
   return(0);
  }

I tried it but now it does not open all trades and closes not all of them in short, it just does not work :(

If I take away closing trades and put TP and SL instead, the Expert Advisor opens all deals according to the signal indicator correctly

I get a closing signal from the indicator correctly

I cannot get it to work

Please give me a hint

Thank you

 

I've decided to try making an EA using a 5-point system, but here's the problem

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

//---- input parameters
extern double      urov_h1_1=1;
extern double      urov_h1_2=1;
extern double      urov_h1_3=1;
//////
extern double      urov_D_4=1;
extern double      urov_D_5=1;

double urov_h1[], urov_h4[], urov_D[];
int svechi_ball, urov_ball, stoh;
int i;
//+------------------------------------------------------------------+
//| expert initialization function                                   |
//+------------------------------------------------------------------+
int init()
  {
   return(0);
  }
//+------------------------------------------------------------------+
//| expert deinitialization function                                 |
//+------------------------------------------------------------------+
int deinit()
  {
//----
   
//----
   return(0);
  }
//+------------------------------------------------------------------+
//| expert start function                                            |
//+------------------------------------------------------------------+
int start()
  {
   //*******
   urov_h1[0]= urov_h1_1;   urov_h1[1]= urov_h1_2;   urov_h1[2]= urov_h1_3;   urov_h1[3]= urov_h1_4;
   urov_h1[4]= urov_h1_5;   urov_h1[5]= urov_h1_6;   urov_h1[6]= urov_h1_7;   urov_h1[7]= urov_h1_8;
   urov_h1[8]= urov_h1_9;   urov_h1[9]= urov_h1_10;  urov_h1[10]= urov_h1_11; urov_h1[11]= urov_h1_12;
   urov_h1[12]= urov_h1_13; urov_h1[13]= urov_h1_14; urov_h1[14]= urov_h1_15;
   //*******
   urov_h4[0]= urov_h4_1;   urov_h4[1]= urov_h4_2;   urov_h4[2]= urov_h4_3;   urov_h4[3]= urov_h4_4;
   urov_h4[4]= urov_h4_5;
   //******* 
   urov_D[0]= urov_D_1;   urov_D[1]= urov_D_2;   urov_D[2]= urov_D_3;   urov_D[3]= urov_D_4;
   urov_D[4]= urov_D_5;
   //*******

  //+++++медвежье поглощение++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
  /*for(i=0; i<15; i++)
   {
   if(medvejye_poglochenie(urov_h1[i])==true)
      {
      svechi_ball=4;
      urov_ball=3;
      text(svechi_ball,urov_ball);
      }
   }*/
  bool medv_po_h1_1= medvejye_poglochenie( urov_h1_1);
 .......
  bool medv_po_h1_15= medvejye_poglochenie( urov_h1_15);
  //**
  bool medv_po_h4_1= medvejye_poglochenie( urov_h4_1);

  bool medv_po_D_5= medvejye_poglochenie( urov_D_5);
  //****стохастик
  double st_2=iStochastic(Symbol(),60,6,1,2,MODE_EMA,0,MODE_MAIN,2);    
  double st_1=iStochastic(Symbol(),60,6,1,2,MODE_EMA,0,MODE_MAIN,1);    

  if( medv_po_h1_1==true || medv_po_h1_2==true || medv_po_h1_3==true || medv_po_h1_4==true || medv_po_h1_5==true || medv_po_h1_6==true
     || medv_po_h1_7==true || medv_po_h1_8==true || medv_po_h1_9==true || medv_po_h1_10==true || medv_po_h1_11==true || medv_po_h1_12==true
     || medv_po_h1_13==true || medv_po_h1_14==true || medv_po_h1_15==true)
      {
      svechi_ball=4;
      urov_ball=3;
      if( st_2> st_1 && st_2>70 && st_1>70) stoh=2;
      else if( st_2> st_1 && st_2<70 && st_1<70) stoh=1;
      else stoh=0;
      text( svechi_ball, urov_ball, stoh);
      }
  if( medv_po_h4_1==true || medv_po_h4_2==true || medv_po_h4_3==true || medv_po_h4_4==true || medv_po_h4_5==true)
      {
      svechi_ball=4;
      urov_ball=4;
      if( st_2> st_1 && st_2>70 && st_1>70) stoh=2;
      else if( st_2> st_1 && st_2<70 && st_1<70) stoh=1;
      else stoh=0;
      text( svechi_ball, urov_ball, stoh);
      }
  if( medv_po_D_1==true || medv_po_D_2==true || medv_po_D_3==true || medv_po_D_4==true || medv_po_D_5==true)
      {
      svechi_ball=4;
      urov_ball=5;
      if( st_2> st_1 && st_2>70 && st_1>70) stoh=2;
      else if( st_2> st_1 && st_2<70 && st_1<70) stoh=1;
      else stoh=0;
      text( svechi_ball, urov_ball, stoh);
      }

 return(0);
  }

it works like this