never_noob
New member
I'm looking for a way to use TS to measure/indicate when the slope of VWAP changes from positive to negative.
For instance, on MNQ (see attached), I have a VWAP SMA graphed in purple. I'd like to get an indicator/signal when the slope of that line curves goes from negative (positive) to flat, and then from flat to positive (negative). I've tried to do some basic geometry math (rise over run) which works on paper but I can't seem to get it to work in ThinkScript. Any ideas how to code something like this?
For instance, on MNQ (see attached), I have a VWAP SMA graphed in purple. I'd like to get an indicator/signal when the slope of that line curves goes from negative (positive) to flat, and then from flat to positive (negative). I've tried to do some basic geometry math (rise over run) which works on paper but I can't seem to get it to work in ThinkScript. Any ideas how to code something like this?