Topics
05 Sep 2013, 00:18
 5817
 11
Replies

Capo85
08 Sep 2013, 07:10

This post has been removed by the moderator due to a violation of the EULA.


@Capo85

Capo85
06 Sep 2013, 22:16

This post has been removed by the moderator due to a violation of the EULA.


@Capo85

Capo85
28 Aug 2013, 00:28

RE:

Wow thanks so much!!!!


@Capo85

Capo85
27 Aug 2013, 22:00

is there anyone on the forum that you could direct me too that would be able to help program this?

 

Mainly this part is all i need

   //---- Calculate Pivot Levels ------------------------------------------------------------------------------- 
   // TODO: generalise all pivot calcs at some point
   double q, d, r1,r2,r3,r4,r5, s1,s2,s3,s4,s5;
   
   d     = (day_high[0] - day_low[0]);
   q     = (day_high[1] - day_low[1]); // RANGE
   
   // calculate pivots going back as many days as specified
   for (int idx = 1; idx <= Days; idx++)
   {
      p[idx]  = (day_high[idx] + day_low[idx] + day_close[idx]) / 3;  
      bc[idx] = (day_high[idx] + day_low[idx])/2;
      tc[idx]  = 2*p[idx] - bc[idx];
      
      if (bc[idx] > tc[idx])
      {
         double temp = bc[idx];
         bc[idx] = tc[idx];
         tc[idx] = temp;

 

 


@Capo85