Click here to Login





                                                   Very basic question about backtesting

  0

0
Ira Fuchs
2013-11-26 05:42:15


I have not used Quantshare but I am trying to understand what Quantshare can (or cannot) do. For example, if I wanted to test a potential (simple) trading strategy which had the following characteristics:
if a stock or index opens higher than its previous close what is the probability that it will end the day higher than it's opening price.
Could Quantshare do this, and if so how does one set this up?



QuantShare
2013-11-30 10:56:42

  0

Here is how to plot that probability on a chart:

rule1 = open > close[1];
out1 = close > open;
pos1 = sumif(rule1, out1);
neg1 = sumif(rule1, !out1);
res1 = 100*pos1 / (pos1 + neg1);
plot(res1, "");


(Right click on a chart's pane, select "Edit Formula", type your formula then click on "Update Graph")




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
    Basic Portfolio Measures
    Basic in-Sample/out-of-sample trading technique
    Dow Jones U.S. Technology Sector Index Fund survivorship bias-fre...
    Survivorship bias-free S&P 500 database downloader
    Interest Rate Swaps - Historical Data

    How-to Lessons
    How to perform a basic quantitative analysis using the S&P 500
    How to quickly add several positions to your portfolio
    How to create a custom trading indicator
    How to plot a stock using different periods in the same chart
    How to create a watchlist

    Related Forum Threads
    Question about backtesting
    Question about an object
    Basic Backtesting and Systems
    Question about Downloader
    Basic question on orders

    Blog Posts
    More about QuantShare Programming Language
    Backtesting All Candlestick Patterns in 10 Minutes
    9 mistakes you should avoid when backtesting an end-of-day stock ...
    Backtesting trading strategies using intraday data
    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 © 2025 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.