Print Page | Close Window

Metastock - Close above Median Price

Printed From: BullCharts Forum
Category: BullCharts
Forum Name: BullScript
Forum Discription: Technical discussion related specifically to the BullScript programming language.
URL: http://www.bullcharts.com.au/forum/forum_posts.asp?TID=78
Printed Date: 20 May 2024 at 10:35am
Software Version: Web Wiz Forums 9.69 - http://www.webwizforums.com


Topic: Metastock - Close above Median Price
Posted By: etrader
Subject: Metastock - Close above Median Price
Date Posted: 18 Dec 2004 at 8:01pm

hi all,

I have tried to paste this into The Indicator Builder, but comes up with error 111. It is a Momentum filter I want to use. This is designed to find those stocks where the close is above the median price over the past five days. It matches the steps in Robert Deels book, The Strategic Electronic Day Trader.


col a = CLOSE - MP()
col b = (Ref(CLOSE,-1))-(Ref( MP() ,-1))
Col c = (Ref(CLOSE,-2))-(Ref( MP() ,-2))
col d = (Ref(CLOSE,-3))-(Ref( MP() ,-3))
col e = (Ref(CLOSE,-4))-(Ref( MP() ,-4))
filter = colA>=0 AND colB>=0 AND colC>=0 AND colD>=0 AND colE>=0

I'd appreciate the help.

Regards etrader




Replies:
Posted By: Peter
Date Posted: 20 Dec 2004 at 9:47am
Hi etrader,

To do the equivalent filter in BullScan:
  1. Create a new scan (and give it a name, etc)
  2. Click on the criteria tab
  3. Click the New button and create a criteria as follows:
    1. First Value: "Is a price field", "Close"
    2. Condition "Is greater than or equal to", "Every" bar in the last "5" bars.
    3. Second Value "Is a price field", "Median"
  4. Press Ok



Posted By: etrader
Date Posted: 22 Dec 2004 at 3:08pm
thx Peter, first time used so will give a try.



Print Page | Close Window

Bulletin Board Software by Web Wiz Forums® version 9.69 - http://www.webwizforums.com
Copyright ©2001-2010 Web Wiz - http://www.webwiz.co.uk