[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

recalling varaible value



PureBytes Links

Trading Reference Links


Hi TJ amd others 
 
I was trying to recall the value of stoploss in the 
commentary window 
as it returns only true or false 1,0 
 
now do a get the value of the close bar for sell 
indicator ?
  abs ?
 
 
best=hhv(close,10);  //still no good cos 10 
may not be the right period
 
stopLoss =  (close < best * 0.97); // 3% drop from 10 day hi 

 
sell = stoploss;
 
writeval(best) +"   highest bar 10 
periods";WriteVal(stoploss)  + "   Stop loss ";
 
 
Thanks David