View Single Post
  #20 (permalink)  
Old 09-09-2007, 08:52 PM
fxbs fxbs is offline
Senior Member
 
Join Date: Jan 2007
Location: not so remote
Posts: 1,974
fxbs is on a distinguished road
stoch channel(Levels) on the chart [cw]

it's all wrong, but it works somehow
stoh hooked on bbands istead of deviation
________________

double Stoch_Main1[];
Stoch_Main1[i] =iStochastic(NULL,0,14,3,3,MODE_SMA,0,MODE_MAIN, i);

double Stoch_Main =iStochastic(NULL,0,14,3,3,MODE_SMA,0,MODE_MAIN, i);
double Stoch_SigL=(iStochastic(NULL,0,14,3,3,MODE_SMA,0,M ODE_SIGNAL, i));

double StochMain1=Stoch_Main1[i];
double StochMain=Stoch_Main;
double StochSigL=Stoch_SigL;

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

UpperBuffer1[i]=oldval + oldval*((StochMain-50)/10000);
LowerBuffer1[i]=oldval + oldval*((StochSigL-50)/10000);
Attached Images
File Type: gif stoh lvls 3.gif (24.6 KB, 1682 views)
Reply With Quote