Click here to Login





                                                   Gap down screener and addcolumn

  0

0
umair
2013-02-14 04:38:33


a = histoprice(_close,1);
b = histoprice(_open,0);
var1 = b < a;
filter = var1;

Why is the above not working? I'm not getting any hits

I've also tried:

var1 = histoprice(_open,0) < histoprice(_close,1);
filter = var1;


And i'm trying to add this column to screener:

AddColumn("Column1",a);

or

AddColumn("Column1",histoprice(_close1));

Neither work. I believe the logic is correct?



umair
2013-02-14 05:18:48

  0

im not sure why histoprice does not work in screener but the below works:

a = ref(close,1);
b = ref(open,0);
var1 = b < a;
filter = var1;

AddColumn("Open", ref(open,0));
AddColumn("close1", ref(close,1));



QuantShare
2013-02-14 16:25:15

  0

It does work. Are you using an intraday time frame in your screener?
The "histoprice" function gets daily ohlc from intraday data.



umair
2013-02-14 19:45:48

  0

No i'm using daily


QuantShare
2013-02-15 11:28:05

  0

The "histoprice" should be used only with intraday data.

In daily data, to get previous data, simply using "ref" function.



umair
2013-02-16 21:22:24

  0

whatsup QS, just curious if i'm doing the below correctly:

// Gapped down 100
z = close > 10;
x = sma(volume, 30) > 1000000;
a = ref(open,0) < ref(close,1);
b = day() != ref(day(), 1);
d = z and x and a and b;

I'm looking for stocks that have a close higher than 10, avg volume for 30 days > 1M and gap down

i know i have all the rules correct .. is d= also correct?



QuantShare
2013-02-18 10:10:54

  0

Yes, it is correct. But "b" is not necessary since you are using EOD data so "b" variable will always be true.



No more messages
0




Reply:

No html code. URLs turn into links automatically.

Type in the trading objects you want to include: - Add Objects
To add a trading object in your message, type in the object name, select it and then click on "Add Objects"










QuantShare

Trading Items
Last Gap Up/Gap Down Price Size
Consecutive Up and Down Bars - Works With Any Trading Indicator
Auto Draw Gap Lines
Gap Up/Down Market Breadh Indicator
Futures and Forex historical data

How-to Lessons
Difference between the watchlist and the screener tools
How to speed up watchlist and screener plug-ins when working with...
How to download EOD quotes for active and valid stocks only
How to create trading rules based on Put and Call volume data
How to plot support and resistance lines automatically

Related Forum Threads
DISCREPANCIES IN SCREENING BY SCREENER AND SCREENING THRU WATCHLI...
addcolumn and stock name
Stochastics, screener Slow D and K cross
indicator for 1 symbol in screener and simulation
Multiple Static Watchlists and Screener

Blog Posts
How to speed up quotes and news downloads
How to create a trading system, screen and composite using earnin...
How to use QuantShare screener to trade penny stocks
Different Types of Trading Indicators: Trend, Momentum, Volatilit...
Forecast volatility using trading rules and neural networks









QuantShare
Product
QuantShare
Features
Create an account
Affiliate Program
Support
Contact Us
Trading Forum
How-to Lessons
Manual
Company
About Us
Privacy
Terms of Use

Copyright © 2024 QuantShare.com
Social Media
Follow us on Facebook
Twitter Follow us on Twitter
Google+
Follow us on Google+
RSS Trading Items



Trading financial instruments, including foreign exchange on margin, carries a high level of risk and is not suitable for all investors. The high degree of leverage can work against you as well as for you. Before deciding to invest in financial instruments or foreign exchange you should carefully consider your investment objectives, level of experience, and risk appetite. The possibility exists that you could sustain a loss of some or all of your initial investment and therefore you should not invest money that you cannot afford to lose. You should be aware of all the risks associated with trading and seek advice from an independent financial advisor if you have any doubts.