自動(dòng)線性回歸通道指標(biāo)(源碼)——MT4
知識(shí)星球板塊內(nèi)容預(yù)覽:點(diǎn)擊查看
自動(dòng)線性回歸通道指標(biāo)(源碼)——MT4

該指標(biāo)自動(dòng)統(tǒng)計(jì)價(jià)格落在回歸通道各個(gè)區(qū)間內(nèi)的出現(xiàn)次數(shù)。這有助于在趨勢行情中突出顯示值得關(guān)注的價(jià)格區(qū)域。

價(jià)格在哪些區(qū)間停留最多
趨勢中潛在的支撐/阻力密集區(qū)

#property?strict#property?indicator_chart_window//---- Inputsinput ENUM_TIMEFRAMES InpTF ? ? ? ?= PERIOD_CURRENT; // Timeframe (MTF)input int ? ? ? ? ? ? InpLength ? ?= 100; ? ? ? ? ? ?// Length (max 500)input int ? ? ? ? ? ? InpBins ? ? ?= 10; ? ? ? ? ? ? // Bins Numberinput double ? ? ? ? ?InpMult ? ? ?= 2.0; ? ? ? ? ? ?// Multinput int ? ? ? ? ? ? InpSrcPrice ?= PRICE_CLOSE; ? ?// Source (applied price)input bool ? ? ? ? ? ?InpShowHist ?= true; ? ? ? ? ? // Show Histogram// Labelsinput bool ? ? ? ? ? ?InpShowLabels ? = true; ? ? ? ?// Show Labelsinput string ? ? ? ? ?InpLabelFont ? ?= "Dubai Medium";input int ? ? ? ? ? ? InpLabelSize ? ?= 9;input int ? ? ? ? ? ? InpLabelOffset ?= 1; ? ? ? ? ? // Extra bars to the right of HIST endinput bool ? ? ? ? ? ?InpLabelShowCnt = true; ? ? ? ?// Show count in label (e.g. 3129.28 (17))// Colors (Pine defaults: dn=#ff1100?up=#2157f3?hist=#ff5d00)input color ? ? ? ? ? InpDnCol ? ? = C'255,17,0';input color ? ? ? ? ? InpUpCol ? ? = C'33,87,243';input color ? ? ? ? ? InpHistCol ? = C'255,93,0';// Line widthsinput int ? ? ? ? ? ? InpRegWidth ?= 1;input int ? ? ? ? ? ? InpHistWidth = 2;//---- Globalsstring ? g_prefix = "";string ? g_regNames[];string ? g_histNames[];string ? g_lblNames[];datetime g_lastKeyTime = 0;//+------------------------------------------------------------------+//| Utilities ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ?|//+------------------------------------------------------------------+int TFSeconds(ENUM_TIMEFRAMES tf)
夜雨聆風(fēng)
