Menu
  • Option Hydra
  • Training
  • Premium
  • Courses
  • Library

Marketcalls

Simply Intelligent Technical Analysis and Trading Strategies

  • Software
    • Amibroker
    • NinjaTrader 7
    • Ninjatrader 8
    • Option Action
    • Market Analyst
    • Metatrader
    • Python
    • Datafeed
  • Market Profile
    • Orderflow
  • Markets
  • Commodities
  • Forex
  • Economy
    • Banking
  • Webinars
  • Trading Lessons
    • Algo Trading
    • Infographic
    • Video
You are here: Home / Amibroker / How to Create Your First Amibroker DLL Plugin?

How to Create Your First Amibroker DLL Plugin?

November 27, 2014 by Rajandran 31 Comments

This is a very simplistic tutorial which explains how to create your own Amibroker DLL Plugin using Dot Net for Amibroker.  .Net for Amibroker is a 3rd Party SDK to Amibroker which you can use to create plugins to hide your secret afl codes, creating optimizers, data source plugins and it supports all programmable features of AmiBroker.

 
Who Should go for DLL Plugin?

1)By default Amibroker doesn’t have AFL source code protection mechanism. If you are planning to secure your secret mathematical model from others or license it and sell it to your customers.
2)Planning for Automation in Amibroker (Report Generation, Data Plugin Creation, GUI based automation). For Example TradeSender is amibroker automation program which push notification alerts to your Android Smart Phone.

Dot net for Amibroker comes with three edition(Developer, Standard and Free Edition). And the Developer Edition comes with Default templates. If you are planning to test it out then it is recommended to Install Developer Edition. .NET for AmiBroker – Developer Edition and .NET for AmiBroker – Standard Edition have a 30 days trial period. You need to have the following Skill Sets and Tools listed below

1)Amibroker Software
2)Microsoft Visual Studio. You can try out the visual studio community edition if you are an individual developer and can create paid or free apps. And Organizations can use it for contributing to open source projects, Research or in a classroom learning environment. Visual Studio Community 2013 includes all the great functionality of Visual Studio Professional 2013, designed and optimized for individual developers, students, open source contributors, and small teams.
3)Dot Net SDK for Amibroker
3)Knowledge on Amibroker AFL Programming
4)Knowledge on VC# or Visual Studio and SDK concepts.

Steps to Create your First Amibroker Plugin

1)Download the Dot Net SDK for Amibroker according to your 32bit or 64bit Amibroker Edition and Amibroker Version.
2)Open Visual Studio-> Goto New Project
3)On the Left Side Pane Goto Tempaltes -> Visual C# -> Amibroker and select Amibroker Plugin template on the right side pane
4)Now select the name of the plugin in this example it is SimplePlugin as shown below and press Ok Button

Amibroker Plugin

5)After Pressing OK it opens the default sample template which is nothing but a simple moving average function as shown below. Instead you can write your own custom functions which has to be hidden from the public.

6)Now Build the Solution or Alternatively you can press the key CTRL+SHIFT+B

Dot Net for Amibroker

This attempt will create the dll plugin files under /Amibroker/.Net for Amibroker/Assemblies where are your converted dll files has to be placed.

Dll plugin files

The Build attempt It also creates the converted AFL file which refers the dll secret functions. The AFL files are stored under /amibroker/formulas/.Net for Amibroker/SimplePlugin as shown below.

Plugin Indicator

You can notice that now SimplePluginFunc1(Close, 5); is highlighted in blue text which means amibroker recognizes the function now and refers the custom dll files.

Bingo Now you are done and now you can use the custom secret function in your regular afl files and your logic always remains hidden in the dll functions. Sample AFL shown below which plots the simple moving average which refers the secret logic SimplePluginFunc1

Simple DLL Plugin Output

For creating your own custom functions it is recommended go thro the tutorials in .Net SDK for Amibroker. It is recommended to be familiar with Amibroker, Visual Studio(C#, VB.Net) and .Net SDK Functions.

Now to License your DLL files and sell it to customers with Hardware Protection Lock or with expiry dates and licensed your .Net dll plugin by commercial protection tools like IntelliLock, CliSecure Licensing, .NET Licensing Pro, etc

Related Readings and Observations

  • [Online Workshop] Trading Strategies for Active Traders[Online Workshop] Trading Strategies for Active Traders Learn the nuances of trading/investing strategies, the art of chart reading and picking up high probability trades. It is an educational workshop for active traders focused on how to pick […]
  • How to Estimate the VWAP based settlement Close like a Pro using Amibroker?How to Estimate the VWAP based settlement Close like a Pro using Amibroker? A lot of money could be saved/earned if you are weekly option buyer/option seller out there especially if you trade the last 30minute of the trade when comes to Indian Markets.
  • Practical Approach to Amibroker AFL CodingPractical Approach to Amibroker AFL Coding Marketcalls have been a constant contributor to the trading community especially when comes to developing traders skillset on the vast array of topics most likely on the modern principles […]
  • [Premium] Trading Strategies for Active Traders – May 2019 – Recorded Webinar[Premium] Trading Strategies for Active Traders – May 2019 – Recorded Webinar Learn the nuances of trading/investing strategies, the art of chart reading and picking up high probability trades. It is an educational workshop for active traders focused on how to pick […]
  • [Premium] VLintra V5 – Bank Nifty Futures 5min Positional Trading System[Premium] VLintra V5 – Bank Nifty Futures 5min Positional Trading System Vlintra V5 is a trend following system based on VWAP + Linear regression based volatility channel with adaptive parameters based on four different volatile seasons. Vlintra V5 is part of […]
  • [Recorded Webinar] Trading Strategies for Active Traders – Mar 2019[Recorded Webinar] Trading Strategies for Active Traders – Mar 2019 Learn the nuances of trading/investing strategies, the art of chart reading and picking up high probability trades. It is an educational workshop for active traders focused on how to pick […]

Filed Under: Amibroker Tagged With: Amibroker, Amibroker DLL Plugin, Amibroker Plugin, Amibroker SDK, Dot Net SDK for Amibroker, Visual Studio

About Rajandran

Rajandran is a Full time trader and founder of Marketcalls & Co-Founder of Traderscafe, trades mostly using discretionary Trading Concepts like Market Profile, Trading sentimental analysis, building timing models, algorithmic trading models. Instructs professional traders, full time traders & aspiring full time traders. Rajandran attended college in the Chennai where he earned a BE in Electronics and Communications. Rajandran has a broad understanding of trading softwares like Amibroker, Ninjatrader, Esignal, Metastock, Motivewave, Market Analyst(Optuma),Metatrader,Tradingivew,Python and understands individual needs of traders and investors utilizing a wide range of methodologies.

Comments

  1. sayantan chakraborty says

    November 27, 2014 at 1:09 pm

    Hi

    can we call ninja DLLs in amibroker AFLs?
    as it is a DLL only.

    Reply
    • Rajandran R says

      November 27, 2014 at 1:13 pm

      No you cannot use the Ninja DLL’s in Amibroker as it Support only Ninjatrader Functionality. Cross Porting is not possible between Ninjatrader and Amibroker.

      Reply
  2. srini says

    November 27, 2014 at 2:21 pm

    nice post sir, really good

    Reply
  3. Sumit Jain says

    November 27, 2014 at 3:40 pm

    Dear Rajandran,

    Nice one, i think if any one is not friendly to coding software skills can use it. Great Work.

    Could you share more info on making great strategy with a good accuracy and also when you are planning your session in Ahmedabad.

    Love to see you.
    Sumit Jain

    Reply
    • Rajandran R says

      November 27, 2014 at 5:36 pm

      Sure the blog mostly focus on strategy which has atleast little edge in the market. As of now this year it is concerned we are not planning in Ahmedabad.

      Reply
      • sayantan chakraborty says

        November 30, 2014 at 11:25 am

        Hi

        When blog is focusing on Strategy development,I am putting an idea to it.
        Is it possible to develop any good strategy and Scanner based on tape reading analysis in Amibroker5.80/5.90 32bit with backtesting and forwardtesting option in one click ?

        As tape reading is coming to a next big thing for Lower Time Frame Scapler/Swing trading I would request to focus in such part also (nothing developed in such area)

        thanks in advance And waiting for your comments.

        Reply
  4. Praveen says

    November 27, 2014 at 4:30 pm

    very helpful……will give it a try………thanks alot.

    Reply
    • Rajandran R says

      November 27, 2014 at 5:35 pm

      Have a nice try. A Good Way to Secure your source code. Really feels like amibroker should have some sort of mechanism inbuilt to secure the code to some extent

      Reply
  5. Leslie says

    November 27, 2014 at 6:19 pm

    Thanks for the sharing Rajandran 🙂 Superb

    Reply
    • Rajandran R says

      November 27, 2014 at 6:29 pm

      You are welcome!

      Reply
  6. pradeep says

    January 7, 2015 at 3:09 pm

    Dear sir,
    can you please explore how we can add ami-broker template to visual studio 10 i tried it several time to do but failed.
    i am not able to find amibroker template for visual studio.

    Reply
  7. pradeep says

    January 7, 2015 at 3:54 pm

    Dear Sir
    can you please tell me how can we install amibroker template to visual studio 10.
    i am not able to find ami broker template in visual studio.
    1)Download the Dot Net SDK for Amibroker according to your 32bit or 64bit Amibroker Edition and Amibroker Version.
    2)Open Visual Studio-> Goto New Project.
    i completed step 1 but i got stuck at step 2.
    please help me with the same

    Reply
  8. jeyaraj says

    February 16, 2015 at 4:06 pm

    I have a “n reversal afl ” it gives late signals if you modify or deveplope exact signal , how can contact you Sir.

    Reply
  9. Ramulu says

    March 22, 2015 at 8:24 am

    Dear Sir,

    When i building project it is giving an error that:—- A namespace can not directly contain members such as fields or methods. how to solve the issue

    Reply
  10. Raviraj says

    May 17, 2015 at 7:57 pm

    Hi Rajendran,

    AFL is a limited language in the sense that it doesnt support everything that a high level programming language like C++ or Java supports , like there are no Classes .

    I want to write a stragey thats pretty complex and with my attempt with so far with AFL its been difficult because of various limitations of AFL , like limited data types. Can these be overcome with the help of plugins ? can we write classes in plugin ?

    Are all AFL functions available while writing plugins ? ( like HHV , Plot , LLV etc )

    Reply
  11. suyog says

    September 18, 2015 at 10:04 pm

    Recently sharekhan have provided api access to me . Now i want automatic order placement in trade tiger from amibroker. i have taken the trail of GFDL plugin.. but issue is that they only provide futures segment data and no cash market data. So i cannot trade using same plugin in cash market. so i am trying to make my own plugin. So please help me if you can.

    Reply
    • Ramulu says

      October 1, 2015 at 12:08 pm

      Hi Suyog,

      I can be part of your project, but i dont have programming knowledge, how can i include in it.

      Reply
  12. Jatin says

    October 1, 2015 at 9:39 am

    Sir.. I am not getting option of AmiBroker in project of Visual C# .. Please Reply

    Reply
  13. Kumar says

    December 26, 2015 at 10:27 pm

    Hi Rajendran,
    Firstly, Thanks for educating us. I have tried creating the sample project as mentioned above. but amibroker is not recognizing the function SimplePluginFunc1(Close, 5); Please let me know what could be the issue here.
    Thanks.

    Reply
    • Rajandran says

      December 28, 2015 at 1:46 am

      Did you downloaded the right version of dot net SDK for Amibroker

      Reply
  14. ganesh says

    January 1, 2016 at 9:16 pm

    how to License my DLL files and sell it to customers with Hardware Protection Lock or with expiry dates and licensed me .Net dll plugin by commercial protection tools like IntelliLock, CliSecure Licensing, .NET Licensing Pro, etc

    Reply
  15. rixon says

    November 28, 2016 at 10:38 pm

    amibroker plugin not showing

    Reply
    • Medha M says

      June 27, 2018 at 9:25 pm

      did this work for u ?
      I’m facing same issue

      Reply
  16. Amol says

    November 30, 2016 at 4:41 pm

    how to License my DLL files and sell it to customers with Hardware Protection Lock or with expiry dates and licensed me .Net dll plugin by commercial protection tools like IntelliLock, CliSecure Licensing, .NET Licensing Pro, etc

    Reply
  17. Huma Masood says

    February 14, 2017 at 6:09 pm

    Hi,
    I have downloaded visual basic from the link in the article -- but amibroker plugin in not available. How do get it, please advise. Also I downloaded visual studio first then dot net. Hope that is not the prob. Would appreciate your reply -- m trying to convert my afl code to dll.

    Reply
  18. Deepak says

    October 9, 2017 at 9:55 am

    Hello Sir,
    Do know about any MT4 Robotrader Software for Indian Market?

    Reply
  19. Medha says

    June 27, 2018 at 9:29 pm

    Hi

    I have installed .net for amibroker and it worked
    Also i installed Visual studio 2017 community edition but when i click on new project “Amibroker ” is not shown

    Please guide what can be the issue.

    Thanks in advance.

    Reply
  20. Alexander says

    April 27, 2019 at 5:22 pm

    I have a small community, and I want to share my studies with Ambroker. Anyone can help me make the key encrypt with the plugin afl.

    How much do I have to pay as a thank you?

    Please help me and Thank you very much

    Reply
    • Rajandran says

      April 29, 2019 at 6:04 pm

      hi we do develop plugin development on Amibroker with License Manager. Send your detailed requirements to billing@marketcalls.in
      will go thro the requirement and raise quotation.

      Reply
  21. Hung says

    June 20, 2019 at 12:41 am

    How to write afl code “_N (title =” “);” in dll file?
    Plz!

    Thank u so much!

    Reply
  22. RAGIN P M says

    November 13, 2019 (4 weeks ago) at 2:24 pm

    3)On the Left Side Pane Goto Tempaltes -> Visual C# -> Amibroker and select Amibroker Plugin template on the right side pane.
    In my PC there is no template, But visual C# is there , But inside that no Amibroker Option. Please give me a solution

    Reply

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

Email Newsletter

Sign up to receive email updates on latest trading strategies , analysis & financial market updates

We Respect Your Privacy

Premium Access

Username:
Password:
Remember Me
Lost your password?

Tools For Traders

  • Marketcalls Android App
  • MCX Signals
  • Intraday Signals
  • International Commodities
  • OI Tracker
  • Participation OI
  • Your Broker
  • Market Sentiment Analysis

Amibroker Updates

Volatile Phases – Colorful ADX Amibroker AFL Code

November 16, 2019 By Rajandran 4 Comments

Amibroker Technical Analysis Workshop – Bangalore

November 1, 2019 By Rajandran 2 Comments

How to Send Alerts from Amibroker to Telegram Channel using Telgram API

June 12, 2019 By Rajandran 15 Comments

How to Estimate the VWAP based settlement Close like a Pro using Amibroker?

June 9, 2019 By Rajandran Leave a Comment

Practical Approach to Amibroker AFL Coding

May 23, 2019 By Rajandran 37 Comments

  • Facebook
  • Google+
  • LinkedIn
  • RSS
  • Twitter
  • YouTube

Metatrader Updates

MetaTrader 5 Demo Servers Now Available for BSE Currency Markets

March 20, 2018 By Rajandran 8 Comments

ChartIQ – WebTrader for MT4

December 4, 2017 By Rajandran 5 Comments

Metatrader 4 – Web Platform Overview

October 29, 2015 By Rajandran 9 Comments

William VIX FIX Indicator for Metatrader 4

May 16, 2015 By Rajandran 9 Comments

How to Install Custom MQL4 indicators in Metatrader

November 14, 2014 By Rajandran 7 Comments


About | Contact Us | Terms and Conditions | Privacy Policy | Support Policy | Privacy Policy | Refund Policy | Disclaimer


© Copyright 2018 Marketcalls Financial Services Pvt Ltd · All Rights Reserved · And Our Sitemap · All Logos & Trademark Belongs To Their Respective Owners·

Data and information is provided for informational purposes only, and is not intended for trading purposes. Neither marketcalls.in website nor any of its promoters shall be liable for any errors or delays in the content, or for any actions taken in reliance thereon.