Click here to Login





                                                   Screener help

  0

0
allan nathan
2013-07-14 19:58:10


Could someone help me locating the error in my code.It appears to be R2.Did I not use Pow correctly?I am trying to screen fo Rsquared..thanks


SPY = GetSeries("spy", close, LastData);
var1 = correl(perf(close, 1), perf(spy, 1), 30);
AddColumn("Correl", var1);
R2= Pow(var1,2);
addcolumn =("R2", Rsquared);
filter = var1 >= 0.5;



QuantShare
2013-07-15 03:03:27

  0

Best Answer
The error is with the second "AddColumn". Also the variable "Rsquared" is unknown.
You should type:
AddColumn("R2", R2);




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
Covered Call Screener
Covered Put Screener
Identify Spilts Screener Script
Super Stock Screener Ranking System
Trade-Ideas Intraday Screener

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 automatically arrange charts?
How to run a screen or a watchlist from a script
How to screen for stocks having a high correlation with the Dow J...

Related Forum Threads
Stochastics, screener Slow D and K cross
Ranking System Help
Screener start
Help With Daily Data Import Script
Help with Quantshare Language

Blog Posts
How to use QuantShare screener to trade penny stocks
How to predict and trade the stock market using pivot points
How to deal with StockTwits data
Trading software new features
Getting Accurate Backtesting Results: Survivorship bias-free S&P ...









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.