6.21.0 BETA READ ME<\/a><\/p>\nHere is a sample formula that shows basic usage of Gui* functions:<\/p>\n
GuiButton<\/span>( <\/span>"Custom button"<\/span>, <\/span>1<\/span>, <\/span>10<\/span>, <\/span>40<\/span>, <\/span>100<\/span>, <\/span>30<\/span>, <\/span>7 <\/span>);\r
<\/span>GuiButton<\/span>( <\/span>"Dynamic "<\/span>+<\/span>Date<\/span>(), <\/span>2<\/span>, <\/span>120<\/span>, <\/span>40<\/span>, <\/span>150<\/span>, <\/span>30<\/span>, <\/span>7 <\/span>);\r
<\/span>GuiButton<\/span>( <\/span>"System button"<\/span>, <\/span>3<\/span>, <\/span>320<\/span>, <\/span>40<\/span>, <\/span>100<\/span>, <\/span>30<\/span>, <\/span>7 <\/span>);\r
<\/span>GuiEdit<\/span>( <\/span>5<\/span>, <\/span>450<\/span>, <\/span>40<\/span>, <\/span>100<\/span>, <\/span>20<\/span>, <\/span>31 <\/span>);\r
\r
<\/span>GuiSetColors<\/span>( <\/span>1<\/span>, <\/span>3<\/span>, <\/span>2<\/span>, <\/span>colorRed<\/span>, <\/span>colorBlack<\/span>, <\/span>colorRed<\/span>, <\/span>colorWhite<\/span>, <\/span>colorBlue<\/span>, <\/span>colorYellow<\/span>, \r
<\/span>colorRed<\/span>, <\/span>colorBlack<\/span>, <\/span>colorYellow <\/span>);\r
\r
<\/span>GuiSetColors<\/span>( <\/span>3<\/span>, <\/span>3<\/span>, <\/span>0 <\/span>); <\/span>\/\/ default (system) look\r
\r
<\/span>editText <\/span>= <\/span>GuiGetText<\/span>( <\/span>5 <\/span>);\r
\r
<\/span>Title <\/span>= <\/span>"Text entered: " <\/span>+ <\/span>editText <\/span>+ <\/span>"\\nLast event: " <\/span>+ <\/span>GuiGetEvent<\/span>( <\/span>0<\/span>, <\/span>2 <\/span>);\r
\r
<\/span>id <\/span>= <\/span>GuiGetEvent<\/span>( <\/span>0<\/span>, <\/span>0 <\/span>);\r
<\/span>event <\/span>= <\/span>GuiGetEvent<\/span>( <\/span>0<\/span>, <\/span>1 <\/span>);\r
\r
if( <\/span>id <\/span>== <\/span>3 <\/span>&& <\/span>event <\/span>== <\/span>1 <\/span>) <\/span>GuiSetText<\/span>(<\/span>"Button clicked"<\/span>,<\/span>5<\/span>);<\/code><\/pre>\nCHANGES FOR VERSION 6.27.0<\/strong> (as compared to 6.26.0)<\/p>\n\n- AFL edit: preprocessor command (#include\/#include_once\/#pragma) are highlighted with different color to give visual clue that preprocessor command is NOT regular code\n
- AFL: #pragma enable_static_decl accepts prefix given in quotation marks (as regular string).\n
- AFL: due to changes in 6.25 BETA TimeFrameSet applied on 1-tick base interval could result in division by zero exception. Fixed.\n
- AFL: Error 66 has new meaning now. It is issued to prevent attempts to mix static declarations with old style access. Error 66. Variables with '---' prefix are inaccesible via StaticVarGet\/Set\/Remove in this formula. This prefix is reserved by #pragma ena\n
- AFL: Removed Error 66: invalid identifier from VarSet\/VarGet. Instead of issuing error message, VarGet\/VarSet automatically sanitizes invalid identifiers by replacing all characters other than digits and A-Z, a-z letters by underscore\n
- AFL: runtime tokens {chartid}, {symbol}, {interval} are now supported in #pragma enable_static_decl\n
- AFL: SetFormulaName - displays error 67 if user tries to use file-system forbidden characters for formula name\n
- AFL: StaticVarRemove() when called with EMPTY string: StaticVarRemove(\"\") nullifies all static variables declared with static keyword within given formula\n
- AFL: when declared static variable is assigned the NULL value, it will be removed from memory when formula finishes\n
- ASCII importer: importer logged \"ran of industry space\" even if it didn't. Fixed.\n
- CBT: If user called ApplyStop AND calls EnterTrade from low-level backtest and did not switch backtestRegular mode to raw mode (which should be done), backtester would automatically turn on 2nd phase stops handling to prevent crash\n
- Charts: a crash could occur if user had lots of drawn trendlines on multiple panes and some of them had start date BEFORE first available bar and RT stream was frequently updating. Fixed.\n
- Make #pragma enable_static_decl is now private functionality. This means that it will work just fine but we don't provide any help\/support except of what is written in readme\/manual\n
- New Analysis: you can now copy dates between \"From\" and \"To\" date pickers (right click menu or Ctrl+C\/Ctrl+V)\n
- UI: Bar replay From-to controls support copy-paste (right click or Ctrl+C\/Ctrl+V)\n
- UI:added preprocessor color picker in Tools->Preferences, \"Editor\"\n
- 6.27.1 fix: In 6.27.0 VarSet did not work properly. Fixed.\n
- 6.27.1 fix: Backtest: since 6.25 crash could occur if \u201cdetailed log\u201d was enabled and trade was not entered due to unsufficent funds because format string was not matching arguments. Fixed.\n<\/ol>\n
CHANGES FOR VERSION 6.26.0<\/strong> (as compared to 6.25.0)<\/p>\n\n- AFL: new static keyword: declare identifier as static variable - a little 'revolution' in static variable use, declare variable as static and use as 'regular' variable, no need to call functions\n
- AFL Editor: contrast of error location indicator on dark backgrounds increased\n
- AFL Editor: C-style comments \/* ... *\/ are now foldable in the editor\n
- AFL Editor: new menu choices View->Fold Comments \/ Unfold Comments - allow to fold\/unfold all multi-line comments (enclosed with \/* .... *\/)\n
- AFL: added constants notifyClicked, notifySetFocus, notifyKillFocus, notifyHitReturn, notifyEditChange, notifySelChange, notifyMouseEnter, notifyMouseLeave\n
- AFL: Another protection against users shooting themselves in foot, VarSet\/VarGet now displays error when you try to use characters different than A-Z, 0-9 and '_' in variable names\n
- AFL: Attempt to use single subscript on matrix variable now results in error message \"Accessing Matrix elements requires two subscript operators\"\n
- AFL: Due to the fact that Windows may send WM_MOUSEMOVE message even if mouse did not move, AmiBroker now has internal check that prevents ReqestMouseMoveRefresh from triggering if mouse position did not change\n
- AFL: GetLastOSError (for getting last error message from Windows)\n
- AFL: GuiButton and GuiToggle in native OS style use background color of the chart for small border instead of default grey\n
- AFL: GuiButton\/GuiCHeckBox\/GuiToggle\/GuiRadio support now new events MouseEnter (64) and MouseLeave(128) which detect hovering without need for constant refreshes\n
- AFL: GuiCheckBox and GuiRadio now support custom colors of text and background\n
- AFL: In 6.25 Gui* keyboard navigation interferred with delete key and possibly other shortcuts due to the way how windows works. Implemented workaround so keys are only intercepted if child window (control) has focus.\n
- AFL: In 6.25 Gui* keyboard navigation was turned on by default, now it is off by default but can be turned on if you use SetOption(\"GuiEnableKeyboard\", True )\n
- AFL: In 6.25 GuiGetCheck returned -1 on unchanged. Now it returns only 0 (unchecked) or 1 (checked)\n
- AFL: In case of Windows INET API error, Internet* functions now report Warning 507 instead of generic error 47. Warning 507 is Level-3 warning, i.e. editor-only, which means it will pop up in the formula editor, but won't break execution in runtime\n
- AFL: Now can use subscript operator [ ] on references to arrays and matrices\n
- AFL: Passing by reference does not create nested references in user-defined function calls\n
- AFL: VoiceSetRate( rate ) - sets SAPI voice (speech synthesis) rate. Rate of 0 (zero) is \"normal\", negative is slower, positive is faster (allowable range -10..+10)\n
- AFL: VoiceSetVolume( volume ) - sets SAPI voice (speech synthesis) volume (0..100)\n
- AFL: VoiceWaitUntilDone( timeout ) - waits until voice has finished speaking or specified timeout (1..100ms) has elapsed. Returns True if voice finished, False if the timeout elapsed\n
- broker.master file is saved to a new name and renamed later to avoid corruption when Windows decides to shutdown, restart or sleep during save\n
- Dev: 64-bit new compiler (VC2017) broke backward compatibility with singletons that UI lib uses causing infinite loop when High Contrast scheme was used. Workaround implemented.\n
- Misc: 64-bit: Restored correct manifest (from pre6.22) with compat records so Win 10 does not lie about version number and re-added 24-bit large PNG icon\n
- New Analysis: Added support for clickable links. If you put @link URL in any cell of Analysis result list it creates a clickable row. If you double click on the row while holding down ALT key it will open the link\n<\/ol>\n
CHANGES FOR VERSION 6.25.0<\/strong> (as compared to 6.22.0)<\/p>\n\n- 64-bit: In 6.22 the array division could produce 1ulp (units at least place) rounding errors due to too excessive new VC++2017 compiler optimizations. Workaround implemented to avoid that.\n
- Added support for formatDateTimeISON (ISO format NO dashes: YYYYMMDD for end of day and YYYYMMDD HHMMSS for intraday)\n
- AFL Editor: added one-time message \"In the Debug mode number of bars is limited to 200 bars. You can change it in Tools->Preferences, Debugger tab\" because users don't read docs\n
- AFL: ApplyStop now has 8th argument: ActivationFloor that defines the amount of profit (in dollars or percents, according to stopmode) that must be exceeded before stop is activated\n
- AFL: Gui* - controls are created in the order of occurence in AFL formula (instead shuffled or reverse as in previous version)\n
- AFL: Gui* - keyboard navigation is now enabled (you can tab between controls and use arrows to navigate control groups such as radio boxes)\n
- AFL: IsNull() accepts matrix input and returns 0 (False), i.e. \"variable is not null\" if variable is of matrix type\n
- AFL: math functions such as sin(), sqrt(), etc can now be applied to matrices (element-wise operation) (previously such attempt resulted in access violation)\n
- AFL: New feature: Passing arguments as reference (allows modification of arguments passed - easy way to return multiple values), to pass by reference use & (address-of) operator before variable identifier\n
- AFL: new function GuiCheckBox - creates check box\n
- AFL: new function GuiGetCheck( id ) - gets 'checked' or \"ON\" state of toggle, checkbox and radio buttons\n
- AFL: new function GuiRadio - creates radio button\n
- AFL: new function GuiSetCheck( id, checked ) - sets 'checked' or 'ON' state of toggle, checkbox and radio buttons\n
- AFL: new function GuiSetFont( \"fontface\", size )\n
- AFL: new function GuiToggle - creates toggle button (like normal button but it toggles between \"on\" and \"off\" state with each click)\n
- AFL: SetOption(\"OptimizeSaveParams\", True ); - turns on generation of AFL file that contains values of optimization parameters producing best result. The generated file has the same name as formula run but has .opt.afl extension\n
- AFL: When using TimeFrame functions, QuickAFL now uses ratio of requested_interval\/current_interval multipled by 30 to better estimate required bars\n
- Analysis: Detailed log displays information about ignored ScaleIn\/Outs because of insufficient funds or trade size constraints\n
- Analysis: Detailed log now displays all warnings about skipped\/ignored signals in RED color so they are easier to spot\n
- Data: when performing X:Y split and X or Y exceeded 255 the factor was incorrectly displayed (negative) in the Symbol window. Fixed.\n
- formatDateTimeISO and formatDateTimeISON added to syntax highlighter definitions\n
- Scheduler: Repeat \"Daily\" mode repeated batch run every day even if some days were unchecked. Fixed.\n
- UI: Place Order dialog - allows typing stop distances smaller than 0.1 now\n
- UI: Prefs\/Charting: Turning on \"Collapse parameter sections\" option causes all sections in Parameter window to be collapsed (NOT good idea for newbies as they wont see the controls !)\n
- Web Research: many HTML5 pages did not display properly because of the fact that web browser used old IE7 mode. Now browser uses IE11 mode at minimum for proper HTML5 rendering\n<\/ol>\n
CHANGES FOR VERSION 6.22.0<\/strong> (as compared to 6.21.0)<\/p>\n\n- 64-bit: migrated all code to new compiler VC++2017 which seems to produce better code for x64 resulting in 30...50% speed improvements for many AFL functions. The only negative seems to be much bigger runtime libs\n
- 64-bit: AFL: Sum() function 2x faster\n
- 64-bit: AFL: Max() and Min() functions 8x faster\n
- 64-bit: AFL: Ref() funciton 2x faster\n
- 64-bit: AFL: MACD(), ROC(), StDev(), LinearReg() and many other functions faster by 30-50%\n
- AFL: GetExtraData does not trigger code check and profile warning about referencing future quotes if plugin implements new GetExtraDataEx function\n
- AFL: GuiEdit complained about 2nd parameter instead of 1st (being less than zero)\n<\/ol>\n
CHANGES FOR VERSION 6.21.0<\/strong> (as compared to 6.20.1)<\/p>\n\n- AFL: decreased memory fragmentation when user changes type of variable from array to scalar and back thousands of times\n
- AFL: GuiButton( \"Text\", id, x, y, width , height , notifyflags ) - creates a button\n
- AFL: GuiEdit( id, x, y, width, height, notifyflags ); - creates an edit field\n
- AFL: GuiGetEvent( num, what = 0 )\n
- AFL: GuiGetText( id ) - get text from control\n
- AFL: GuiSetColors( idFrom, idTo, border , clrText = -1, clrBack = -1, clrBorder = -1, clrSelText = -1, clrSelBack = -1, clrSelBorder = -1, clrHoverText = -1, clrHoverBack = -1, clrHoverBorder = -1, clrDisText = -1, clrDisBack = -1, clrDisBorder = -1\n
- AFL: GuiSetText( \"text\", id ) - set text of the control\n
- AFL: RequestMouseMoveRefresh() - request formula execution \/ refresh when mouse is moved INSIDE given chart pane (so it only triggers for ONE window under the cursor)\n
- If Quote.exe is missing and AmiBroker can't do auto-update of quotes, a detailed information is displayed of where it expects Quote.exe file to be present\n
- Plugin loading changed: first AmiBroker attempts to load plugins for \"Plugins\" subfolder from where Broker.EXE file is located (new behavior) and if subfolder is NOT found, it then defaults to old behavior (using \"Plugins\" subfolder under current working\n<\/ol>\n
KNOWN ISSUES:<\/strong><\/p>\n\n- None\n<\/ol>\n
For more details, instructions and examples how to use new features see the 6.27.1 BETA READ ME<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"Stability: – regular BETA should work fine in most environments This is a BETA version. Make a backup first A new beta version (6.27.1) of AmiBroker, with lots of new AFL functionality has been released. 32-bit version: http:\/\/www.amibroker.com\/members\/bin\/ab6271beta.exe (2 271 480 bytes) 64-bit version: http:\/\/www.amibroker.com\/members\/bin\/AmiBroker6271x64.exe (10 623 744 bytes) If you can not log in […]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":[],"categories":[10,9],"tags":[],"_links":{"self":[{"href":"http:\/\/www.amibroker.com\/wordpress\/devlog\/wp-json\/wp\/v2\/posts\/1315"}],"collection":[{"href":"http:\/\/www.amibroker.com\/wordpress\/devlog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/www.amibroker.com\/wordpress\/devlog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/www.amibroker.com\/wordpress\/devlog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/www.amibroker.com\/wordpress\/devlog\/wp-json\/wp\/v2\/comments?post=1315"}],"version-history":[{"count":0,"href":"http:\/\/www.amibroker.com\/wordpress\/devlog\/wp-json\/wp\/v2\/posts\/1315\/revisions"}],"wp:attachment":[{"href":"http:\/\/www.amibroker.com\/wordpress\/devlog\/wp-json\/wp\/v2\/media?parent=1315"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/www.amibroker.com\/wordpress\/devlog\/wp-json\/wp\/v2\/categories?post=1315"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/www.amibroker.com\/wordpress\/devlog\/wp-json\/wp\/v2\/tags?post=1315"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}