Wealthscript Programming Guide

Total Page:16

File Type:pdf, Size:1020Kb

Wealthscript Programming Guide Wealth-Lab Pro® Version 6.9 (.NET) WealthScript Programming Guide © 2015 FMR LLC All rights reserved. Wealth-Lab Pro® WealthScript Programming Guide Revised: Wednesday, December 02, 2015 eReview #483859 Wealth-Lab Pro WealthScript Programming Guide © 2015 FMR LLC All rights reserved. No parts of this work may be reproduced in any form or by any means - graphic, electronic, or mechanical, including photocopying, recording, taping, or information storage and retrieval systems - without the written permission of the publisher. Any screenshots, charts or company trading symbols mentioned, are provided for illustrative purposes only and should not be used or construed as an offer to sell, a solicitation of an offer to buy, or a recommendation for the security. Third party trademarks and service marks are the property of their respective owners. While every precaution has been taken in the preparation of this document, the publisher and the author assume no responsibility for errors or omissions, or for damages resulting from the use or misuse of information contained in this document or from the use or misuse of programs and source code that may accompany it. In no event shall the publisher and the author be liable for any loss of profit or any other commercial damage caused or alleged to have been caused directly or indirectly by this document. Printed: Wednesday, December 02, 2015 Special thanks to: Wealth-Lab's great on-line community whose comments have helped make this manual more useful for veteran and new users alike. EC Software, whose product HELP & MANUAL printed this document. I WealthScript Programming Guide, Wealth-Lab Pro Table of Contents Foreword 0 Part I Introduction 1 Part II How to Run Example Code 3 Part III The Bars Object 4 1 OHLC/V.. .S..e..r.i.e..s.. ...................................................................................................................... 6 2 Scale, I.n..t.e..r..v.a..l.,. .a..n..d.. .D...a..t.e.. ...................................................................................................... 8 3 Symbo..l. .I.n..f.o.. ......................................................................................................................... 10 Part IV DataSeries 11 1 Series. .O...p..e..r.a..t.o..r.s.. ................................................................................................................. 12 2 Access..i.n..g.. .a.. .S..i.n..g..l.e.. .V..a..l.u..e.. .f.r..o..m... .a.. .D..a..t.a..S..e..r.i.e..s.. ...................................................................... 15 3 Filling. .a.. .C..u..s..t.o..m... .D..a..t.a..S..e..r..i.e..s. ................................................................................................ 16 4 Access..i.n..g.. .S..e..c..o..n..d..a..r.y.. .S..y..m...b..o..l.s. ............................................................................................ 18 Secondary Se.r..i.e..s.. .S...y..n..c..h..r..o..n...i.z..a..t.i.o..n... ................................................................................................................... 19 Part V Painting the Chart 22 1 Chart .P..a..n..e..s. ......................................................................................................................... 23 2 Charti.n..g.. .M..u..l.t.i.p..l.e.. .S...y.m...b..o..l.s.. .................................................................................................. 24 3 Plottin.g.. .D...a..t.a..S..e..r.i.e..s.. ............................................................................................................. 26 Controlling th.e.. .y..-..s..c..a..l.e.. ......................................................................................................................................... 27 4 Writin.g.. .T..e..x..t. ........................................................................................................................ 28 5 Drawin..g.. .O...b..j.e..c..t.s. .................................................................................................................. 30 6 Plottin.g.. .F..u..n..d..a..m...e..n..t.a..l. .I.t.e..m...s.. ................................................................................................ 33 Part VI Indicators 34 1 Series. .M...e..t.h..o..d.. ..................................................................................................................... 36 2 Static .V..a..l.u..e.. .M...e..t.h..o..d.. ............................................................................................................ 37 3 Custom... .I.n..d..i.c..a..t.o..r.s. ................................................................................................................ 38 4 Indica.t.o..r.s.. .o..f. .S..e..c..o..n..d..a..r.y.. .S..y..m...b..o..l.s. ........................................................................................ 42 5 Stabili.t.y.. .o..f. .I.n..d..i.c..a..t.o..r.s.. .......................................................................................................... 43 Part VII Programming Trading Strategies 45 1 Tradin.g.. .S...i.g..n..a..l.s. ................................................................................................................... 48 2 Tradin.g.. .L..o..o..p.. ....................................................................................................................... 50 3 Single.-.P...o..s.i.t.i.o..n.. .S..t.r..a..t.e..g..i.e..s. ................................................................................................... 51 AtLimit, AtSto.p... .O..r..d..e...r.s... ........................................................................................................................................ 52 Time-Based E.x..i.t.s... .................................................................................................................................................. 54 © 2015 FMR LLC All rights reserved. Contents II 4 Peekin..g.. ............................................................................................................................... 57 Valid Peeking. ......................................................................................................................................................... 59 5 Strate.g..y. .P...a..r.a..m...e..t.e..r.s.. ........................................................................................................... 62 6 Multi-P..o..s..i.t.i.o..n.. .S..t.r.a..t.e..g..i.e..s.. ..................................................................................................... 65 7 Multi-S..y..m...b..o..l. .S..t.r.a..t.e..g..i.e..s.. ...................................................................................................... 67 8 Alerts ................................................................................................................................... 68 9 Option..s. .S..t.r..a..t.e..g..i.e..s. ............................................................................................................... 71 Part VIII Fundamental Analysis 74 1 Corpo.r.a..t.e.. .F..u..n..d..a..m...e..n..t.a..l. .D..a..t.a.. .............................................................................................. 76 2 Econo.m...i.c.. .I.n..d..i.c.a..t.o..r.. .D..a..t.a.. ..................................................................................................... 78 3 Marke.t. .S..e..n..t.i.m...e..n..t. .D..a..t.a.. ........................................................................................................ 79 4 GICS D..a..t.a.. ............................................................................................................................ 80 5 Equity. .S..u..m...m...a..r.y.. .S..c..o..r.e.. ........................................................................................................ 82 Part IX Multi-Time Frame Analysis 84 1 Intrada..y../.I.n..t.r.a..d..a..y.. ................................................................................................................. 85 2 Intrada..y../.D..a..i.l.y.. ...................................................................................................................... 87 3 Intrada..y../.W...e..e..k..l.y..,.M...o..n..t.h..l.y. ..................................................................................................... 90 4 Daily/W...e..e..k..l.y.. ....................................................................................................................... 91 5 Daily/M...o..n..t.h..l.y.. ...................................................................................................................... 92 Part X Backtesting with ChartStyles.Trending 94 1 Colum.n.. .C...l.a..s.s.. .(.R..e..f.e..r.e..n..c..e..). ................................................................................................... 95 Kagi .......................................................................................................................................................... 96 TKagi ......................................................................................................................................................... 96 Renko .......................................................................................................................................................... 97 TRenko ......................................................................................................................................................... 97 Line Break .........................................................................................................................................................
Recommended publications
  • Point and Figure Charts
    Point and Figure Charts Point-and-figure (P&F) chart is a special type of graphical analysis, which lays stress to prediction of medium-term and long-term trends. Conclusion Let’s single out advantages and disadvantages of Point and Figure charts. Point and Figure Advantages 1. P&F charts send only clear buy or sell signals without any dual nature. 2. P&F charts take into account only “important” price changes and filter out market noise. This being said, the “importance” of changes is set by a trader. 3. P&F charts are not affected by time effect, which sometimes introduces additional element of uncertainty on general charts. 4. P&F charts allow to identify support and resistance levels, and also trend lines. 5. P&F charts are very intelligible. Point and Figure Disadvantages 1. P&F charts send clear signals only for medium-term and long-term periods and are almost not intended for short-term trade. Building Point and Figure Charts The majority of the most popular charts, used for technical analysis, are built in accordance with opening price, closing price, maximum or minimum for a definite period. Only closing price for a period is used for building Point and Figure charts. Point and Figure charts consist of X and O columns, which reflect the filtered price changes. Increase in prices is shown by “X” boxes, and drop in prices is shown by “O” boxes. New boxes are created only in case of price change by the size of a box or more in one of directions.
    [Show full text]
  • 07/20/21 1 the All New Market Analysis Tim Ord, Editor 16928 Van
    07/20/21 The All New Market Analysis Tim Ord, Editor 16928 Van Dorn Street Walton, Nebraska 68461 www.ord-oracle.com (402) 413-0980 . [email protected] SPX Monitoring purposes; Sold 7/20/21 SPX 4325= gain .08%; long SPX 6/28/21 at 4290.61. Monitoring purposes GOLD: Long GDX on 10/9/20 at 40.78. Long Term SPX monitor purposes; Neutral We have "800" phone update that cost $6.00 per call, and billed to a credit card. Call (1-970-586-4760) for sign up. We update Eastern Time at 9:45 and 4:10. Question? Call (402) 413-0980. Yesterday we said, “CNN Fear Creed indicator closed 18 (https://money.cnn.com/data/fear-and-greed/ ); readings below 20 have marked lows and at least near lows in the past. The 2 day TRIN closed today at 3.37; reading above 3.00 are bullish. The TRIN is showing there is panic in the market. Also the tick closed at -209 and the TRIN closed at 1.58 today and that combination has been bullish short term. Today’s surge in volume suggests a “Selling Climax”. Most likely there will be a bounce short term that may find resistance on today’s down gap. If the 1 Signals are provided as general information only and are not investment recommendations. You are responsible for your own investment decisions. Past performance does not guarantee future performance. Opinions are based on historical research and data believed reliable, there is no guarantee results will be profitable. Not responsible for errors or omissions.
    [Show full text]
  • Nikkei 225 Kagi Chart with MACD Applied (Charts: Tradingview)
    Kagi What is it? • Created in Japan, • Been around since 1870’s. • Used to give a much more transparent picture of where the price of an individual asset was headed independent of time. • Ignores time and focus solely on price changes that meet a minimum requirement. • Great for taking the ‘noise’ out of the charts; another great ‘psychological’ helping chart! • Instead of using 'X's and O's like point and figure charts, the Kagi chart simply uses lines. These lines are known as the Yin and Yang lines. • The other fundamental concept of these charts, is that of the reversal in price. The lines change direction once the price moves a set amount. 1 Below you can see a typical example based on the S&P500 stock index (Charts: TradingView). In this example the thicker black line signifies up bullish periods (Yang line) and the thinner red line signifies bearish periods (Yin Line): 2 Also take a look at the same period on the Kagi S&P 500 chart versus the traditional candlestick chart S&P 500 chart. See how much less noise there is on the Kagi chart (Charts: TradingView): 3 Basics: • It is the study of pure price movement i.e. it doesn’t take into consideration ‘time’ when constructing its charts. • Uses simple lines known as ‘Yin’ and ‘Yang’ to measure price. • The lines change direction once the price moves a set amount. • Kagi charting is all about the price reversal. • Normally: Black (thicker) lines indicate bullish periods (Yang Line), Red (thin) lines signify bearish periods (Yin Line) • In my examples: Going Black to Red = Sell, Going Red to Black = Buy 4 Construction: • Step 1 is to calculate the reversal amount.
    [Show full text]
  • Active Portfolio Management
    Active Portfolio Management Charting • Technical analysts are sometimes called chartists because they study records or charts of past stock-prices and trading volume, hoping to find patterns they can exploit to make a profit. • We examine next several specific charting strategies. Christos A. Ioannou 2/27 The Dow Theory • The Dow Theory, named after its creator Charles Dow (who established The Wall Street Journal), is the grandfather of most technical analysis. • The aim of the Dow theory is to identify long-term trends in stock market prices. • The two indicators used are the Dow Jones Industrial Average (DJIA) and the Dow Jones Transportation Average (DJTA). The DJIA is the key indicator of underlying trends, while the DJTA usually serves as a check to confirm or reject that signal. Christos A. Ioannou 3/27 The Dow Theory (Cont.) The Dow theory posits three forces simultaneously affecting stock prices: 1 The primary trend is the long-term movement of prices, lasting from several months to several years. 2 Secondary or intermediate trends are caused by short-term deviations of prices from the underlying trend line. These deviations are eliminated via corrections when prices revert back to trend values. 3 Tertiary or minor trends are daily fluctuations of little importance. Christos A. Ioannou 4/27 bod10773_ch19.qxd 11/12/2002 11:37 AM Page 661 19 Behavioral Finance and Technical Analysis 661 The Dow Theory The Dow theory, named after its creator Charles Dow (who established The Wall Street Jour- Dow theory nal), is the grandfather of most technical analysis. While most technicians today would view A technique that the theory as dated, the approach of many more statistically sophisticated methods are essen- attempts to discern tially variants of Dow’s approach.
    [Show full text]
  • Top 7 Market Breadth Indicators for Day Traders
    Top 7 Market Breadth Indicators for Day Traders Day trading at the end of the day comes down to timing. Funny how the smaller the time frame you trade, the more accuracy is required of you the trader. I cannot tell you how many times I opened a position 5 minutes too soon or closed a minute early. We are literally talking about seconds here and the difference between a profitable or losing trade. To help improve timing, day traders will heavily rely on time and sales and level 2. However, understanding how the broad market is moving can help you stay on the right side of the market. For example, if you were long a stock in the Nikkei the night of the 2016 presidential election results came in with Trump as the winner, you were just blindsided. It wasn’t that you picked the wrong stock or anything. The Nikkei shot lower across the board due to the election results, only to rally by the close. Well, in this article we will cover these market breadth indicators and how you can use them to improve the accuracy of your trading. Top 7 Market Breadth Indicators for Day Traders It’s not an official TradingSim post if we do not provide a top 10 list. #1 – TICK Index The TICK Index is a measurement of the short-term bias of the overall market and is one of the most important tools for day trading. It measures the difference between the number of stocks on the NYSE that have registered an uptick versus the number of stocks that have registered a downtick.
    [Show full text]
  • Point and Figure Relative Strength Signals
    February 2016 Point and Figure Relative Strength Signals JOHN LEWIS / CMT, Dorsey, Wright & Associates Relative Strength, also known as momentum, has been proven to be one of the premier investment factors in use today. Numerous studies by both academics and investment ABOUT US professionals have demonstrated that winning securities continue to outperform. This phenomenon has been found Dorsey, Wright & Associates, a Nasdaq Company, is a in equity markets all over the globe as well as commodity registered investment advisory firm based in Richmond, markets and in asset allocation strategies. Momentum works Virginia. Since 1987, Dorsey Wright has been a leading well within and across markets. advisor to financial professionals on Wall Street and investment managers worldwide. Relative Strength strategies focus on purchasing securities that have already demonstrated the ability to outperform Dorsey Wright offers comprehensive investment research a broad market benchmark or the other securities in the and analysis through their Global Technical Research Platform investment universe. As a result, a momentum strategy and provides research, modeling and indexes that apply requires investors to purchase securities that have already Dorsey Wright’s expertise in Relative Strength to various appreciated quite a bit in price. financial products including exchange-traded funds, mutual funds, UITs, structured products, and separately managed There are many different ways to calculate and quantify accounts. Dorsey Wright’s expertise is technical analysis. The momentum. This is similar to a value strategy. There are Company uses Point and Figure Charting, Relative Strength many different metrics that can be used to determine a Analysis, and numerous other tools to analyze market data security’s value.
    [Show full text]
  • Course Brochure
    IFMC INSTITUTE COURSE BROCHURE IFMC BRANCHES NOIDA VAISHALI LAJPAT NORTH CAMPUS GHAZIABAD NAGAR (DELHI) (DELHI) MAAN SINGH SHOP No. - 3, RELIANCE PLAZA, E-90, COMPLEX SECTOR BACK PORTION, PLOT No. 3, FIRST 15 MAIN ROAD, VIJAY NAGAR SINGLE IInd FLOOR, 2, FLOOR, LAJPAT NEXT TO BHAGMAL STOREY NEAR NDPL NAGAR 1, COMPLEX NEAR Mc SECTOR 4, OFFICE NEW DELHI - 110024 DONALD VAISHALI, GHAZIABAD, NEW DELHI - 110009 PH: +919810216889 SECTOR 16, UTTAR PRADESH - PH: 0981060777 +91-810260089 NOIDA – 201301 201012 PH: +919810216889 PH: 9650066987 CONTENTS Technical Analysis Course ....................................................................................................................... 3 Quickest Way to Deal with Stock Market Losses ................................................................................ 3 What is Technical Analysis Course? .................................................................................................... 3 Technical Analysis Meaning: ............................................................................................................... 3 Learning Outcome: .......................................................................................................................... 4 Course Methodology: ..................................................................................................................... 4 Eligibility: ......................................................................................................................................... 5 Career Opportunity:
    [Show full text]
  • Lesson 12 Technical Analysis
    Lesson 12 Technical Analysis Instructor: Rick Phillips 702-575-6666 [email protected] Course Description and Learning Objectives Course Description Learn what technical analysis entails and the various ways to analyze the markets using this type of analysis Lessons and Learning Objectives ▪ Define technical analysis ▪ Explore the history of technical analysis ▪ Examine the accuracy of technical analysis ▪ Compare technical analysis to fundamental analysis ▪ Outline different types of technical studies ▪ Study tools and systems which provide technical analysis 2 What is Technical Analysis Short Description: Using the past to predict the future Long Description: A way to analyze securities price patterns, movements, and trends to extrapolate the ranges of potential future prices 3 History of Technical Analysis The principles of technical analysis are derived from hundreds of years of financial market data. Some aspects of technical analysis began to appear in Amsterdam-based merchant Joseph de la Vega's accounts of the Dutch financial markets in the 17th century. In Asia, technical analysis is said to be a method developed by Homma Munehisa during the early 18th century which evolved into the use of candlestick techniques, and is today a technical analysis charting tool. In the 1920s and 1930s, Richard W. Schabacker published several books which continued the work of Charles Dow and William Peter Hamilton in their books Stock Market Theory and Practice and Technical Market Analysis. In 1948, Robert D. Edwards and John Magee published Technical Analysis of Stock Trends which is widely considered to be one of the seminal works of the discipline. It is exclusively concerned with trend analysis and chart patterns and remains in use to the present.
    [Show full text]
  • Bullish Percent Index – See How to Time Bull and Bear Markets
    Bullish percent index – See How to Time Bull and Bear Markets We can all agree that the bullish percent index (BPI) is a market breadth indicator that we can use to gauge market health. But is the indicator something you should use when trading? More importantly, if you do use the indicator when trading, when and how should you place your orders. Wellin this post, we will dissect how the BPI can be used to navigate the waters and some specific techniques you can use to increase your odds. Why Should You Care About the BPI? The BPI indicator is calculated by taking the total number of issues in an index or industry that are generating point and figure buy signals and dividing it by the total number of stocks in that group. The basic rule for using the bullish percent index is when the BPI is above 70%, the market is overbought, and conversely, when the indicator is below 30%, the market is oversold. The most popular BPI is the NYSE Bullish Percent Index, which is the tool of choice for famed point and figure analyst, Thomas Dorsey. The bullish percent index is generally plotted on with a two-point box size. Later in this article, we will cover how to confirm bull and bear markets. Bullish percent index or BPI for short might seem as just another fancy name for a market breadth indicator. Between the BPI and many other similar indicators, one might wonder the need to use this indicator. Well, the BPI is an indicator for the stock markets which is quite unique.
    [Show full text]
  • Investing with Volume Analysis
    Praise for Investing with Volume Analysis “Investing with Volume Analysis is a compelling read on the critical role that changing volume patterns play on predicting stock price movement. As buyers and sellers vie for dominance over price, volume analysis is a divining rod of profitable insight, helping to focus the serious investor on where profit can be realized and risk avoided.” —Walter A. Row, III, CFA, Vice President, Portfolio Manager, Eaton Vance Management “In Investing with Volume Analysis, Buff builds a strong case for giving more attention to volume. This book gives a broad overview of volume diagnostic measures and includes several references to academic studies underpinning the importance of volume analysis. Maybe most importantly, it gives insight into the Volume Price Confirmation Indicator (VPCI), an indicator Buff developed to more accurately gauge investor participation when moving averages reveal price trends. The reader will find out how to calculate the VPCI and how to use it to evaluate the health of existing trends.” —Dr. John Zietlow, D.B.A., CTP, Professor of Finance, Malone University (Canton, OH) “In Investing with Volume Analysis, the reader … should be prepared to discover a trove of new ground-breaking innovations and ideas for revolutionizing volume analysis. Whether it is his new Capital Weighted Volume, Trend Trust Indicator, or Anti-Volume Stop Loss method, Buff offers the reader new ideas and tools unavailable anywhere else.” —From the Foreword by Jerry E. Blythe, Market Analyst, President of Winthrop Associates, and Founder of Blythe Investment Counsel “Over the years, with all the advancements in computing power and analysis tools, one of the most important tools of analysis, volume, has been sadly neglected.
    [Show full text]
  • The Complete Guide to Market Breadth Indicators 00Morris-FM 8/11/05 5:57 PM Page Ii 00Morris-FM 8/11/05 5:57 PM Page Iii
    00Morris-FM 8/11/05 5:57 PM Page i The Complete Guide to Market Breadth Indicators 00Morris-FM 8/11/05 5:57 PM Page ii 00Morris-FM 8/11/05 5:57 PM Page iii The Complete Guide to Market Breadth Indicators How to Analyze and Evaluate Market Direction and Strength Gregory L. Morris McGraw-Hill New York Chicago San Francisco Lisbon London Madrid Mexico City Milan New Delhi San Juan Seoul Singapore Sydney Toronto 00Morris-FM 8/11/05 5:57 PM Page iv Copyright © 2006 by The McGraw-Hill Companies. All rights reserved. Printed in the United States of America. Except as permitted under the United States Copyright Act of 1976, no part of this publication may be reproduced or dis- tributed in any form or by any means, or stored in a data base or retrieval sys- tem, without the prior written permission of the publisher. 1 2 3 4 5 6 7 8 9 0 DOC/DOC 0 9 8 7 6 ISBN 0-07-144443-2 McGraw-Hill books are available at special quantity discounts to use as pre- miums and sales promotions, or for use in corporate training programs. For more information, please write to the Director of Special Sales, Professional Publishing, McGraw-Hill, Two Penn Plaza, New York, NY 10121-2298. Or con- tact your local bookstore. This publication is designed to provide accurate and authoritative information in regard to the subject matter covered. It is sold with the understanding that neither the author nor the publisher is engaged in rendering legal, accounting, or other professional service.
    [Show full text]
  • Technical Analysis Explained by Martin J
    Contents Contents ........................................................................................................................................................ 1 Introduction .................................................................................................................................................. 3 Chapter I ........................................................................................................................................................ 4 What is Technical Analysis?....................................................................................................................... 4 1.1 Definition of Technical Analysis ...................................................................................................... 4 1.2. Philosophy of Technical Analysis .................................................................................................... 4 1.3. Technical Analysis vs. Fundamental Analysis ................................................................................. 5 1.4. Technician or Chartist? Is There Any Difference? .......................................................................... 6 1.5. Different Theories on Technical Analysis ....................................................................................... 6 Chapter II ....................................................................................................................................................... 8 Trend In Terms of Technical Analysis .......................................................................................................
    [Show full text]