Thread: Stochastic
View Single Post
  #10 (permalink)  
Old 09-09-2007, 03:18 AM
fxbs fxbs is offline
Senior Member
 
Join Date: Jan 2007
Location: not so remote
Posts: 2,366
fxbs is on a distinguished road
something like that (just messing quick&dirty) [levels20/80]


UpperBuffer[i]=oldval+0.3*oldval*((stochK+50)/10000);
LowerBuffer[i]=oldval- 0.3*oldval*((stochK+50)/10000);


UpperBuffer1[i]=oldval+ oldval*(stochK1/10000);//

LowerBuffer1[i]=oldval + oldval*((stochD1)/10000);
___________

double stochK = (iStochastic(NULL,0,KPeriod,DPeriod,Slowing,MAMeth od,PriceField,0,i));
double stochK1 = (iStochastic(NULL,0,KPeriod,DPeriod,Slowing,MAMeth od,PriceField,0,i)-50); - ...
__________
Attached Images
File Type: gif stoh lvls.gif (21.4 KB, 811 views)
File Type: gif stoh lvls h4.gif (21.2 KB, 794 views)

Last edited by fxbs; 09-09-2007 at 04:28 AM.
Reply With Quote