SlideShare a Scribd company logo
5
Most read
AFL2DLL: Conversion of AmiBroker AFL into C/C++ DLL Plugin
(Low cost conversion of AFL to DLL)
Contents:
 Background
 Our Service
o AFL Plugin Development & Training
o Example Plugins
 Magnetic Dynamic Levels Plugin
 Magic Trend Indicator
 Candle Patterns Plugin
 ORB (Open Range Breakout) plugin.
o Theory
 Description of the Library
 Debugging of plugin using Visual Studio Platform
 Example code
o Contact : AFL2DLL@GMAIL.COM
o http://bit.ly/2mQSxGw
Background:
AmiBroker is an advanced technical analysis software developed by the one-man developer genius Dr. Tomasz
Janeczko, and is widely respected financial instrument charting platform - used all over the planet earth!!, to
analyze stocks, futures, options, currencies, funds and various financial instruments. More about AmiBroker and its
features can be found at http://www.amibroker.com/features.html
AmiBroker supports C-Like and Python-Like array-based formula language called AmiBroker Formula
Language in short form AFL which is very powerful and speed/performance optimized and used for
writing simple indicators to complex trading systems. More on how AFL works is given here
http://www.amibroker.com/guide/h_understandafl.html
There are smart AFL programmers cum traders around the globe who want their AFL programs to be converted
into DLL to protect their business/trading logic from clients.
Our Service:
The working AFL code received from the clients will be converted into C DLL which can be used as the AmiBroker
plugin. The conversion process is very fast and the method involves the 99% direct 1-1 mapping of the raw
AFL code into C code. Refer the example below.
The cost of conversion is low with benefits compared to others in this field.
 After conversion, the unprotected DLL, single converted C code (just for reference) of the AFL will be
provided to the clients.
 The Clients if needed can protect their converted DLL using available license managers and distribute it to
their end-users/clients. We will provide guidance/training on protecting the DLL.
 The DLL protection can be either time limited or PC locked or both depending on the client requirements.
Some of the interesting plugins developed using this library.
 Magnetic Dynamic Levels Plugin: This plugin is used to display automatic dynamic intraday
magnetic levels on market opening. The plugin internally uses some specialized algorithms based on
tweaked/modified volatility. This plugin can be used for any heavily traded financial instrument, like index,
stocks, futures, options and commodities & forex.
The plugin exports the single API where AFL writers can call this API from their code.
//<no-of-days>, <time frame>, <algorithim_type>, <index>,<style>,<thickness><ehl_flag>
_MAGIC_LEVELS( 2, inDaily, 0, 2, styleDots, 0, 0);
_MAGIC_LEVELS( 5, inDaily, 2, 2, styleDots, 0, 0);
_MAGIC_LEVELS( 3, inHourly, 2, 2, styleDashed, 0, 0);
Here are the three output 5-minute timeframe charts for NIFTY CALL options and BANKNIFTY for
different dates. The horizontal red and green parallel lines are displayed using the above API calls.
Observe how the width of the parallel lines gets adjusted automatically on market opening and stay intact
till market closing. The algorithm takes care of the GapUp and GapDown opening cases. The market reacts
sharply at these levels. You can observe how these levels can acts as a magnetic support & resistance
levels.
 Magic Trend Indicator: This plugin is used to display a indicator which is used for identify trends in
the market. The below graph shows the indicator output in 15 minutes timeframe chart.
mgiOut = MTI(0,0,0);
mgiColor = IIf(mgiOut, colorDarkGreen, colordarkRed);
Plot(mgiOut, "TI", mgiColor, ParamStyle("Style")|styleDots ,Null, Null, 0, 1, 1);
 Candle Patterns Plugin: This plugin is used for getting the candle pattern of the selected candle.
The plugin internally uses the table based approach and the performance of this plugin is multiple times
better than the raw afl script. Here is the usage and the corresponding chart of the plugin.
//CPA function returns string which is candle pattern of the selected candle.
cndleptrn = CPA();
Title += "n"+cndleptrn;
//Another Use case:
//CPS function returns the individual flags depending input integer/enum parameter
which represents the single candle pattern. The return value is true or false depending on the
selected candle. These flags are used for making trade decisions.
CP_Init();
cp_0 = CPS(CP_NearDoji);
cp_2 = CPS(CP_LongBlackCandle);
cp_6 = CPS(CP_LongWhiteCandle);
cp_26 = CPS(CP_BullishEngulfing);
cp_45 = CPS(CP_StrongBullishHarami);
cp_48 = CPS(CP_TweezerBOTTOM);
cp_49 = CPS(CP_TweezerTOP);
cp_55 = CPS(CP_InvertedHammer2);
cp_13 = CPS(CP_HangingMan);
cp_14 = CPS(CP_Hammer);
cp_29 = CPS(CP_ThreeInsideUpPattern);
cp_13_14 = cp_13 OR cp_14;
 ORB (Open Range Breakout Plugin): This plugin is used for plotting time based parallel lines as
shown in the figure below.
//15 Minutes Range lines:
Plot( C, "Price", colorDefault, styleCandle );
MGORB(in15Minute);
Theory:
Provided highly optimized C/C++library ( on the top of AmiBroker ADK ) which acts as a platform to edit/build
Amibroker AFL scripts. One can virtually “cut and paste” the raw AFL script directly into the C . Since AFL
language is typeless, the only challenging task after copying the script into the C /C++, need t o identify the array
type and number type variables and declare them inside C accordingly. Build the C code and create a DLL. Use it
as a amibroker plugin!.
Features:
 No Managed code
 Say Goodbye to StaticVarSet StaticVarGet (AmiBroker functions) funct ions!!...
 Use structures/classes , unions, static/un-named namespace variables inside C/C++ based AFL
code. Amibroker AFL does not support these.
 Use multithreaded architecture with C/C++ AFL to design trading systems and money management
rules.
 Interface other high performance math libraries with C/C++ based AFL script.
 Interface Artificial Intelligence (Neural network) code and other machine learning code very easily.
 Interface STL library.
 Performance is almost equal and in some cases greater than t hat of AFL scripts.
 MOST importantly debug the AFL code inside Visual Studio! .
 Bypass AmiBroker FrontEnd and route your data to your own charting software by still using
AmiBroker Builtin highly optimized functions.
I spent 9 months effort to develop this bug free library code. Do not try to re-invent the wheel. Use this library
Example: The below graph is displayed on AmiBroker by calling single AFL entry function
RTDF_AFL2C_DEMO1_PLOTOHLC(O,H,L,C) which is implemented inside the C DLL.
The AFL code and its equivalent C/C++ code is given below. Observe the code between _SECTION_BEGIN and _SECTION_END
blocks !! and spot the differences! 
Debugging the Plugin:
The below image show how the debugging session of the plugin is done with the visual studio.
Contact:
Contact AFL2DLL@GMAIL.COM , +91-9986180746 for further details.

More Related Content

PPTX
Forex
Rahat Chowdhury
 
PDF
Forex business Ooverview.pdf
Abinash Mandilwar
 
PPTX
Investment Banking Operations - Trade life cycle.pptx
Sri Ramakrishna College of Arts and Science
 
PDF
SMC.pdf
darkpoet1666
 
PDF
04 LIQUIDITY CONCEPTS@SmartMoney_Mindset.pdf
OTHMANKHALIFI3
 
PPT
Forex trade presentation
Buddhapratap Rathore
 
PDF
Trade what you see not what you think
Ninja Tan
 
PDF
Nuts And Bolts Of Derivatives.Pdf
Pankaj Gulati
 
Forex business Ooverview.pdf
Abinash Mandilwar
 
Investment Banking Operations - Trade life cycle.pptx
Sri Ramakrishna College of Arts and Science
 
SMC.pdf
darkpoet1666
 
04 LIQUIDITY CONCEPTS@SmartMoney_Mindset.pdf
OTHMANKHALIFI3
 
Forex trade presentation
Buddhapratap Rathore
 
Trade what you see not what you think
Ninja Tan
 
Nuts And Bolts Of Derivatives.Pdf
Pankaj Gulati
 

What's hot (20)

PPTX
SMC structure.pptx
Tan Ngoc
 
PPTX
Trading procedure
Kiran Reddy
 
PDF
HOW TO BECOME A FOREX EXPERT IN 4 WEEKS
charles osigwe
 
PPTX
Derivatives
Sajna Fathima
 
PPT
Intraday Trading Strategy FINAL.ppt
VIJAYBHILWADE1
 
PPTX
Trading PPT.pptx
sagar129635
 
PDF
Forex trading online
Jean Claude Rwubahuka
 
PDF
Trading plan
pipsumo traderfx
 
PPT
Derivative Market
hari krishnan.n
 
PPTX
Margin Trading
Nicholas Sudan
 
PPTX
Price action pattern chart
William Perkasa
 
PPTX
Hedging mechanism and risk management in Commodities
Marketcalls
 
PPT
23512555 trade-life-cycle
ahaline
 
PPT
Introduction to Technical Analysis
mediafin
 
PDF
Smart-Money for SMC traders good time and ICT
simonomuemu
 
PPTX
Candlestick patterns
nattyvirk
 
PPT
16 Stock trading strategies
Amey
 
PDF
Crypto trading - the basics
Andrew Nikishaev
 
PDF
Hanzo Shawdow Codes.pdf
HungLe593957
 
SMC structure.pptx
Tan Ngoc
 
Trading procedure
Kiran Reddy
 
HOW TO BECOME A FOREX EXPERT IN 4 WEEKS
charles osigwe
 
Derivatives
Sajna Fathima
 
Intraday Trading Strategy FINAL.ppt
VIJAYBHILWADE1
 
Trading PPT.pptx
sagar129635
 
Forex trading online
Jean Claude Rwubahuka
 
Trading plan
pipsumo traderfx
 
Derivative Market
hari krishnan.n
 
Margin Trading
Nicholas Sudan
 
Price action pattern chart
William Perkasa
 
Hedging mechanism and risk management in Commodities
Marketcalls
 
23512555 trade-life-cycle
ahaline
 
Introduction to Technical Analysis
mediafin
 
Smart-Money for SMC traders good time and ICT
simonomuemu
 
Candlestick patterns
nattyvirk
 
16 Stock trading strategies
Amey
 
Crypto trading - the basics
Andrew Nikishaev
 
Hanzo Shawdow Codes.pdf
HungLe593957
 
Ad

Viewers also liked (20)

PPTX
Monte Carlo Simulation for Trading System in AmiBroker
ThaiQuants
 
PDF
AmiBroker ApplyStop Introduction
ThaiQuants
 
PPTX
Amibroker afl coding 28th atma bengaluru meet
Marketcalls
 
PDF
Understand Foreign Equity in AmiBroker
ThaiQuants
 
PDF
AmiBroker Buy sell target & stop loss trading signals software for equity, co...
Vishnu Kumar
 
PPTX
Coimbatore amibroker workshop 2014
Marketcalls
 
PPTX
Fichasnemotcnicas 141029225008-conversion-gate02
Diego Martinez
 
PDF
Portafolio estudiantil 2017 2018
Diego Martinez
 
PPTX
3Com 3C905B-TX-15
savomir
 
PPTX
Amibroker AFL Coding - Webinar
Marketcalls
 
PPTX
Children's presentation1
Monica Eppinger
 
PDF
SI-PI, Noviyanti Alawiyah, Hapzi Ali, Sistem Informasi dalam Kegiatan Bisnis,...
Noviyanti Alawiyah
 
PDF
Caderno do professor de geografia 5ª série 6 º ano vol 2
Neide Marques
 
PPTX
18. Jesús carga la cruz (10-11 a.m)
Lorena Gomez
 
PPTX
[패스트캠퍼스] 애자일,누굴 위한 것인가
FAST CAMPUS
 
PDF
[패스트캠퍼스] 애자일에 대한 오해와 진실
FAST CAMPUS
 
PDF
Research Tools for Research Cycle: From SEARCH to DISSEMINATION
Nader Ale Ebrahim
 
PDF
[Aurora事例祭り]毎日新聞ニュースサイトをクラウド化 ~Amazon Aurora 導入事例紹介~
Amazon Web Services Japan
 
PPT
Technical Analysis Rudramurthy
Gorani & Associates
 
PPT
28.02фотоотчет профессилнал должен быть здоровым
школа
 
Monte Carlo Simulation for Trading System in AmiBroker
ThaiQuants
 
AmiBroker ApplyStop Introduction
ThaiQuants
 
Amibroker afl coding 28th atma bengaluru meet
Marketcalls
 
Understand Foreign Equity in AmiBroker
ThaiQuants
 
AmiBroker Buy sell target & stop loss trading signals software for equity, co...
Vishnu Kumar
 
Coimbatore amibroker workshop 2014
Marketcalls
 
Fichasnemotcnicas 141029225008-conversion-gate02
Diego Martinez
 
Portafolio estudiantil 2017 2018
Diego Martinez
 
3Com 3C905B-TX-15
savomir
 
Amibroker AFL Coding - Webinar
Marketcalls
 
Children's presentation1
Monica Eppinger
 
SI-PI, Noviyanti Alawiyah, Hapzi Ali, Sistem Informasi dalam Kegiatan Bisnis,...
Noviyanti Alawiyah
 
Caderno do professor de geografia 5ª série 6 º ano vol 2
Neide Marques
 
18. Jesús carga la cruz (10-11 a.m)
Lorena Gomez
 
[패스트캠퍼스] 애자일,누굴 위한 것인가
FAST CAMPUS
 
[패스트캠퍼스] 애자일에 대한 오해와 진실
FAST CAMPUS
 
Research Tools for Research Cycle: From SEARCH to DISSEMINATION
Nader Ale Ebrahim
 
[Aurora事例祭り]毎日新聞ニュースサイトをクラウド化 ~Amazon Aurora 導入事例紹介~
Amazon Web Services Japan
 
Technical Analysis Rudramurthy
Gorani & Associates
 
28.02фотоотчет профессилнал должен быть здоровым
школа
 
Ad

Similar to AmiBroker AFL to DLL Conversion (20)

PPTX
Intermediate Representation in Compiler Construction
theizm1
 
PPTX
Embedded C.pptx
MusthafaKadersha
 
PPTX
GCC RTL and Machine Description
Priyatham Bollimpalli
 
PDF
Writing c code for the 8051
Quản Minh Tú
 
PDF
426 lecture 4: AR Developer Tools
Mark Billinghurst
 
PPTX
Unit-2.pptx
sidhantkulkarni1
 
PPTX
06 chapter03 04_control_logix_tags_memory_structure_fa16
John Todora
 
PDF
this is lab 1 of course embedded system.
hiraambreen2002
 
PPT
Cocomo Model Presentation Software Engineering, MAKUT
allpurposeuse2024
 
PPT
Introduction to 2D/3D Graphics
Prabindh Sundareson
 
PDF
PRELIM-Lesson-2.pdf
jaymaraltamera
 
PDF
MIGHTY MACROS AND POWERFUL PARAMETERS: MAXIMIZING EFFICIENCY AND FLEXIBILITY ...
VLSICS Design
 
PDF
MIGHTY MACROS AND POWERFUL PARAMETERS: MAXIMIZING EFFICIENCY AND FLEXIBILITY ...
VLSICS Design
 
PDF
The Ring programming language version 1.2 book - Part 59 of 84
Mahmoud Samir Fayed
 
PPTX
Altova NIEM keynote
Alexander Falk
 
PDF
The Ring programming language version 1.4 book - Part 22 of 30
Mahmoud Samir Fayed
 
PDF
Webinar: Começando seus trabalhos com Machine Learning utilizando ferramentas...
Embarcados
 
PDF
The Ring programming language version 1.3 book - Part 62 of 88
Mahmoud Samir Fayed
 
PDF
RTI-CODES+ISSS-2012-Submission-1
Serge Amougou
 
PPTX
Apex and design pattern
Rosario Renga
 
Intermediate Representation in Compiler Construction
theizm1
 
Embedded C.pptx
MusthafaKadersha
 
GCC RTL and Machine Description
Priyatham Bollimpalli
 
Writing c code for the 8051
Quản Minh Tú
 
426 lecture 4: AR Developer Tools
Mark Billinghurst
 
Unit-2.pptx
sidhantkulkarni1
 
06 chapter03 04_control_logix_tags_memory_structure_fa16
John Todora
 
this is lab 1 of course embedded system.
hiraambreen2002
 
Cocomo Model Presentation Software Engineering, MAKUT
allpurposeuse2024
 
Introduction to 2D/3D Graphics
Prabindh Sundareson
 
PRELIM-Lesson-2.pdf
jaymaraltamera
 
MIGHTY MACROS AND POWERFUL PARAMETERS: MAXIMIZING EFFICIENCY AND FLEXIBILITY ...
VLSICS Design
 
MIGHTY MACROS AND POWERFUL PARAMETERS: MAXIMIZING EFFICIENCY AND FLEXIBILITY ...
VLSICS Design
 
The Ring programming language version 1.2 book - Part 59 of 84
Mahmoud Samir Fayed
 
Altova NIEM keynote
Alexander Falk
 
The Ring programming language version 1.4 book - Part 22 of 30
Mahmoud Samir Fayed
 
Webinar: Começando seus trabalhos com Machine Learning utilizando ferramentas...
Embarcados
 
The Ring programming language version 1.3 book - Part 62 of 88
Mahmoud Samir Fayed
 
RTI-CODES+ISSS-2012-Submission-1
Serge Amougou
 
Apex and design pattern
Rosario Renga
 

Recently uploaded (20)

PDF
Salesforce Implementation Services Provider.pdf
VALiNTRY360
 
PDF
ChatPharo: an Open Architecture for Understanding How to Talk Live to LLMs
ESUG
 
PPT
Activate_Methodology_Summary presentatio
annapureddyn
 
PPTX
Odoo Integration Services by Candidroot Solutions
CandidRoot Solutions Private Limited
 
PDF
Generating Union types w/ Static Analysis
K. Matthew Dupree
 
PDF
Applitools Platform Pulse: What's New and What's Coming - July 2025
Applitools
 
PDF
Immersive experiences: what Pharo users do!
ESUG
 
PDF
Download iTop VPN Free 6.1.0.5882 Crack Full Activated Pre Latest 2025
imang66g
 
PDF
New Download FL Studio Crack Full Version [Latest 2025]
imang66g
 
PPTX
Maximizing Revenue with Marketo Measure: A Deep Dive into Multi-Touch Attribu...
bbedford2
 
PDF
Key Features to Look for in Arizona App Development Services
Net-Craft.com
 
PPTX
Visualising Data with Scatterplots in IBM SPSS Statistics.pptx
Version 1 Analytics
 
PPTX
Presentation about variables and constant.pptx
safalsingh810
 
PDF
Exploring AI Agents in Process Industries
amoreira6
 
PDF
Bandai Playdia The Book - David Glotz
BluePanther6
 
PPTX
ConcordeApp: Engineering Global Impact & Unlocking Billions in Event ROI with AI
chastechaste14
 
DOCX
Can You Build Dashboards Using Open Source Visualization Tool.docx
Varsha Nayak
 
PDF
10 posting ideas for community engagement with AI prompts
Pankaj Taneja
 
PDF
Balancing Resource Capacity and Workloads with OnePlan – Avoid Overloading Te...
OnePlan Solutions
 
PPTX
TRAVEL APIs | WHITE LABEL TRAVEL API | TOP TRAVEL APIs
philipnathen82
 
Salesforce Implementation Services Provider.pdf
VALiNTRY360
 
ChatPharo: an Open Architecture for Understanding How to Talk Live to LLMs
ESUG
 
Activate_Methodology_Summary presentatio
annapureddyn
 
Odoo Integration Services by Candidroot Solutions
CandidRoot Solutions Private Limited
 
Generating Union types w/ Static Analysis
K. Matthew Dupree
 
Applitools Platform Pulse: What's New and What's Coming - July 2025
Applitools
 
Immersive experiences: what Pharo users do!
ESUG
 
Download iTop VPN Free 6.1.0.5882 Crack Full Activated Pre Latest 2025
imang66g
 
New Download FL Studio Crack Full Version [Latest 2025]
imang66g
 
Maximizing Revenue with Marketo Measure: A Deep Dive into Multi-Touch Attribu...
bbedford2
 
Key Features to Look for in Arizona App Development Services
Net-Craft.com
 
Visualising Data with Scatterplots in IBM SPSS Statistics.pptx
Version 1 Analytics
 
Presentation about variables and constant.pptx
safalsingh810
 
Exploring AI Agents in Process Industries
amoreira6
 
Bandai Playdia The Book - David Glotz
BluePanther6
 
ConcordeApp: Engineering Global Impact & Unlocking Billions in Event ROI with AI
chastechaste14
 
Can You Build Dashboards Using Open Source Visualization Tool.docx
Varsha Nayak
 
10 posting ideas for community engagement with AI prompts
Pankaj Taneja
 
Balancing Resource Capacity and Workloads with OnePlan – Avoid Overloading Te...
OnePlan Solutions
 
TRAVEL APIs | WHITE LABEL TRAVEL API | TOP TRAVEL APIs
philipnathen82
 

AmiBroker AFL to DLL Conversion

  • 1. AFL2DLL: Conversion of AmiBroker AFL into C/C++ DLL Plugin (Low cost conversion of AFL to DLL) Contents:  Background  Our Service o AFL Plugin Development & Training o Example Plugins  Magnetic Dynamic Levels Plugin  Magic Trend Indicator  Candle Patterns Plugin  ORB (Open Range Breakout) plugin. o Theory  Description of the Library  Debugging of plugin using Visual Studio Platform  Example code o Contact : [email protected] o http://bit.ly/2mQSxGw Background: AmiBroker is an advanced technical analysis software developed by the one-man developer genius Dr. Tomasz Janeczko, and is widely respected financial instrument charting platform - used all over the planet earth!!, to analyze stocks, futures, options, currencies, funds and various financial instruments. More about AmiBroker and its features can be found at http://www.amibroker.com/features.html AmiBroker supports C-Like and Python-Like array-based formula language called AmiBroker Formula Language in short form AFL which is very powerful and speed/performance optimized and used for writing simple indicators to complex trading systems. More on how AFL works is given here http://www.amibroker.com/guide/h_understandafl.html There are smart AFL programmers cum traders around the globe who want their AFL programs to be converted into DLL to protect their business/trading logic from clients. Our Service: The working AFL code received from the clients will be converted into C DLL which can be used as the AmiBroker plugin. The conversion process is very fast and the method involves the 99% direct 1-1 mapping of the raw AFL code into C code. Refer the example below. The cost of conversion is low with benefits compared to others in this field.  After conversion, the unprotected DLL, single converted C code (just for reference) of the AFL will be provided to the clients.  The Clients if needed can protect their converted DLL using available license managers and distribute it to their end-users/clients. We will provide guidance/training on protecting the DLL.  The DLL protection can be either time limited or PC locked or both depending on the client requirements. Some of the interesting plugins developed using this library.  Magnetic Dynamic Levels Plugin: This plugin is used to display automatic dynamic intraday magnetic levels on market opening. The plugin internally uses some specialized algorithms based on tweaked/modified volatility. This plugin can be used for any heavily traded financial instrument, like index, stocks, futures, options and commodities & forex. The plugin exports the single API where AFL writers can call this API from their code. //<no-of-days>, <time frame>, <algorithim_type>, <index>,<style>,<thickness><ehl_flag> _MAGIC_LEVELS( 2, inDaily, 0, 2, styleDots, 0, 0); _MAGIC_LEVELS( 5, inDaily, 2, 2, styleDots, 0, 0); _MAGIC_LEVELS( 3, inHourly, 2, 2, styleDashed, 0, 0); Here are the three output 5-minute timeframe charts for NIFTY CALL options and BANKNIFTY for different dates. The horizontal red and green parallel lines are displayed using the above API calls. Observe how the width of the parallel lines gets adjusted automatically on market opening and stay intact
  • 2. till market closing. The algorithm takes care of the GapUp and GapDown opening cases. The market reacts sharply at these levels. You can observe how these levels can acts as a magnetic support & resistance levels.
  • 3.  Magic Trend Indicator: This plugin is used to display a indicator which is used for identify trends in the market. The below graph shows the indicator output in 15 minutes timeframe chart. mgiOut = MTI(0,0,0); mgiColor = IIf(mgiOut, colorDarkGreen, colordarkRed); Plot(mgiOut, "TI", mgiColor, ParamStyle("Style")|styleDots ,Null, Null, 0, 1, 1);  Candle Patterns Plugin: This plugin is used for getting the candle pattern of the selected candle. The plugin internally uses the table based approach and the performance of this plugin is multiple times better than the raw afl script. Here is the usage and the corresponding chart of the plugin. //CPA function returns string which is candle pattern of the selected candle. cndleptrn = CPA(); Title += "n"+cndleptrn; //Another Use case: //CPS function returns the individual flags depending input integer/enum parameter which represents the single candle pattern. The return value is true or false depending on the selected candle. These flags are used for making trade decisions. CP_Init(); cp_0 = CPS(CP_NearDoji); cp_2 = CPS(CP_LongBlackCandle); cp_6 = CPS(CP_LongWhiteCandle); cp_26 = CPS(CP_BullishEngulfing); cp_45 = CPS(CP_StrongBullishHarami); cp_48 = CPS(CP_TweezerBOTTOM); cp_49 = CPS(CP_TweezerTOP); cp_55 = CPS(CP_InvertedHammer2); cp_13 = CPS(CP_HangingMan); cp_14 = CPS(CP_Hammer); cp_29 = CPS(CP_ThreeInsideUpPattern); cp_13_14 = cp_13 OR cp_14;
  • 4.  ORB (Open Range Breakout Plugin): This plugin is used for plotting time based parallel lines as shown in the figure below. //15 Minutes Range lines: Plot( C, "Price", colorDefault, styleCandle ); MGORB(in15Minute); Theory: Provided highly optimized C/C++library ( on the top of AmiBroker ADK ) which acts as a platform to edit/build Amibroker AFL scripts. One can virtually “cut and paste” the raw AFL script directly into the C . Since AFL language is typeless, the only challenging task after copying the script into the C /C++, need t o identify the array type and number type variables and declare them inside C accordingly. Build the C code and create a DLL. Use it as a amibroker plugin!. Features:  No Managed code  Say Goodbye to StaticVarSet StaticVarGet (AmiBroker functions) funct ions!!...  Use structures/classes , unions, static/un-named namespace variables inside C/C++ based AFL code. Amibroker AFL does not support these.  Use multithreaded architecture with C/C++ AFL to design trading systems and money management rules.  Interface other high performance math libraries with C/C++ based AFL script.  Interface Artificial Intelligence (Neural network) code and other machine learning code very easily.  Interface STL library.  Performance is almost equal and in some cases greater than t hat of AFL scripts.  MOST importantly debug the AFL code inside Visual Studio! .  Bypass AmiBroker FrontEnd and route your data to your own charting software by still using AmiBroker Builtin highly optimized functions. I spent 9 months effort to develop this bug free library code. Do not try to re-invent the wheel. Use this library Example: The below graph is displayed on AmiBroker by calling single AFL entry function RTDF_AFL2C_DEMO1_PLOTOHLC(O,H,L,C) which is implemented inside the C DLL.
  • 5. The AFL code and its equivalent C/C++ code is given below. Observe the code between _SECTION_BEGIN and _SECTION_END blocks !! and spot the differences!  Debugging the Plugin: The below image show how the debugging session of the plugin is done with the visual studio. Contact: Contact [email protected] , +91-9986180746 for further details.