Thursday, March 4, 2010

2-periods ROC strategy: formula with pro real time

For references: please see, Street Smarts, chapter 8


1.
//Simple calculation of pivot point for tomorrow's close

calcuno=close-close[2]

pivot=calcuno+close[1]

return pivot




2.

ROCDUE BRIEF INDICATOR

//rispetto a street smarts è stato tutto diminuito di 1 gg

// questo indicatore traduce invisione immediata quanto esplicato come strategia nel capitolo 8 di street samarts

calcuno=close[1]-close[3]

pivot=calcuno+close[2]

if close > pivot then

rocdue=1

elsif close <>

rocdue=-1

elsif close = pivot then

rocdue=0

endif

return rocdue
Any source

No comments:

Post a Comment