[ARCHIVE] Any rookie question, so as not to clutter up the forum. Professionals, don't pass by. Nowhere without you - 3. - page 373

 

Hello.

Can you please tell me how to get the price of the Fibo level of interest.

I have tried many variants. Here is one of them:

double gg = 0;
double hh = 0;
for(int i=ObjectsTotal()-1; i>=0; i--)
 {
  string N_M=ObjectName(i);
  if(N_M=="FIBO_13426")
   {
    hh = ObjectGet("FIBO_13426", OBJPROP_FIRSTLEVEL+3);
    gg = ObjectGet("FIBO_13426",hh);
   }
  return (gg);
 }

Thank you in advance.

 
nemo811:

Hello.

Could you please tell me how to get the price of the Fibo level of interest?


you cannot get the price. you can only get the percentage. But the level price is calculated on the basis of the prices of the ends of the fiba.
 
Got it. Thank you.
 

Hello, comrades!

Faced an unexpected problem.

The day before yesterday the tester was working as it should. Since yesterday evening, any version of the strategy in the tester opens one trade and after a second, or a few minutes/hours of history, the tester stops working. No errors, nothing.

I did not change anything in the Expert Advisors.

Has anybody had problems with it? Please advise

here is the log

2011.11.27 16:12:29 2010.01.11 05:20 Tester: order #1 is closed
2011.11.27 16:12:29 2010.01.11 02:40 channel_err RTSI,Daily: open #1 buy 1.00 RTSI at 1498.23 sl: 1403.37 tp: 282172.43 ok
2011.11.27 16:12:29 2010.01.11 02:40 channel_err RTSI,Daily: Alert: buy 1 lot for 1216 (121.6%) With leverage = 1.2
2011.11.27 16:12:29 2010.01.11 02:40 a_max_example RTSI,Daily: loaded successfully
2011.11.27 16:12:29 2010.01.11 02:40 channel_err RTSI,Daily: Alert: Last order was null. TREND trading
2011.11.27 16:12:29 2010.01.11 00:00 a_max_example_median RTSI,Daily: loaded successfully
2011.11.27 16:12:29 channel_err inputs: trstop=30; trstEp=0.5; Buy=24; Sell=10; risk=4;
2011.11.11.27 16:12:29 Tester: exchange rate cannot be calculated
2011.11.27 16:12:29 Tester: exchange rate cannot be calculated
2011.11.27 16:12:29 TestGenerator: unmatched data error (low value 1845.0000 at 2011.01.28 00:00:00 is not reached from the lowest timeframe, low price 1845.8900 mismatches)
2011.11.27 16:12:29 TestGenerator: unmatched data error (high value 1900.4000 at 2011.01.28 00:00 is not reached from the lowest timeframe, high price 1900.0400 mismatches)
2011.11.27 16:12:29 TestGenerator: unmatched data error (volume limit 38599 at 2010.05.11 00:00 exceeded)
2011.11.27 16:12:29 TestGenerator: unmatched data error (high value 1653.6300 at 2010.04.04.13 12:05 and price 1653.7600 mismatched)
2011.11.27 16:12:29 TestGenerator: unmatched data error (low value 1641.2200 at 2010.04.12 12:05 and price 1641.2100 mismatched)
2011.11.27 16:12:29 TestGenerator: unmatched data error (high value 1636.0400 at 2010.04.09 00:00 is not reached from the lowest timeframe, high price 1632.9900 mismatches)
2011.11.27 16:12:29 TestGenerator: unmatched data error (volume limit 1869 at 2010.04.09 00:00:00 exceeded)
2011.11.27 16:12:29 TestGenerator: unmatched data error (volume limit 1869 at 2010.04.09 00:00 exceeded)
2011.11.27 16:12:29 TestGenerator: unmatched data error (volume limit 1869 at 2010.04.09 00:00 exceeded)
2011.11.11.27 16:12:29 TestGenerator: unmatched data error (volume limit 1869 at 2010.04.09 00:00 exceeded)
2011.11.27 16:12:29 TestGenerator: unmatched data error (volume limit 1869 at 2010.04.09 00:00 exceeded)
2011.11.27 16:12:29 TestGenerator: unmatched data error (volume limit 1457 at 2010.04.08 00:00 exceeded)
2011.11.27 16:12:29 TestGenerator: unmatched data error (volume limit 1457 at 2010.04.08 00:00 exceeded)
2011.11.27 16:12:29 TestGenerator: unmatched data error (volume limit 1457 at 2010.04.08 00:00 exceeded)
2011.11.27 16:12:29 TestGenerator: unmatched data error (volume limit 1457 at 2010.04.08 00:00 exceeded)
2011.11.27 16:12:29 TestGenerator: unmatched data error (volume limit 1457 at 2010.04.08 00:00 exceeded)
2011.11.27 16:12:29 TestGenerator: unmatched data error (volume limit 1720 at 2010.04.07 00:00 exceeded)
2011.11.27 16:12:29 TestGenerator: unmatched data error (volume limit 1720 at 2010.04.07 00:00 exceeded)
2011.11.27 16:12:29 TestGenerator: unmatched data error (volume limit 1720 at 2010.04.07 00:00 exceeded)
2011.11.27 16:12:29 TestGenerator: unmatched data error (volume limit 1720 at 2010.04.04.07 00:00:00 exceeded)
2011.11.27 16:12:29 TestGenerator: unmatched data error (volume limit 1720 at 2010.04.07 00:00 exceeded)
2011.11.27 16:12:29 TestGenerator: unmatched data error (volume limit 1720 at 2010.04.07 00:00:00 exceeded)
2011.11.27 16:12:29 TestGenerator: unmatched data error (volume limit 1720 at 2010.04.07 00:00 exceeded)
2011.11.27 16:12:29 TestGenerator: unmatched data error (volume limit 1720 at 2010.04.07 00:00 exceeded)
2011.11.11.27 16:12:29 TestGenerator: unmatched data error (volume limit 1720 at 2010.04.07 00:00 exceeded)
2011.11.27 16:12:29 TestGenerator: unmatched data error (volume limit 1720 at 2010.04.07 00:00 exceeded)
2011.11.27 16:12:29 TestGenerator: unmatched data error (low value 1561.1500 at 2010.03.31 00:00 is not reached from the lowest timeframe, low price 1568.3100 mismatches)
2011.11.27 16:12:25 channel_err: loaded successfully

the unmatched data error was there before, but everything was working fine

 
can pending orders trigger slippage? testing owl. the tester shows that a pending order is placed at one price but is triggered at another
 
myrzila:
can the pending orders trigger with slippage? testing the owl. the tester shows that the pending order is placed at one price but triggers at another
Have you considered the price at which your orders are opened (Ask or Bid)?
 
ramirez17:

There was an unmatched data error before, but everything worked fine

As far as I know, there should be no errors at all in the logbook. Fix the explicit one - maybe that's the reason.
 

Can you tell me how to reset the array? It's getting progressively full of numbers:

void FormTicket(int number) 
    { 
      for(int i=3;i>0;i--) 
      { 
         TicketArray[0] = ticket; 
         if(TicketArray[0]>0 && TicketArray[0] == TicketArray[1])break; 
         TicketArray[i] = TicketArray[i-1]; 
      } 
    } 

int start() 
  { 
//---- 


FormTicket(ticket); //вызываем функцию, чтоб запоминала тикеты 


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

ticket - This is the order number. So, I would like all numbers in the array to instantly become zero "0" under a certain condition... How do I do this?

 
CLAIN:

How do I reset the array? It's gradually filling up with numbers:

ticket - This is the order number. So, I would like all numbers in the array to instantly become zero "0" under a certain condition... How do I do this?


https://docs.mql4.com/ru/array/ArrayInitialize
 

thanks =)))))))))))))))))))))