# MicroQuant_ValueChartsScanner
# (c) 2013 MicroQuant, LLC
# Version 1.2
# Last Update 05/07/13
#hint:Designed exclusively for use in the Stock Hacker
declare lower;
input NumBars = 14;
input scalingMultiplier = 0.2;
input valueLevel = 8.0;
input conditionGreaterThan = yes;
input price = close;
def VarNumBars = if NumBars < 5 then 5 else if NumBars > 1000 then 1000 else NumBars;
def VarP = Round(VarNumBars / 5.0, 0);
def TLow = if close < low[1] then close else low[1];
def THigh = if close > high[1] then close else high[1];
def VarA = if VarP == 1 then THigh - TLow else Highest(high, VarP) - Lowest(low, VarP);
def VarTotal = if VarP == 1 then sum(VarA,VarNumBars) else sum(VarA,VarNumBars);
def VarCount = VarNumBars;
def LRange = (VarTotal/VarCount)*scalingMultiplier;
def VL = Average(hl2,VarNumBars)+((LRange)*valueLevel);
plot result = if conditionGreaterThan then if price > VL then 1 else 0 else if price < VL then 1 else 0;
Спасибо )))Попробуй так.Код:# MicroQuant_ValueChartsScanner # (c) 2013 MicroQuant, LLC # Version 1.2 # Last Update 05/07/13 #hint:Designed exclusively for use in the Stock Hacker declare lower; input NumBars = 14; input scalingMultiplier = 0.2; input valueLevel = 8.0; input conditionGreaterThan = yes; input price = close; def VarNumBars = if NumBars < 5 then 5 else if NumBars > 1000 then 1000 else NumBars; def VarP = Round(VarNumBars / 5.0, 0); def TLow = if close < low[1] then close else low[1]; def THigh = if close > high[1] then close else high[1]; def VarA = if VarP == 1 then THigh - TLow else Highest(high, VarP) - Lowest(low, VarP); def VarTotal = if VarP == 1 then sum(VarA,VarNumBars) else sum(VarA,VarNumBars); def VarCount = VarNumBars; def LRange = (VarTotal/VarCount)*scalingMultiplier; def VL = Average(hl2,VarNumBars)+((LRange)*valueLevel); plot result = if conditionGreaterThan then if price > VL then 1 else 0 else if price < VL then 1 else 0;
Всегда пожалуйста.Спасибо )))
Спасибо сейчас гляну