Click here to Login





                                                   datefilter

  0

0
Tim Mazanec
2016-03-06 13:11:09


How do I add language that allows certain buy signals between certain dates?

Currently I have:

// Buy rules
buy = (rule5 and rule6 and rule8 and rule9)
or (cross(AN, 0)
;

I want the 2nd line to effectively state:
or (cross(AN, 0) and datefilter(1,1,2000,1,1,2010));


The datefilter is receiving an error message under 2010



QuantShare
2016-03-07 05:56:00

  0

There are no issue with the "datefilter" function, you have added a second parenthesis in your formula
datefilter(1,1,2000,1,1,2010)

and not
datefilter(1,1,2000,1,1,2010))



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
AGNC Trading System
U.S. Dollar Long-Short Position Ratios
VMACD Indicator (Volume Moving Average Convergence Divergence)
Percentile Rank of PEG, Price/Free Cash Flow and Price/Sales
Inertia Indicator

How-to Lessons
How to draw distances on a chart?
How to create a mobile database/account
How to get stocks for a particular index using the global script
How to create and trade a Neural Network model
How to create a custom trading indicator

Related Forum Threads
Renaming Equal Weighted Index
Downloader doesn't download - why?
Script to remove Symbols from an Index
"perf" used in script
Watch-list Filter by Date

Blog Posts
Trading Optimization
Create a trading strategy using the money management tool - Part ...
How to create custom databases in your trading software
Historical Market Data
How to simulate options strategies









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.