41 lines
1.7 KiB
MQL5
41 lines
1.7 KiB
MQL5
|
//+------------------------------------------------------------------+
|
||
|
//| EA-Test-Indicator.mq5 |
|
||
|
//| Copyright 2020, MetaQuotes Software Corp. |
|
||
|
//| https://www.mql5.com |
|
||
|
//+------------------------------------------------------------------+
|
||
|
#property copyright "Copyright 2020, MetaQuotes Software Corp."
|
||
|
#property link "https://www.mql5.com"
|
||
|
#property version "1.00"
|
||
|
#property strict
|
||
|
int i_Handle;
|
||
|
//+------------------------------------------------------------------+
|
||
|
//| Expert initialization function |
|
||
|
//+------------------------------------------------------------------+
|
||
|
int OnInit()
|
||
|
{
|
||
|
//---
|
||
|
string m_indi="Shared Projects\\Indicatoren\\testordner\\TFTestIndicator.ex5";
|
||
|
//string m_indi="\\Indicators\\NeuerTestIndicator\\TFTestIndicator.ex5";
|
||
|
//if(MQLInfoInteger(MQL_PROFILER)==true || MQLInfoInteger(MQL_TESTER)==true)
|
||
|
//m_indi="\\NeuerTestIndicator\\TFTestIndicator.ex5";
|
||
|
i_Handle=iCustom(Symbol(), PERIOD_CURRENT, m_indi);
|
||
|
//---
|
||
|
return(INIT_SUCCEEDED);
|
||
|
}
|
||
|
//+------------------------------------------------------------------+
|
||
|
//| Expert deinitialization function |
|
||
|
//+------------------------------------------------------------------+
|
||
|
void OnDeinit(const int reason)
|
||
|
{
|
||
|
//---
|
||
|
IndicatorRelease(i_Handle);
|
||
|
}
|
||
|
//+------------------------------------------------------------------+
|
||
|
//| Expert tick function |
|
||
|
//+------------------------------------------------------------------+
|
||
|
void OnTick()
|
||
|
{
|
||
|
//---
|
||
|
}
|
||
|
//+------------------------------------------------------------------+
|