Lanclos 5 posts msg #127474 - Ignore Lanclos |
3/2/2016 8:14:45 PM
I would like to modify the following script that was posted here at SF to be able to calculate the slope of any indicator like OBV or MFI or AccDist - thanks in advance
set{slope2open, 10 day normslope of open}
set{slope2close, 10 day nomrslope of close}
set{radiansopen, slope2open}
set{radiansclose, slope2close}
set{atanclose, atan(radiansclose)}
set{atanopen, atan(radiansopen)}
set{hcircle, 180 / 3.14159}
set{angledegopen, atanopen * hcircle}
set{angledegclose, atanclose * hcircle}
set{angledegx, angledegopen + angledegclose}
set{angledeg2, angledegx / 2}
set{E36b,days(angledeg2 is above angledeg2 1 day ago ,100)}
set{E36a,days(angledeg2 is below angledeg2 1 day ago ,100)}
set{degreechg, E36a - E36b}
volume above 500000
degreechg above 1
and draw 10 day normslope of close
and draw 10 day slope of close
add column degreechg
add column angledeg2
Sort column 5 descending
|