Normalizing an indicator

StrataSearch has many powerful features, with many techniques and approaches to explore. Here we discuss the things we've done, and the things we'd like to do.

Normalizing an indicator

Postby rjay » Mon May 04, 2015 2:51 pm

I have ny own RoC/momentum indicator which uses price (today and xx bars ago) plus StDev. I want to normalize the output (bound it between 0 & 100, -100 & +100, or whatever's easiest ) so that I can more easily use it across different asset classes. Is there an easy way of doing this in StrataSearch ?
Posts: 116
Joined: Wed Jul 26, 2006 6:51 am

Re: Normalizing an indicator

Postby Overload » Mon May 04, 2015 6:57 pm

If you want to bound it between 2 numbers like -100 and 100, that can be done pretty easily using a combination of the higher() and lower() formulas:

val = -105;
val = higher(-100, lower(100, val));

Posts: 2248
Joined: Wed Nov 30, 2005 12:14 pm

Return to General Discussion