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

 
k0rwin:

I venture to repeat my question:


That is, the gist of the question: are magic's saved after closing the terminal/expert and is there any way to restore them?


That should help.
 

OrderMagicNumber() is an attribute\property of each order.

k0rwin:

I venture to repeat my question:
That is, the essence of the question: are magic's saved after closing the terminal/expert and is there any way to restore them?

 

What's up guys. I asked a question; What is the difference between the demo and the original version of the silent all but Boris, and that in an incomprehensible form and tough Well, come on, teach the beginner, tell us about your secrets.

Sincerely Oleg

 
lemesev66:

What's up guys. I asked a question; What is the difference between the demo and the original version of the silent all but Boris, and that in an incomprehensible form and tough Well, come on, teach the beginner, tell us about your secrets.

Sincerely Oleg

What is the difference between a demo question and a normal question? What is the difference between the demo-money from the rustling? The question is the same as the answer. Have I lifted the veil of secrecy for you?

The demo in your question is what? Original - what is original about it? Don't ask fuzzy questions to people who are used to working with clear logic...

 

Artyom has disappeared, maybe one of the pros knows if it's possible to check the parameters of the penultimate open position with the function! If it is possible, of course! Thank you!

I withdraw the question, because I found a simple solution for the index. When you learn, you always learn something for the first time, like in the first class. :)

 

How to determine which quote a broker uses a 4 or 5 digit, does anyone have an algorithm?

If 0.0001 then EA works with 4-digit quotes and TakeProfit is set for 30 pips. If 0.00001 then EA works with 5-digit quotes and TakeProfit is set for 300 pips.

 
pasha5282:

How to determine which quote a broker uses a 4 or 5 digit, does anyone have an algorithm?

If 0.0001 then EA works with 4-digit quotes and TakeProfit is set for 30 pips. If 0.00001 then EA works with 5-digit quotes and TakeProfit is set for 300 pips.



if(Digits==3|Digits==5) TakeProfit *=10;
 

Hi!

The software is a pain in the ass:


#property indicator_separate_window
#property indicator_minimum -2
#property indicator_maximum 2
//--- input parameters
extern int       iBarsToProcess = 20;
//--------------------------------------------------------------------------------------------------------------------+
double   fract_buf[];
//+------------------------------------------------------------------+
//| Custom indicator initialization function                         |
//+------------------------------------------------------------------+
int init()
  {
   SetIndexStyle(0,DRAW_LINE);
   SetIndexBuffer(0, fract_buf);
   return(0);
  }
//+------------------------------------------------------------------+
//| Custom indicator deinitialization function                       |
//+------------------------------------------------------------------+
int deinit()
  {
//----
   
//----
   return(0);
  }
//+------------------------------------------------------------------+
//| Custom indicator iteration function                              |
//+------------------------------------------------------------------+
int start()
{
   int counted_bars = IndicatorCounted();
   int limit;
   if(counted_bars > 0)
   counted_bars--;
   limit = Bars - counted_bars;
   if(limit > iBarsToProcess)
         limit = iBarsToProcess;
   
   for (int i = 0; i < limit; i++)
   {
      Print("i = ", i);
      Print ("Upper = ", iFractals(0, 0, MODE_UPPER, 0));
      Print ("Lower = ", iFractals(0, 0, MODE_LOWER, 0));
   }

   return(0);
}
//+------------------------------------------------------------------+



Prints only zeros in the log, although on the chart, lots of fractals in the first twenty bars. What's the trick? Who knows? Initially, the indicator was intended to print fractals. Then print() produced this,

12:28:17 is EURUSD,Daily: loaded successfully
12:28:18 is EURUSD,Daily: initialized
12:28:18 is EURUSD,Daily: i = 0
12:28:18 is EURUSD,Daily: Upper = 0
12:28:18 is EURUSD,Daily: Lower = 0
12:28:18 is EURUSD,Daily: i = 1
12:28:18 is EURUSD,Daily: Upper = 0
12:28:18 is EURUSD,Daily: Lower = 0
12:28:18 is EURUSD,Daily: i = 2
12:28:18 is EURUSD,Daily: Upper = 0
12:28:18 is EURUSD,Daily: Lower = 0
12:28:18 is EURUSD,Daily: i = 3
12:28:18 is EURUSD,Daily: Upper = 0
12:28:18 is EURUSD,Daily: Lower = 0
12:28:18 is EURUSD,Daily: i = 4
12:28:18 is EURUSD,Daily: Upper = 0
12:28:18 is EURUSD,Daily: Lower = 0
12:28:18 is EURUSD,Daily: i = 5
12:28:18 is EURUSD,Daily: Upper = 0
12:28:18 is EURUSD,Daily: Lower = 0
12:28:18 is EURUSD,Daily: i = 6
12:28:18 is EURUSD,Daily: Upper = 0
12:28:18 is EURUSD,Daily: Lower = 0
12:28:18 is EURUSD,Daily: i = 7
12:28:18 is EURUSD,Daily: Upper = 0
12:28:18 is EURUSD,Daily: Lower = 0
12:28:18 is EURUSD,Daily: i = 8
12:28:18 is EURUSD,Daily: Upper = 0
12:28:18 is EURUSD,Daily: Lower = 0
12:28:18 is EURUSD,Daily: i = 9
12:28:18 is EURUSD,Daily: Upper = 0
12:28:18 is EURUSD,Daily: Lower = 0
12:28:18 is EURUSD,Daily: i = 10
12:28:18 is EURUSD,Daily: Upper = 0
12:28:18 is EURUSD,Daily: Lower = 0
12:28:18 is EURUSD,Daily: i = 11
12:28:18 is EURUSD,Daily: Upper = 0
12:28:18 is EURUSD,Daily: Lower = 0
12:28:18 is EURUSD,Daily: i = 12
12:28:18 is EURUSD,Daily: Upper = 0
12:28:18 is EURUSD,Daily: Lower = 0
12:28:18 is EURUSD,Daily: i = 13
12:28:18 is EURUSD,Daily: Upper = 0
12:28:18 is EURUSD,Daily: Lower = 0
12:28:18 is EURUSD,Daily: i = 14
12:28:18 is EURUSD,Daily: Upper = 0
12:28:18 is EURUSD,Daily: Lower = 0
12:28:18 is EURUSD,Daily: i = 15
12:28:18 is EURUSD,Daily: Upper = 0
12:28:18 is EURUSD,Daily: Lower = 0
12:28:18 is EURUSD,Daily: i = 16
12:28:18 is EURUSD,Daily: Upper = 0
12:28:18 is EURUSD,Daily: Lower = 0
12:28:18 is EURUSD,Daily: i = 17
12:28:18 is EURUSD,Daily: Upper = 0
12:28:18 is EURUSD,Daily: Lower = 0
12:28:18 is EURUSD,Daily: i = 18
12:28:18 is EURUSD,Daily: Upper = 0
12:28:18 is EURUSD,Daily: Lower = 0
12:28:18 is EURUSD,Daily: i = 19
12:28:18 is EURUSD,Daily: Upper = 0
12:28:18 is EURUSD,Daily: Lower = 0
12:28:18 is EURUSD,Daily: i = 0
12:28:18 is EURUSD,Daily: Upper = 0
12:28:18 is EURUSD,Daily: Lower = 0
12:28:18 is EURUSD,Daily: i = 1
12:28:18 is EURUSD,Daily: Upper = 0
12:28:18 is EURUSD,Daily: Lower = 0
12:28:18 is EURUSD,Daily: i = 0
12:28:18 is EURUSD,Daily: Upper = 0
12:28:18 is EURUSD,Daily: Lower = 0
12:28:18 is EURUSD,Daily: i = 1
12:28:18 is EURUSD,Daily: Upper = 0
12:28:18 is EURUSD,Daily: Lower = 0
12:28:19 is EURUSD,Daily: i = 0
12:28:19 is EURUSD,Daily: Upper = 0
12:28:19 is EURUSD,Daily: Lower = 0
12:28:19 is EURUSD,Daily: i = 1
12:28:19 is EURUSD,Daily: Upper = 0
12:28:19 is EURUSD,Daily: Lower = 0
12:28:19 is EURUSD,Daily: i = 0
12:28:19 is EURUSD,Daily: Upper = 0
12:28:19 is EURUSD,Daily: Lower = 0
12:28:19 is EURUSD,Daily: i = 1
12:28:19 is EURUSD,Daily: Upper = 0
12:28:19 is EURUSD,Daily: Lower = 0
12:28:20 is EURUSD,Daily: i = 0
12:28:20 is EURUSD,Daily: Upper = 0
12:28:20 is EURUSD,Daily: Lower = 0
12:28:20 is EURUSD,Daily: i = 1
12:28:20 is EURUSD,Daily: Upper = 0
12:28:20 is EURUSD,Daily: Lower = 0
12:28:21 is EURUSD,Daily: i = 0
12:28:21 is EURUSD,Daily: Upper = 0
12:28:21 is EURUSD,Daily: Lower = 0
12:28:21 is EURUSD,Daily: i = 1
12:28:21 is EURUSD,Daily: Upper = 0
12:28:21 is EURUSD,Daily: Lower = 0
12:28:21 is EURUSD,Daily: i = 0
12:28:21 is EURUSD,Daily: Upper = 0
12:28:21 is EURUSD,Daily: Lower = 0
12:28:21 is EURUSD,Daily: i = 1
12:28:21 is EURUSD,Daily: Upper = 0
12:28:21 is EURUSD,Daily: Lower = 0
12:28:22 is EURUSD,Daily: i = 0
12:28:22 is EURUSD,Daily: Upper = 0
12:28:22 is EURUSD,Daily: Lower = 0
12:28:22 is EURUSD,Daily: i = 1
12:28:22 is EURUSD,Daily: Upper = 0
12:28:22 is EURUSD,Daily: Lower = 0
12:28:22 is EURUSD,Daily: i = 0
12:28:22 is EURUSD,Daily: Upper = 0
12:28:22 is EURUSD,Daily: Lower = 0
12:28:22 is EURUSD,Daily: i = 1
12:28:22 is EURUSD,Daily: Upper = 0
12:28:22 is EURUSD,Daily: Lower = 0
12:28:22 is EURUSD,Daily: i = 0
12:28:22 is EURUSD,Daily: Upper = 0
12:28:22 is EURUSD,Daily: Lower = 0
12:28:22 is EURUSD,Daily: i = 1
12:28:22 is EURUSD,Daily: Upper = 0
12:28:22 is EURUSD,Daily: Lower = 0
12:28:23 is EURUSD,Daily: deinitialized
12:28:23 is EURUSD,Daily: uninit reason 1
12:28:23 is EURUSD,Daily: removed



Of course there are fractals on the chart. When hovering over the arrow with the mouse, the value pops up. Help me with this mess.

 
Al_Key:

Hi!

Prints only zeros in the log, although on the chart, lots of fractals in the first twenty bars. What's the problem? Who knows? Initially, the indicator was supposed to be able to track fractals. Then print() produced this:

Of course there are fractals on the chart. When hovering over the arrow with the mouse, the value pops up. Please help me to solve this problem.

First, write it like this:

    iFractals (NULL, 0, MODE_UPPER, 0);
 
TarasBY:

Start by writing it down like this:


That's right ... I've been doing it that way from the beginning (according to the help). Checked again just in case, no change.
Reason: