使用 GF.Clients.Charts.Custom;使用 GF.Clients.Charts.Custom.Colors;使用 GF.Clients.Charts.Custom.EL.Runtime;使用 GF.Clients.Charts.Custom.Strategy;使用 GF.Clients.Charts.Details;使用 GF.Clients.Charts.Profiles;使用 GF.Clients.Charts.TimeSeries;使用 GF.Clients.Charts.TimeSeries.Indicators;使用 System;使用 System.ComponentModel;使用 System.Drawing.Drawing2D;使用 System.Runtime.InteropServices;命名空间 GF.Clients.Charts.Custom.Sandbox {[Strategy("MyStrategy")] public sealed class MyInd: CustomStrategy {[XmlSerializable, Category("Data")] public int Step = 4; protected override void Process() { TradeEngine.EntryOrder(OrderSide.Buy, 1 , OrderType.Stop, Close.Value + ContractInfo.TickSize * Step, "stp" , SignalFlags.None); TradeEngine.ExitOrder(OrderSide.Sell, 1 , OrderType.Market, 0 , "exit" , SignalFlags.None, string .Empty, false ); } } }