Hi, Shrewd!        Login  
Shrewd'm.com 
A merry & shrewd investing community
Best Of MIBest OfAll BoardsThe Shrewd’m WeeklyLearn to InvestHow to Become Shrewd
Search
Shrewd'm.com Merry shrewd investors
Search
Best Of MIBest OfAll BoardsThe Shrewd’m WeeklyLearn to InvestHow to Become Shrewd


The week's question
In December 2024, in the thread "Re: BRK: Why Not XOM?", BreckHutHigh asked the members: "What about the long road trips with kids?" This week it is put to everyone again. The button below opens the small thread re-asking it - read what others have said so far, then give your own answer as an ordinary reply.
Answer this questionContinue to Shrewd'mThis note won't appear again
Investment Strategies / Mechanical Investing
Unthreaded | Threaded | Whole Thread (23) |
Author: anchak   😊 😞
Number: of 6131 
Subject: Re: Technical Indicators & Market Timing
Date: 02/08/23 11:49 PM
Post New | Post Reply | Report Post | Recommend It!
No. of Recommendations: 4
Mark... That logic does work for the Screener but not for the Universe/Signal ....

h1::NHNLRatio:gt1:CountOfHighs:imports(0,CountOfHighs,0,0):CountOfLows:imports(1,CountOfLows,0,0):WeightedCountOfHighs:sgwsum(CountOfHighs,0,9,8,7,6,5,4,3,2,1):WeightedCountOfLows:sgwsum(CountOfLows,0,9,8,7,6,5,4,3,2,1):NHNLRatio:ratio(WeightedCountOfHighs,WeightedCountOfLows){dspo:al252:excd.a:0et3:styp.a:0et10!11:ratio(gprc(0),hgprc(1,251))gt1:CountOfHighs:et-1:CountOfHighs:sum(1,1,step4)}{dspo:al252:excd.a:0et3:styp.a:0et10!11:ratio(gprc(0),lgprc(1,251))lt1:CountOfLows:et-1:CountOfLows:sum(1,1,step4)}{U:{!IXIC}}

Its this line that needs to be changed - ie U: {!IXIC} --- this by default picks up ALL Nasdaq listed stocks --
somehow it needs to be an AND condition ie both !IXIC and styp.a != 14!15!17!23!44!45!73!74!75!76!77

something like that - I just am not familiar how to pass that onto GTR1

Hope someone can help.

Essentially then the Daily Highs and Lows on the Daq are being computed on actual Company Stocks and so is the Ratio.

How do we get the # of Highs and # of Lows reported separately?

TIA!
Post New | Post Reply | Report Post | Recommend It!
Print the post
Members reply directly to anchak here — and replies get answered. Reading is free; so is joining the conversation. Join Shrewd'm »
This community has written 6,115 posts about Mechanical Investing. The article-length ones it recommended most:
Dividend investing · 52 recs · 2025
Non-Mag7 screen · 34 recs · 2025
OT - Div yields and returns · 32 recs · 2024
Using AI to generate backtesting programs · 30 recs · 2025
Rankings for 19Dec2022 · 29 recs · 2022
Unthreaded | Threaded | Whole Thread (23) |


Announcements
Mechanical Investing FAQ
Contact Shrewd'm
Contact the developer of these message boards.

Best Of MI | Best Of | Favourites & Replies | All Boards | Followed Shrewds | Open Questions | Moving a community