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

 
THANK YOU !!!!!!!!!!!!!!!!!!
 
Interesting >> :

Example code for setting a pending order:


THANK A LOT)) I haven't seen anywhere about what you can write inside OrderSend OP_BUYLIMIT unfortunately, or maybe I just missed it due to inattention....(


>> thanks a lot again.)

 

help this problem: I want a certain combination of candles to have an alert

if (Open[1]<Close[1] && Open[2]==Close[2] && Open[3]>Close[3])
Alert("глянь на график");


if (Open[1]>Close[1] && Open[2]==Close[2] && Open[3]<Close[3])
Alert("глянь на график");
I ran it through the history, but the chart has combinations when it should have been.
 
dmmikl86 >> :

help here's the problem: I want to

>> the whole code to the studio, sylvuplet.

 
The alerts in the tester do not work. Replace the alert with a print and check the log.
 
Roger >> :
The alerts in the tester don't work. Replace the alert with a print and check the log.

credit

 

whole code

//---- input parameters
extern double    Lots=0.1;

datetime new_time;
int magic=37;
bool signal1_bulls, signal1_bears, signal2_dodj, signal3_bulls, signal3_bears;
int order_type, order_magic;
string order_symbol;
//+------------------------------------------------------------------+
//| expert initialization function                                   |
//+------------------------------------------------------------------+
int init()
  {
//----
   
//----
   return(0);
  }
//+------------------------------------------------------------------+
//| expert start function                                            |
//+------------------------------------------------------------------+
int start()
  {
//----
// этап 1 - определения даных
//====================================================================
if (Open[1]<Close[1]) signal1_bulls=true; // определение присутсвия свечи[1] - бычья

if (Open[1]>Close[1]) signal1_bears=true; // определение присутсвия свечи[1] - медвежья

if (Open[2]==Close[2]) signal2_dodj=true; // определение присуствия свечи[2] - типа додж

if (Open[3]<Close[3]) signal3_bulls=true; // определение присутсвия свечи[3] - бычья

if (Open[3]>Close[3]) signal3_bears=true; // определение присутсвия свечи[3] - медвежья

//----


//====================================================================  
// этап 2 
//====================================================================
if (Time[0]== new_time)
{
//----

if (Open[1]<Close[1] && Open[2]==Close[2] && Open[3]>Close[3])
Alert("посмотри на график");


if (Open[1]>Close[1] && Open[2]==Close[2] && Open[3]<Close[3])
Alert("псмотри на график");


//----
new_time=Time[0];
}

//----
   return(0);
  }
//+------------------------------------------------------------------+
 
dmmikl86 писал(а) >>

code in its entirety

Due to the fifth sign, there is uncertainty in comparing price levels. Candlestick analysis has long existed at four digits. To shift the comparison of five-digit prices to what it used to be, I introduced the Level variable into your Expert Advisor's code.

Ten points at five signs (one point at four signs) will correspond to Level = 0.000095

(There is another way - round prices to four digits, and then compare. That's up to someone).

The code has been corrected a bit. My tester shows Alert

See in the appendix.

Files:
111.mq4  2 kb
 
Hello, Could you please tell me how to make the SL of a market order become 0 if the low of the last bar is above the order price in case of a buy order, and the high of the last bar is below the order price in case of a sell order.
 

Hello, I'm asking for help from the knowledgeable, my indicator does not want to draw by the flow, I have to constantly switch frames to update it to the last bar, how can I fix this shortcoming? I'm very thankful for it!

Files:
norms2.mq4  4 kb