KrauseSlope. A slope output of degrees that lets you reference changing slopes in a strategy.
Pass two variables to it, and refer to it like this:
KrauseSlope(3,11).Short[0]
The first variable (3) is the number of bars to calculate the slope across. (So in this example, using 3, the slope would be figured from ema(11)[3]-ema(11)[0]). The second variable (11), is the EMA period you prefer. This is customizable of course. You can of course change the indicator to reflect whichever MA or other indicator you like.
The output is in degrees (thus the arctan function). Note this requires 6.507 or above, as the slope function changed at 6.507.
Whatever you profit, feel free to send half of profits to my paypal.. [email protected]. heheheh...
Comment