Manuale Easyscript®
Total Page:16
File Type:pdf, Size:1020Kb
EasyScript® User’s Guide for beeTrader® v 1.10.10.72 latest update: 05/02/2021 1 Table of Contents Introduction to EasyScript®.....................................................................8 Foreword...........................................................................................8 Prerequisites......................................................................................8 How This Guide Is Organized................................................................8 The EasyScript® Programming Language...............................................9 Important Concepts.............................................................................9 Boolean Logic...................................................................................10 Program Structure.............................................................................10 Functions.........................................................................................11 Parameters / Variables.......................................................................11 Vector Programming..........................................................................12 Price Gaps and Volatility.....................................................................14 Technical Analysis..............................................................................15 Primitive Variables, Constants & Parameters.............................................17 Price Vector......................................................................................17 Time Vectors.....................................................................................17 Colors Constants...............................................................................18 Chromatic Constants..........................................................................18 Basic Constants.................................................................................19 Operators Constants (used in LOOP and BARLOOP functions)...................19 Moving Averages Constants.................................................................19 Trend Constants (used in the TREND function).......................................20 Points or Percent Constants (used in Volume Oscillator indicator)..............20 Interpolation Constants (used in INTERPOLATE Function)........................20 Candlestick Patterns Constants............................................................20 Function Scripts Variables...................................................................23 Signal or Indicator Scripts Parameters..................................................24 Money Management Parameters..........................................................24 User-defined Input Variables...............................................................25 Mathematical and Logical Operators........................................................27 Mathematical Operators.........................................................................27 Multiplication (*)...............................................................................27 Division (/ or \).................................................................................27 Power (^)........................................................................................27 Substraction (-).................................................................................27 Sum (+)..........................................................................................27 Logical Operators..................................................................................27 Equal (=).........................................................................................27 Greater Than (>)...............................................................................28 Less Then (<)...................................................................................28 Greater Than Or Equal To (>=)............................................................28 Less Than Or Equal To (<=)................................................................29 Not Equal (<> or !=).........................................................................29 AND (&&).........................................................................................29 OR (||)............................................................................................30 XOR (|)............................................................................................30 2 NOT (!)............................................................................................31 EQV (&)...........................................................................................31 Primitive and Mathematical Functions......................................................32 Primitive Functions................................................................................33 AVG.................................................................................................33 AVGOF.............................................................................................33 BARLOOP.........................................................................................33 CHANGEIF........................................................................................34 COUNTIF..........................................................................................35 CROSSOVER.....................................................................................35 CROSSUNDER...................................................................................36 FOLLOWME.......................................................................................36 IF....................................................................................................37 LASTIF.............................................................................................37 LOOP...............................................................................................38 MAX................................................................................................40 MAXOF.............................................................................................40 MIN.................................................................................................40 MINOF.............................................................................................41 NTHMAXOF.......................................................................................41 NTHMINOF.......................................................................................41 PRINT..............................................................................................42 REF.................................................................................................42 SUM................................................................................................43 SUMIF.............................................................................................43 SUMOF............................................................................................43 TREND.............................................................................................44 TRUEHIGH........................................................................................44 TRUELOW.........................................................................................45 Mathematical Functions.........................................................................46 ABS or POS......................................................................................46 ABSOLUTEMAXIMUM..........................................................................46 ABSOLUTEMINIMUM..........................................................................47 ARCCOS...........................................................................................47 ARCSIN............................................................................................47 ARCTAN...........................................................................................48 CEIL................................................................................................48 COS................................................................................................48 DEGTORAD.......................................................................................49 DIV.................................................................................................49 EXP.................................................................................................49 FIRSTVALIDVALUE.............................................................................50 FLOOR.............................................................................................50 FRACPORTION..................................................................................50 INTERPOLATE...................................................................................51 INTPORTION.....................................................................................51 ISLASTBAR.......................................................................................51 LOG.................................................................................................52 3 LOG10.............................................................................................52 MOD................................................................................................52 NEG................................................................................................53