Logic to find values in-between a range

Hi Gurus,

I am writing a AFL wherein I need to explore all those stocks whose RSI values is in-between 40 to 70.

For example, it should be similar like the arithmetic formula: (40 < RSI(14) < 70)

Can anyone suggest me how to write this logic in AFL? I would be very grateful.


To combine two conditions that should occur at the same time use AND operator:

r = RSI( 14 );
Filter = r > 40 AND r < 70;
AddColumn( r, "RSI");
1 Like