编写的程序编译有错误,帮忙指出如何修改呢

编译显示错误,帮忙看一下:Params Numeric ShortMA(5); // 短期均线周期 Numeric LongMA(10); // 长期均线周期 Numeric StopLossPct(2); // 止损百分比(2%) Numeric TakeProfitPct(5); // 回撤止盈百分比(5%)Vars NumericSeries FastMA; // 5日均线(序列型) NumericSeries SlowMA; // 10日均线(序列型) Numeric EntryPrice; // 开仓价格 Numeric HighestAfterEntry; // 开仓后最高价Begin // 计算均线(使用 AverageFC 函数) FastMA = AverageFC(Close, ShortMA); SlowMA = AverageFC(Close, LongMA); // 初始化最高价(首次开仓时) If (MarketPosition == 0) { HighestAfterEntry = 0; } // ===== 无持仓时:尝试开多 ===== If (MarketPosition == 0) { // 金叉:FastMA 上穿 SlowMA If (FastMA[1] <= SlowMA[1] And FastMA > SlowMA) { Buy(1, Open); // 下一根K线开盘价开多 EntryPrice = Open; HighestAfterEntry = Open; // 设置初始最高价 } } // ===== 持有多单时:管理平仓 ===== If (MarketPosition == 1) { // 更新最高价 If (Close > HighestAfterEntry) { HighestAfterEntry = Close; } // 条件1:止损(亏损 >= 2%) If (Close <= EntryPrice * (1 - StopLossPct / 100)) { Sell(1, Open); // 平多 } // 条件2:从最高位回撤 >= 5% Else If (HighestAfterEntry > 0 And Close <= HighestAfterEntry * (1 - TakeProfitPct / 100)) { Sell(1, Open); // 平多 } // 条件3:死叉(FastMA 下穿 SlowMA) Else If (FastMA[1] >= SlowMA[1] And FastMA < SlowMA) { Sell(1, Open); // 平多 } } Return 0;End

请问,一直说程序体不存在,是什么原因呢

begin end不是最新的格式AI写的话,你可以告诉他