View Single Post
  #18 (permalink)  
Old 12-21-2005, 11:34 AM
scorpion's Avatar
scorpion scorpion is offline
Administrator
 
Join Date: Aug 2004
Posts: 1,957
Thanks: 112
Thanked 372 Times in 149 Posts
scorpion is a splendid one to beholdscorpion is a splendid one to beholdscorpion is a splendid one to beholdscorpion is a splendid one to beholdscorpion is a splendid one to beholdscorpion is a splendid one to beholdscorpion is a splendid one to beholdscorpion is a splendid one to behold
Send a message via MSN to scorpion Send a message via Yahoo to scorpion
Default

For your information, below is the block of bad code which is now corrected:

PHP Code:
for(int i=0i<limiti++)
    {  
MaxH High[Highest(NULL,0,MODE_HIGH,period,i)];
       
MinL Low[Lowest(NULL,0,MODE_LOW,period,i)];
      
price = (High[i]+Low[i])/2;
      
Value 0.33*2*((price-MinL)/(MaxH-MinL)-0.5) + 0.67*Value1;     
      
Value=MathMin(MathMax(Value,-0.999),0.999); 
      
ExtBuffer0[i]=0.5*MathLog((1+Value)/(1-Value))+0.5*Fish1;
      
Value1=Value;
      
Fish1=ExtBuffer0[i];
      
    } 
__________________
Make easy pips with the Advanced Economic Calendar for Forex Trading.
Reply With Quote

Registered members have access to special online forex currency trading tools, software, mt4 expert advisors and indicators. Register now

Main Menu

Economic Forecast