|
Seeker
2013-10-18 19:03:04
|
|
I was using the SEARCHFOR function for particular logic but constantly getting 0 on all bars. To verify, i have just tried plotting your example itself as follows:
a = (SEARCHFOR rsi(14) > 70 THEN rsi(14) < 30 within 10);
plot(a,"a");
This also results in 0 on all bars though there are bars where this condition is satisfied.
Something not working well with this function or my mistake somewhere?
|
|
|
|
QuantShare
2013-10-18 22:48:50
0
|
|
"SearchFor" function is a bit complicated to use, we are currently working on updating it.
You can get the same logic using QS language:
a = rsi(14) < 30 and barssince(rsi(14) > 70) < 100;
|
|
|
|
Seeker
2013-10-19 08:46:42
0
|
|
Thanks for clarifying and also for the alternate formula. Actually, it will be great if the SEARCHFOR function is usable properly. With a few simple words, the amount of possibilities which can be accomplished by this function is amazing. Especially for non-programmers like me.
|
|
|
|
Seeker
2014-06-12 13:59:57
0
|
|
Any update on this?
|
|
|
|
QuantShare
2014-06-12 14:53:01
0
|
|
Best Answer
We haven't started yet working on the update. Hope soon.
|
|
|
|
|
|