Script Pulse

Trade Pulse => Trade Pulse Support => Topic started by: bracey on February 26, 2009, 10:31:35 PM

Title: Version 1.0.2 build 12 Algo please
Post by: bracey on February 26, 2009, 10:31:35 PM
I liked the algo from Version 1.0.2 build 12 much better than 13.
What was changed so I can change it back? Thanks.
Title: Re: Version 1.0.2 build 12 Algo please
Post by: oil on February 26, 2009, 11:07:01 PM
you are prob. the only one, which liked 12 more :d
Title: Re: Version 1.0.2 build 12 Algo please
Post by: ip0li on February 27, 2009, 05:20:43 AM
Add New Algo and call it as U wish(othervise it will be overwritten with update).

Under Step 1 copy this:

Code: [Select]
$P2=0;
$P3=0;
if($Din==0){
    if($Dout>0) $P1=0.001/$Dout;
    else $P1=0.01;
}
else {
   if($Dout==0)$Dout=1;
   if($Hout==0)$Hout=1;
   $P1=pow($Duin,0.1)*$Dclick*0.65/$Dout+pow($Huin,0.1)*$Hclick*0.35/$Hout;
   $P2=$Dclick*0.65/$Dout+$Hclick*0.35/$Hout;
   $P3=$Huin/$Hout;
   if($Dout_r>100){
     $c=$Ca/$AverageCa;
   }
   else $c=1;
   $c=pow($c,2);
   $P1*=$c;
   $P2*=$c;
   $P3*=$c;
}

Under Step 2 copy this:

Code: [Select]
if($active_trades_day<=5) $N1=1;
if($active_trades_day>5 && $active_trades_day<=50) $N1=floor($active_trades_day/5);
if($active_trades_day>50 && $active_trades_day<=100) $N1=round((($active_trades_day-50)/10),0)+10;
if($active_trades_day>100 && $active_trades_day<=200) $N1=round((($active_trades_day-100)/20),0)+15;
if($active_trades_day>200)  $N1=round((($active_trades_day-200)/40),0)+20;

$Points1=array();
$Points1[$N1-1]=2;
$Points1[$N1-2]=3;
for($a=$N1-3;$a>=0;--$a) $Points1[$a]=$Points1[$a+2]+$Points1[$a+1];
$N2=3;
$Points2=array();
$Points2[]=144;
$Points2[]=89;
$Points2[]=55;
$N3=4;

please let me know how it goes...
Title: Re: Version 1.0.2 build 12 Algo please
Post by: bracey on February 27, 2009, 09:05:47 PM
Thank you ip0li. That was very easy to change and spread across whole network. I will run it for a few days...
Title: Re: Version 1.0.2 build 12 Algo please
Post by: bracey on March 02, 2009, 08:43:55 AM
Ok, so the site was at 30k then I upgraded it to build 13 and it dropped down to 12k in 3 days.
After switching it back to the build 12 algo the site is up to 23K in 2 1/2 days.
Title: Re: Version 1.0.2 build 12 Algo please
Post by: Sweadult on March 02, 2009, 02:11:46 PM
I'm a bit torn.

With build 13, my sites are bigger but I'm nervous about the hard to controll return. Seems almost random, some good trades are getting lower returns than they should.

With build 12, it kept all decent trades at stable returns for me.
Title: Re: Version 1.0.2 build 12 Algo please
Post by: ip0li on March 03, 2009, 07:17:36 AM
each site is different, so U have now both algo's to use....we need to make algo for majority of sites, if your sites is different we can always tweak it for your needs ;)