Click here to Login





                                                   one more parameter for "istrue"

  0

0
Seeker
2014-01-10 18:26:09


It would have been helpful in certain situations if we can have one more parameter for "istrue" as follows:
a =istrue(close>sma(10),20,10) meaning price should have closed above 10-day sma for 10 of the past 20 days. Basically, for identifying condition as true for non-consecutive bars.



QuantShare
2014-01-11 11:57:01



You can do the same by typing:
a = sum(close>sma(10), 20) == 10;



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
Historical Stock Quotes Data for more than 50 Exchanges
Daily Stock Quotes for more than 50 Stock Exchanges
Recent Insider Buying and Selling for US Stocks
EOD Quotes Data for Hong Kong Stocks and ETFs
Entry for long (Multibagar)

How-to Lessons
How to add future bars to plan for market scenarios
How to display the number of stocks per day for different RSI gro...
How to screen for stocks having a high correlation with the Dow J...
How to get fundamental data for U.S. Stocks
How to download earnings calendar data for various stocks

Related Forum Threads
any one make rule for macd
Streamline Toolbars / Interface for More Open Space
Custom Multi-Dimensional Fitness Formula (CMDFF) for Optimizer
An example for Excel COM automation - Further joint development?
How to get forex rates for a specified currency

Blog Posts
6 ways to download free intraday and tick data for the U.S. stock...
How to download the history of dividend payments for stocks in th...
Display several stock market charts with one click
How to get buy and sell orders for a portfolio based on a trading...
How to turn any ordinary trading strategy into a very profitable ...









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.