Click here to Login





                                                   Error in code??

  0

0
Dennis Schutten
2016-05-04 10:23:59


Hi,

Why does the code below not work? No errors, it just wont buy anything.
And there is data avalaible on that date....

a = valuewhen(stringequal(date(), "01/01/1999"), close);
b= close-a;
rank1=comp(b,"rank");


buy= rank1<10;

regards,
Dennis





QuantShare
2016-05-06 03:27:05

  0

Dennis,

Why don't you plot it on a chart to see. You will get a visual confirmation.
By the way, there is no trading day on the first January.



SystemTrade
2016-05-06 10:41:36

  0

@Dennis: just in case you are from Europe: try "MM/DD/YYYY" instead of "DD/MM/YYYY" for the date. It depends on the localisation of your .net environment.


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
Standard Error Bands
Standard Error of the Estimate of a Regression Line
Chande TrendScore By Symbol
Yale - Valuation Confidence Index
calcA

How-to Lessons
Difference between the watchlist and the screener tools
How to quickly add a ticker symbol
How to plot two different time frames in the same chart
How to download historical quotes of indices
How to plot the number of stock tweets per day

Related Forum Threads
Error Graph should automatically scale
Error in formula
Error in formula
Error during report creation
Error object assignment

Blog Posts
Working with the formula editor
Let me Show You How to Create Hundreds of Profitable Trading Syst...
Troubleshooting a Trading System
Quantitative Analysis: Price Channels
Custom Indicator: Accumulation Distribution Line









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.