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

 
Skopcheny:

comprehensive answer... thank you very much ...


small correction

string trend(string sy="", int tf=0)
{
   int count,count_change;
   double bar_centr;
   string trend;
   bool clear;

   if (sy=="" || sy=="0") sy=Symbol();      
   if (tf==0) tf=Period();
   
   for (int i=10; i>0; i--)
      {
         bar_centr = (iHigh(sy,tf,i)-iLow(sy,tf,i))/2+iLow(sy,tf,i);
         if (bar_centr>((iHigh(sy,tf,i+1)-iLow(sy,tf,i+1))/2+iLow(sy,tf,i+1)))
            count++;
         if (bar_centr<((iHigh(sy,tf,i+1)-iLow(sy,tf,i+1))/2+iLow(sy,tfi+1)))
            count--;
      }

   Print (count,"период ",tf);

   if (count>3) trend="покупка";
   if (count<-3) trend="продажа";
   if (count<=3 && count=>-3) trend="неопределенность";

   return(trend);
}

Otherwise it would always come back "uncertainty".

 
Vinin:


small correction

Otherwise it would always come back "uncertainty".


)) thank you exactly ...
 
Vinin:


small correction

Otherwise it would always come back "uncertainty".

There you go, you say "back in history" ... :) I can tell you've got a good eye :) I didn't even look at the code.
 

I've installed Microsoft Visual Studio 2010, chose programming in C++, and a window opened for code. Does anybody know how to create a form?

When programming in Microsoft Visual Studio 2010, a form appears immediately and only then you can proceed with the code; what about C++?

 

another question ... When calling the iHigh array variable, we get a value accurate to 4 decimal places. e.g:

double znakfunction ( string sy="", int tf=0)

{

if (sy=="" || sy=="0") sy=Symbol();
if (tf==0) tf=Period();

double znachenie = iHigh(sy,tf);

Print(znachenie);

return(znachenie);

}

The result is a number with four decimal places ... The graph has five decimal places ... The question is how do we get a value with five decimal places ?

 
Skopcheny:

another question ... When calling the iHigh array variable, we get a value accurate to 4 decimal places. e.g:

double znakfunction ( string sy="", int tf=0)

{

if (sy=="" || sy=="0") sy=Symbol();
if (tf==0) tf=Period();

double znachenie = iHigh(sy,tf);

Print(znachenie);

return(znachenie);

}

The result is a number with four decimal places ... The graph has five decimal places ... The question is how do we get the value with five decimal places ?

Print (DoubleToStr(znachenie, Digits));

 
What if the variable is to be used in the future for some calculations and not just for printing?
 

Guys, give me an example of how to correctly place an expiration in a stop order. Let's say one minute, 20 minutes, one hour. I can not find and myself do not understand. I am grateful in advance.

 

Good afternoon. Please make an iBandsOnArray indicator on the macda. It should be like on the screenshot.


 

//===========================================================================

who can help, explain in russian

how the methodology of training takes place (conditionally, it does not matter which algorithm yet) Neuronka

so the methodology of selection ( tucking parmeters aka values ) is clear

- genetics

- propagation of the backward error (for example)

But what about training? If the fitting logic is not clear - ok, training is finished.

or drop me a link i would be very grateful.

//===========================================================================

i.e. in the tester it is clear there at the expense of building up profits - ok.

but let's say just a perfect sinusoidal sample of xxx values

how is it =) goes the concept of good and enough ?

Thanks in advance for the reply on the subject.

chrs