Delete or Move all plugin to desktop or another location. and run the Amibroker setup files once again with full installation then you can check.

Ma function never give syntax error..

Try the below AFL

```
_N( Formula_Name = "" );
_N( System_Ver = "" + Name() );
Day_OfWeek = DayOfWeek();
No_Month = Month();
_N( Day_Name = WriteIf( Day_OfWeek == 0, "Sun", WriteIf( Day_OfWeek == 1, "Mon", WriteIf( Day_OfWeek == 2, "Tue", WriteIf( Day_OfWeek == 3, "Wed", WriteIf( Day_OfWeek == 4, "Thu", WriteIf( Day_OfWeek == 5, "Fri", WriteIf( Day_OfWeek == 6, "Sat", "Unknown" ) ) ) ) ) ) ) );
_N( Month_Name = Writeif( No_Month == 1, "Jan", Writeif( No_Month == 2, "Feb", Writeif( No_Month == 3, "Mar", Writeif( No_Month == 4, "Apr", Writeif( No_Month == 5, "May",
Writeif( No_Month == 6, "Jun", Writeif( No_Month == 7, "Jul", Writeif( No_Month == 8, "Aug", Writeif( No_Month == 9, "Sept", Writeif( No_Month == 10, "Oct", Writeif( No_Month == 11, "Nov", Writeif( No_Month == 12, "Dec", "Unknown" ) ) ) ) ) ) ) ) ) ) ) ) );
_N( Hour_Min_Sec = WriteIf( Hour() > 9, "" + Hour(), "0" + Hour() ) + ":" + WriteIf( Minute() > 9, "" + Minute(), "0" + Minute() ) + ":" + WriteIf( Second() > 9, "" + Second(), "0" + Second() ) );
_N( CustomDateFormat = Day_Name + " " + NumToStr( Day(), 1.0 ) + " " + Month_Name + " " + NumToStr( Year(), 1.0, False ) + " " + WriteIf( Interval() < inDaily, Hour_Min_Sec, "" ) );
Yogya_Upcolor = ColorRGB( 0, 177, 88 );
Yogya_DownColor = ColorRGB( 246, 70, 65 );
Setchartoptions( 0, Chartshowarrows | chartShowDates );
SetbarfillColor( IIf( C > O, Yogya_Upcolor, Yogya_DownColor ) );
Plot( C, "Price", IIf( C > O, Yogya_Upcolor, Yogya_DownColor ), styleCandle | styleNoTitle );
SetFormulaName( Formula_Name + "" + System_Ver );
_N( Title = EncodeColor( ColorRGB( 255, 150, 150 ) ) + StrFormat( Formula_Name + "" + System_Ver + " {{INTERVAL}} " ) + CustomDateFormat + "" + StrFormat( " Open = %g, Hi = %g, Lo = %g, Close = %g, Volume = %g Change = (%.1f%%) {{VALUES}}", O, H, L, C, V, SelectedValue( ROC( C, 1 ) ) ) );
_SECTION_BEGIN( "MA1");
MA1_Type = ParamList( "MA1_Type", "MA,EMA,HMA,Double EMA,Tripple EMA,Wilders,VWAP,WMA,TSF,LinearReg,LinRegIntercept", 0 );
MA1_Period = Param( "MA1_Period", 10, 2, 300, 1 );
MA1_Color = colorAqua;
_SECTION_END();
MA1_Field = Close;
//MA1_Value = 0;
VMA1_Sum = Sum( Volume, MA1_Period );
VPMA1_Sum = Sum( MA1_Field * Volume, MA1_Period );
if( MA1_Type == "VWAP" ) MA1_Value = VPMA1_Sum / VMA1_Sum;
if( MA1_Type == "MA" ) MA1_Value = MA( MA1_Field, MA1_Period );
if( MA1_Type == "EMA" ) MA1_Value = EMA( MA1_Field, MA1_Period );
if( MA1_Type == "HMA" ) MA1_Value = HMA( MA1_Field, MA1_Period );
if( MA1_Type == "Double EMA" ) MA1_Value = DEMA( MA1_Field, MA1_Period );
if( MA1_Type == "Tripple EMA" ) MA1_Value = TEMA( MA1_Field, MA1_Period );
if( MA1_Type == "Wilders" ) MA1_Value = Wilders( MA1_Field, MA1_Period );
if( MA1_Type == "WMA" ) MA1_Value = WMA( MA1_Field, MA1_Period );
if( MA1_Type == "TSF" ) MA1_Value = TSF( MA1_Field, MA1_Period );
if( MA1_Type == "LinearReg" ) MA1_Value = LinearReg( MA1_Field, MA1_Period );
if( MA1_Type == "LinRegIntercept" ) MA1_Value = LinRegIntercept( MA1_Field, MA1_Period );
Plot( MA1_Value, StrFormat( "\n" + MA1_Type + "(%g)", MA1_Period ), MA1_Color, styleLine, Null, Null, 0, 0, 1 );
```