SI
SI
discoversearch

We've detected that you're using an ad content blocking browser plug-in or feature. Ads provide a critical source of revenue to the continued operation of Silicon Investor.  We ask that you disable ad blocking while on Silicon Investor in the best interests of our community.  If you are not using an ad blocker but are still receiving this message, make sure your browser's tracking protection is set to the 'standard' level.
Strategies & Market Trends : Metastock 6.0 for Window -- Ignore unavailable to you. Want to Upgrade?


To: John Hunt who wrote (2438)11/16/1998 10:28:00 AM
From: John Hunt  Respond to of 4056
 
Re My Metastock Professional Question

I guess I have figured out one way to do it, and that is to select daily in the Explorer options, even when running against a real time chart.

I would still be curious if anyone has any other ideas, as this limits my flexibility quite a bit in writing formulas for the scan.

Thanks,

John




To: John Hunt who wrote (2438)11/16/1998 12:31:00 PM
From: Jon Coert  Read Replies (1) | Respond to of 4056
 
This formula will give you the value of the Open of the first trade of the day:

ValueWhen(1,DayOfMonth()<>Ref(DayOfMonth(),-1),
OPEN)

This formula will give you the close from the previous day:

ValueWhen(1,DayOfMonth()<>Ref(DayOfMonth(),-1),
ref(CLOSE,-1))

Subtract the second formula from the first formula, and you have the opening gap.

--Jon