[ARCHIVE!] Any rookie question, so as not to clutter up the forum. Professionals, don't pass by. Can't go anywhere without you - 4. - page 473

 
TarasBY:
I've seen this code somewhere before, only the signal colouring is slightly different...

Well, I've seen it more than once.
 
What is he drawing the arrows with?
int init() {
   SetIndexBuffer(0, g_ibuf_104);
   SetIndexBuffer(1, g_ibuf_108);
   SetIndexBuffer(2, g_ibuf_112);
   SetIndexBuffer(3, g_ibuf_116);
   SetIndexBuffer(4, g_ibuf_120);
   SetIndexBuffer(5, g_ibuf_124);
   SetIndexStyle(0, DRAW_ARROW, 6, 0);
   SetIndexStyle(1, DRAW_ARROW, 6, 0);
   SetIndexStyle(2, DRAW_ARROW, STYLE_SOLID, 1);
   SetIndexStyle(3, DRAW_ARROW, STYLE_SOLID, 1);
   SetIndexStyle(4, DRAW_ZIGZAG, STYLE_DASH, 1);
   SetIndexStyle(5, DRAW_ZIGZAG, STYLE_DASH, 1);
   SetIndexArrow(0, 159);
   SetIndexArrow(1, 159);
   SetIndexArrow(2, 233);
   SetIndexArrow(3, 234);
   IndicatorDigits(MarketInfo(Symbol(), MODE_DIGITS));
   string ls_0 = "BUYSELL MAGIC(" + AlertON + "," + ArrowPeriod + ")";
   IndicatorShortName(ls_0);
   SetIndexLabel(0, "UpTrend Stop");
   SetIndexLabel(1, "DownTrend Stop");
   SetIndexLabel(2, "UpTrend Signal");
   SetIndexLabel(3, "DownTrend Signal");
   SetIndexLabel(4, "UpTrend Line");
   SetIndexLabel(5, "DownTrend Line");
   SetIndexDrawBegin(0, SignalPeriod);
   SetIndexDrawBegin(1, SignalPeriod);
   SetIndexDrawBegin(2, SignalPeriod);
   SetIndexDrawBegin(3, SignalPeriod);
   SetIndexDrawBegin(4, SignalPeriod);
   SetIndexDrawBegin(5, SignalPeriod);
   return (0);
}
 
The thing is, I see in the help.
SYMBOL_ARROWUP 241 Symbol - up arrow)
SYMBOL_ARROWDOWN 242 Symbol - down arrow)
I don't see such figures in the code at all!
 
Dimka-novitsek:
The thing is, I see in the help.
SYMBOL_ARROWUP 241 Symbol - up arrow)
SYMBOL_ARROWDOWN 242 Symbol - down arrow)
I don't see such figures in the code at all!
Still to come... You can start by looking here and searching for the numbers mentioned.
 
Wow! What a set.
 
Thank you!!! I see.
 

Hello all.

Had to duplicate the question as no one has answered.

Please help me to understand it.

I have a question from MQL4 tutorial.

I have not received any message when I pass MA from above or below?

Please write what is wrong.

extern int Period_MA = 21;
bool Fact_Up = true;
bool Fact_Dn = true;
//-----------------------------------------------------------------
int start()
   {
   double MA;
//-----------------------------------------------------------------
   MA= iMA(NULL,0,Period_MA,0,MODE_SMA,PRICE_CLOSE,0);
//-----------------------------------------------------------------
   if(Bid > MA && Fact_Up == true)
      {
      Fact_Dn = true;
      Fact_Up = false;
      Alert("Цена находится выше МА(",Period_MA,").");
      }
//------------------------------------------------------------------
   if(Bid < MA && Fact_Dn == true)
      {
      Fact_Up = true;
      Fact_Dn = false;
      Alert("Цена находится ниже МА(",Period_MA,").");
      }
//------------------------------------------------------------------
return;
}

 
Can you please tell me why well-functioning EAs suddenly started to place orders without SL and TP, even though they are prescribed in the EA settings? How to cure them of this disease? Should I restart them? I closed these orders and reopened them, and the EA has properly fulfilled them. Perhaps, this may be due to server failure tonight at 00.00? Because all failures are between 00:00 and 00:05.
 
yosuf:
Can you please explain why all of a sudden all well-functioning EAs have started to place orders without SL and TP, despite the fact that they are registered in the EA settings? How to cure them of this disease? Should I restart them?

I also encountered this problem.

I'm not even able to set TP and SL manually in Alpari, but in Teletrade it's fine.

 
yosuf:
Can you please tell me why well-functioning EAs suddenly started to place orders without SL and TP, even though they are prescribed in the EA settings? How to cure them of this disease? Should I restart them?

Did you change your brokerage company? There are brokerage companies in which you first need to set an order and only then can you place a stop order
Reason: