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

 
spm130275:

You're a fucking smartass, shut the fuck up.


silly, did you read the rules before you came in here?

 
DDFedor:


Silly boy, did you read the rules before you came in here?


Just a link is broken (probably cropped - a lot of letters multiplied by the percent :)). If you copy the text below the link, what you wanted ... is shown.

And the fact that young people and teenagers are nervous and irascible... :(

 

What's the answer: send to ........ google what's the response

 
spm130275:

What's the answer: send to ........ google what's the response

It's much easier to ignore it than to flub... Nerve cells should be saved - they are useful for a sober mind ...
Although, IMHO, this post of mine is also flooding...but without nerves...
 

Can you tell me which robots work for 15 days and which do not differ in profit from Cheetah 2.5?

Please give me a link or website etc.

Thanks in advance for your time

 

Hi all !!! advise how to implement sending a message to email only when opening a position in any

(written) advisor??????????

....... ask you, don't say no

 
KlugerX35:

Hi all !!! advise how to implement sending a message to email only when opening a position in any

(written) advisor??????????

....... asker don't say no to you


and this won't work?

set prices and get it, or read the Help on SendMai() function

 
KlugerX35:

Hi all !!! advise how to implement sending a message to email only when opening a position in any

(written) advisor??????????

....... ask you, don't say no

Also, Igor Kim has a library of functions to embed in an EA...
Files:
 

Good evening.

Can you please tell me what the error is, the indicator does not give a message about crossing two MAs.

#property indicator_chart_window
#property  indicator_level1 0.3
#property  indicator_level2 0.7
#property  indicator_levelcolor LightSlateGray
//---- 
extern int        Period_MA_fast         = 5,
                  Period_MA_med          = 8,
                  Period_MA_slow         = 16,
                  period_DeMarker       = 14;
//---- 
double            DeMarker_buffer0[],
                  Signal_Buffer2[],
                  Speed_MA_fast[],
                  Speed_MA_med[],
                  Speed_MA_slow[];      
#define SIGNAL_BAR 1
//+------------------------------------------------------------------+
//| Custom indicator initialization function                         |
//+------------------------------------------------------------------+
int init()
  {
//---- indicators
IndicatorBuffers(2);
SetIndexBuffer(0,DeMarker_buffer0);
SetIndexBuffer(1,Speed_MA_fast);
SetIndexBuffer(2,Speed_MA_med);
SetIndexBuffer(3,Speed_MA_slow);
SetIndexStyle(0,DRAW_NONE);
SetIndexStyle(1,DRAW_NONE);
SetIndexStyle(2,DRAW_NONE);
SetIndexStyle(3,DRAW_NONE);
//----
   return(0);
  }
//+------------------------------------------------------------------+
//| Custom indicator deinitialization function                       |
//+------------------------------------------------------------------+
int deinit()
  {
//----
   
//----
   return(0);
  }
//+------------------------------------------------------------------+
//| Custom indicator iteration function                              |
//+------------------------------------------------------------------+
int start()
  {
   int    counted_bars=IndicatorCounted();
   int    i,limit;
//----
if(counted_bars>0) counted_bars--;
   limit=Bars-counted_bars;
//----
  for(i=limit; i>=0; i--)
  DeMarker_buffer0[i]=iDeMarker(NULL,0,14,i);
//---- 
  for(i=limit; i>=0; i--)
  
  Speed_MA_fast[i]=iMAOnArray(DeMarker_buffer0,0,5,0,MODE_LWMA,i);
//----   
  static int PrevTime = 0;
//---- 
  if(PrevTime >= Time[0] ) return(0);
//---- 
  PrevTime = Time[0];
//----
                if(Speed_MA_fast[SIGNAL_BAR] - 0.3 > 0 && 0.3 - Speed_MA_fast[SIGNAL_BAR+1] >= 0)  
//---- 
                                Alert( "sMA(", Symbol(), ", ", Period(), ")  -  BUY!!!" );
//----
if(PrevTime <= Time[0] ) 

return(0);
//---- 
  PrevTime = Time[0];
//----          
                if(0.7 - Speed_MA_fast[SIGNAL_BAR] > 0 && Speed_MA_fast[SIGNAL_BAR+1] - 0.7 >= 0)
//----               
                                Alert("sMA(", Symbol(), ", ", Period(), ")  -  SELL!!!");
                                
                                
Speed_MA_med[i]=iMA(NULL,0,Period_MA_med,0,MODE_LWMA,PRICE_CLOSE,i);
                        
Speed_MA_slow[i]=iMA(NULL,0,Period_MA_slow,0,MODE_LWMA,PRICE_CLOSE,i);                                          
                        
if(PrevTime >= Time[0] ) return(0);
//---- 
PrevTime = Time[0];
//----   
if(Speed_MA_med[SIGNAL_BAR] - Speed_MA_slow[SIGNAL_BAR] > 0 && 
 Speed_MA_med[SIGNAL_BAR+1] - Speed_MA_slow[SIGNAL_BAR+1] >= 0)  
//---- 
                                Alert( "speedMA(", Symbol(), ", ", Period(), ")  -  BUY!!!" );   

if(PrevTime <= Time[0] ) 

return(0);
//---- 
  PrevTime = Time[0];
//----             
if(Speed_MA_slow[SIGNAL_BAR] - Speed_MA_med[SIGNAL_BAR] > 0 && 
 Speed_MA_slow[SIGNAL_BAR+1] - Speed_MA_med[SIGNAL_BAR+1] >= 0)  
//---- 
Alert( "speedMA(", Symbol(), ", ", Period(), ")  -  SELL!!!" );     
  
  
   return(0);
 }
//+------------------------------------------------------------------+
 
zelek:


Please take a look at the code, I can't understand why orders are not closing

extern int     lim=20;             // Дистанция возврата курса

/
int init()
  {
 

   return(0);
  }
/
int deinit()
  {
//----
   
//----
   return(0);
  }

int start()
  {
 
  double 
   max, min;                                            
  int b, s;
   if (Bid>max) max=Bid; 
    if (Ask<min) min=Ask;  
       if (OrdersTotal()>0)
       {                                   
           if ((max-Bid)>=lim*Point) 
           {                   
          OrderSelect(b,SELECT_BY_TICKET);                                  
          b=OrderClose(OrderTicket(),0.1,Bid,3,Blue);
          }
          
          
          if ((Ask-min)>=lim*Point)  
          {         
      OrderSelect(s,SELECT_BY_TICKET); 
      s=OrderClose(OrderTicket(),0.1,Ask,3,Red);
         }
}
else
{
  if (OrdersTotal()<1)
  {
 b=OrderSend(Symbol(),OP_BUY,0.1,Ask,5,0,0,"",5,0);
      
 s=OrderSend(Symbol(),OP_SELL,0.1,Bid,5,0,0,"",5,0); 
    }                           
   }
         return;

   return(0);
  }

1 variables

int b, s;

Alas, your version doesn't store ticket orders since they are reset to zero with every tick.

The OrderClose() function returns a bool-type value, and consequently, the variables that are supposed to store the ticket (b,s), in case of accidental correct hitting of the ticket number, will be immediately reset to 1 (which in boolean execution means true),

but most likely (b,s) will be 0 most of the time

Reason: