glgene 616 posts msg #36475 - Ignore glgene |
6/26/2005 12:57:07 PM
Newbie question: I suspect my coding below is incorrect. It's meant to be a 4-way test (if all conditions are positive) for a BUY. Did I mess up? Help.
/*EFS 4-way buy signal of a stock
RSI(14) has crossed above 50
and MACD(12) has crossed above MACD(26)
and DPO(10) has crossed above 0
and close has crossed above EMA(30)
Thanks in advance for your replies.
GL Gene
|
corsino 259 posts msg #36481 - Ignore corsino |
6/26/2005 3:20:14 PM
Had to delete a couple of lines and reword others to get results, but didn't have time to finish. Maybe this will give you a start. You can use the debug function to help.
Stocks where RSI(14)crossed above 50 within the last 2 days
and MACD(12) crossed above MACD(26)within the last 2 days
and close crossed above EMA(30)within the last 2 days
and close is between 1 and 10
|
glgene 616 posts msg #36482 - Ignore glgene |
6/26/2005 4:16:21 PM
Corsino,
IBD is negative on stocks < $10 a share. Curious ... why did you select stocks from $1 to $10? Stocks in that range don't attract institutional $$. By the way, I added this as a final line to your suggestion, and gave up on DPO:
"and close increased within the last 1 day"
Ran it, and got 30 results.
Thanks. I'll keep fine-tuning it ... to a degree. Nothing is perfect.
GL Gene
|
TheRumpledOne 6,411 posts msg #36484 - Ignore TheRumpledOne |
6/26/2005 4:34:57 PM
I set up display columns for you because the filter returned 0 stocks.
At least one of your criteria has to be true for a stock to appear on the list.
The stocks with the most hits pop to the top (sorting x3 descending).
Perhaps you may want to adjust the selection criteria because DPO(10) crossed above 0 never "hits". Perhaps it is a SF bug!!
Hope this helps.
MAY ALL YOUR FILLS BE COMPLETE.
|
corsino 259 posts msg #36486 - Ignore corsino |
6/26/2005 4:37:08 PM
gl gene
I just arbitrarily chose $1 to $10 to cut down the number of returns. I was more interested in getting the syntax correct than in the actual parameters, which can be changed to suit..
|
TheRumpledOne 6,411 posts msg #36493 - Ignore TheRumpledOne |
6/26/2005 4:51:05 PM
MAY ALL YOUR FILLS BE COMPLETE.
|
glgene 616 posts msg #36498 - Ignore glgene |
6/26/2005 6:08:07 PM
To the RumpledOne (you're great!)
When I ran your test, I got a "beep" when I clicked on any of the charts (eg. 3m). Couldn't draw a thing. What's up?
Another (basic) question: If I wanted to print the Average Volume next to the Volume column, would I say Average Volume(22) or Average Volume(30) for one month (trading days vs. calendar days)?
Your contribtutions here are so precious. How do you do it? Do you take a "smart pill" daily? Tell me what it is...I'll do it!
GL Gene
|
TheRumpledOne 6,411 posts msg #36501 - Ignore TheRumpledOne |
6/26/2005 9:16:58 PM
Smart pills...lol
Computer science degree ;)
Do YOU want 22 days or 30 or both.
That's your call.
|
TheRumpledOne 6,411 posts msg #36502 - Ignore TheRumpledOne |
6/26/2005 9:18:04 PM
My charts work just fine... check your global settings.
|
glgene 616 posts msg #36504 - Ignore glgene |
6/26/2005 9:40:44 PM
The RumpledOne,
My charts now work fine, too. Don't know what happened before.
I want ONE calendar month. So do I use 22 (trading days) or 30 (calendar days)?
GL Gene
|