Click here to Login





                                                   Date variable not showing up in Debug

  0

0
Obuli Govindaraju
2013-04-17 05:31:55


I have this following code in a formula.

p = perf(close,1);
barDate = Date();
d = Day();
m = month();
y = year();

I want to export the values to a csv file so when I looked up the debug all values was there except for the variable barDate.

Why is that?





QuantShare
2013-04-17 11:01:14

  0

Best Answer
This is because "Date" function returns a string (Text value) and the debugger shows only numeric values.



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
Date Filter
BSE historical data by date
Vary the Start Date of a Trading System Simulation
Indicator/Price Value on a Specific Trading Date
Set the First Trading Bar Values to Not a Number

How-to Lessons
How to debug a downloader
How to debug a trading system using the money management tool
How to detect whether price movements are predictable or not
How to plot a time-series that do not update the chart scale
How to adjust a stock for splits

Related Forum Threads
Portfolio - Symbols are not up to date error
Passing date variable from custom drawing tools to custom functio...
Custom Date Format When Importing Data from CSV
can not update nse quote?
Futures Intraday data not displaying

Blog Posts
How to use date components in your trading rules
4 Links to Download Free Historical Stock Prices Data by Date
Programming skills are not that important
Troubleshooting a Trading System
Composite Indicators









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.