股票量化軟件:赫茲軟件中信號選股
input group "Window Indicators" input string ? ? ? ? ? ? ? ? ? ?user01 = ""; ? ? ? ? ? ? ? ? ? ?//Subwindow indicators input group "WallPaper" input string ? ? ? ? ? ? ? ? ? ?user10 = "Wallpaper_01"; ? ? ? ?//Used BitMap input char ? ? ? ? ? ? ? ? ? ? ?user11 = 60; ? ? ? ? ? ? ? ? ? ?//Transparency (from 0 to 100) input C_WallPaper::eTypeImage ? user12 = C_WallPaper::IMAGEM; ? //Chart background type input group "Chart Trader" input int ? ? ? ? ? ? ? ? ? ? ? user20 ? = 1; ? ? ? ? ? ? ? ? ? //Leverage factor input int ? ? ? ? ? ? ? ? ? ? ? user21 ? = 100; ? ? ? ? ? ? ? ? //Take Profit (financial) input int ? ? ? ? ? ? ? ? ? ? ? user22 ? = 75; ? ? ? ? ? ? ? ? ?//Stop Loss (financial) input color ? ? ? ? ? ? ? ? ? ? user23 ? = clrBlue; ? ? ? ? ? ? //Price line color input color ? ? ? ? ? ? ? ? ? ? user24 ? = clrForestGreen; ? ? ?//Take Profit line color input color ? ? ? ? ? ? ? ? ? ? user25 ? = clrFireBrick; ? ? ? ?//Stop line color input bool ? ? ? ? ? ? ? ? ? ? ?user26 ? = true; ? ? ? ? ? ? ? ?//Day Trade? input group "Volume At Price" input color ? ? ? ? ? ? ? ? ? ? user30 ?= clrBlack; ? ? ? ? ? ? //Bar color input char ? ? ? ? ? ? ? ? ? ? ?user31 ?= 20; ? ? ? ? ? ? ? ? ? //Transparency (from 0 to 100 ) //+------------------------------------------------------------------+ C_TemplateChart Chart; C_WallPaper ? ? WallPaper; C_VolumeAtPrice VolumeAtPrice; //+------------------------------------------------------------------+ int OnInit() { ? ? ? ?static string ? memSzUser01 = ""; ? ? ? ? ? ? ? ?Terminal.Init(); ? ? ? ?WallPaper.Init(user10, user12, user11); ? ? ? ?if (memSzUser01 != user01) ? ? ? ?{ ? ? ? ? ? ? ? ?Chart.ClearTemplateChart(); ? ? ? ? ? ? ? ?Chart.AddThese(memSzUser01 = user01); ? ? ? ?} ? ? ? ?Chart.InitilizeChartTrade(user20, user21, user22, user23, user24, user25, user26); ? ? ? ?VolumeAtPrice.Init(user24, user25, user30, user31); ? ? ? ? ? OnTrade(); ? ? ? ?EventSetTimer(1); ? ? ? ? ?return INIT_SUCCEEDED; } //+------------------------------------------------------------------+