extern double TakeProfit =50; extern double Lots =0.1; extern double TrailingStop =30; extern double MACDOpenLevel =3; extern double MACDCloseLevel=2; extern int MATrendPeriod =26; string ProgramName = "Sample"; int init() { Print(StringTrimLeft(StringTrimRight(ProgramName))); int period = Period(); if(!IsTradeAllowed()) { return(-1); } Comment( iCustom(Symbol(), 0, "Examples\Custom Moving Average