//enum ENUM_TIMEFRAMES {PERIOD_CURRENT = 0, PERIOD_M1 = 1, PERIOD_M2 = 2, PERIOD_M3 = 3, PERIOD_M4 = 4, PERIOD_M5 = 5, PERIOD_M6 = 6, PERIOD_M10 = 10, PERIOD_M12 = 12, PERIOD_M15 = 15, PERIOD_M20 = 20, PERIOD_M30 = 30, PERIOD_H1 = 60, PERIOD_H2 = 120, PERIOD_H3 = 180, PERIOD_H4 = 240, PERIOD_H6 = 360, PERIOD_H8 = 480, PERIOD_H12 = 720, PERIOD_D1 = 1440, PERIOD_W1 = 10080, PERIOD_MN1 = 43200, };
enum opentime {
A = 1,//开单时区模式
B = 2,//开单时间间距(秒)模式
C = 3,//不延迟模式
};
//------------------
extern double On_top_of_this_price_not_Buy_first_order=0 ; //B以上不开(首)
extern double On_under_of_this_price_not_Sell_first_order=0 ; //S以下不开(首)
extern double On_top_of_this_price_not_Buy_order=0 ; //B以上不开(补)
extern double On_under_of_this_price_not_Sell_order=0 ; //S以下不开(补)
extern string Limit_StartTime="00:00" ; //限价开始时间
extern string Limit_StopTime="24:00" ; //限价结束时间
extern bool CloseBuySell=true ; //逆势保护开关
extern bool HomeopathyCloseAll=true ; //顺势保护开关
extern bool Homeopathy=false ; //完全对锁时挂上顺势开关
extern bool Over=false ; //平仓后停止交易
extern int NextTime=0 ; //整体平仓后多少秒后新局
extern double Money=0 ; //浮亏多少启用第二参数
extern int FirstStep=30 ; //首单距离
extern int MinDistance=60 ; //最小距离
extern int TwoMinDistance=60 ; //第二最小距离
extern int StepTrallOrders=5 ; //挂单追踪点数
extern int Step=100 ; //补单间距
extern int TwoStep=100 ; //第二补单间距
extern opentime OpenMode=3 ;
extern ENUM_TIMEFRAMES TimeZone=1 ; //开单时区
extern int sleep=30 ; //开单时间间距(秒)
extern double MaxLoss=100000 ; //单边浮亏超过多少不继续加仓
extern double MaxLossCloseAll=50 ; //单边平仓限制
|