Wealthscript Programming Guide
Total Page:16
File Type:pdf, Size:1020Kb
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 .........................................................................................................................................................