title: Simple example of MetaTrader custom indicator written in C++?
body: <p>Due to differences in technical indicator calculations between my testing platform and MT4 I have decided to try and bring the open source TA-LIB API into MetaTrader via a custom indicator DLL compatible with MetaTrader.</p>
  
  <p>I know that to make functions available to MetaTrader I can simply create an export file and then use the #import declaration in the MT4 code but I am struggling to see how I would use that to write a custom indicator in C and then how to access it via MT4.</p>
  
  <p>I know this can be done but I cannot find any examples anywhere on the internet.</p>
  
  <p>Does anyone have any references or a sample template of an indicator written in C, C++?</p>