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

 
SergeyD писал(а) >>

I would like to make a sampling on a whole bunch of muwings on the rts futures. although I would also like to do it on muwings (the whole crowd and on different timeframes) and on sipi/show/euro-dollar

if you do not mind to make an example - i would appreciate it - i need to learn

The script creates a file in the experts\files folder. The file name is formed from symbol and current timeframe.

Saves in the file time, bar close price and values of the set mask

Files:
[Deleted]  
If I may Vinin, one more question (not too distracting from the table?!)
 
igrok2008 писал(а) >>
If I may Vinin, one more question (not too distracting from the table?!)

Better tomorrow.

[Deleted]  
Vinin hello, can I ask you a question?
 
Advise code to calculate the correlation. A search returned a lot of results, but which code actually works is not clear.
 
igrok2008 Write your question, someone will answer it
[Deleted]  

You have corrected the indicator. It's good, it's fine. But there is an unclear point, with the trading condition? Please explain...

int start()
  {
   int    counted_bars=IndicatorCounted();
   int limit = Bars- counted_bars-1;
   
   for(int i = limit; i>= 0; i--) {
      ExtMapBuffer2[ i] = EMPTY;
      ExtMapBuffer1[ i] = EMPTY;
      MACD[ i]=iMACD(NULL,0, Fast_EMA, Slow_EMA,1,PRICE_CLOSE,MODE_MAIN, i);
      if ( MACD[ i] * MACD[ i+1]<0) {
         if( MACD[ i] < 0) ExtMapBuffer2[ i] = High[ i]+iATR(Symbol(), 0, 14, i);
         if( MACD[ i] > 0) ExtMapBuffer1[ i] = Low[ i] -iATR(Symbol(), 0, 14, i); 
      }
   }
   return(0);
}
 

my skis aren't going ?!

double a = MathExp(10), b = MathExp(-10);
	
	Print( a);
	Print( b);
	b = 1./ a;
	Print( b);


why b is 0 in both cases ?


although it should be something like this

4189,448798029520479024881126433

2,3869488522460123706406991425885e-4

2,3869488522460123706406991425885e-4


ah... that's a lot of decimal places...

 
igrok2008 писал(а) >>

You have corrected the indicator. It's good, it's fine. But there is an unclear point, with the trading condition? Please explain...

I'm not quite clear about the trading conditions. I just sped up the indicator a bit.

The signals remain the same.

 
keekkenen писал(а) >>

my skis are not going ?!

Why is b equal to 0 in both cases?

It's not zero. Print() prints out values to 4 digits. Use DoubleToStr(). By setting the required precision of course.