see if price is lower or higher than periods before

Created at 02 May 2017, 23:16
How’s your experience with the cTrader Platform?
Your feedback is crucial to cTrader's development. Please take a few seconds to share your opinion and help us improve your trading experience. Thanks!
FR

fredrik

Joined 02.05.2017

see if price is lower or higher than periods before
02 May 2017, 23:16


Hi guys,

If I want to dicide if the current price is lower or higher than the closing price 15 pips back how does one accomplish this?

I did it using a simplemovingaverage indicator but it must be an easier way?

sma.Result.Last(15) > sma.Result.LastValue

Thanks!


@fredrik