VALow.SetPaintingStrategy(PaintingStrategy.HORIZONTAL) VAHigh.SetPaintingStrategy(PaintingStrategy.HORIZONTAL) POC.SetPaintingStrategy(PaintingStrategy.HORIZONTAL) POC.SetDefaultColor(GlobalColor("Point Of Control")) Plot VALow = if plotsDomain and SecondsTillTime(until) > 0 then lVA else Double.NaN ĭefineGlobalColor("Point of Control", Color.RED) ĭefineGlobalColor("Value Area", Color.LIGHT_GRAY) Plot VAHigh = if plotsDomain and SecondsTillTime(until) > 0 then hVA else Double.NaN Plot POC = if plotsDomain and SecondsTillTime(until) > 0 then pc else Double.NaN Profile vol = VolumeProfile("startNewProfile" = cond, "onExpansion" = onExpansion, "numberOfProfiles" = profiles, "pricePerRow" = height, "value area percent" = 70) ĭef con = CompoundValue(1, onExpansion, no) ĭef pc = if range = 0 then pc else if IsNaN(vol.GetPointOfControl()) and con then pc else vol.GetPointOfControl() ĭef hVA = if range = 0 then hVA else if IsNaN(vol.GetHighestValueArea()) and con then hVA else vol.GetHighestValueArea() ĭef lVA = if range = 0 then lVA else if IsNaN(vol.GetLowestValueArea()) and con then lVA else vol.GetLowestValueArea() ĭef plotsDomain = IsNaN(close) = onExpansion Input pricePerRowHeightMode = ĭef range = if SecondsFromTime(begin) >= 0 and SecondsTillTime(end) >= 0 then 1 else 0 Def tradingzones = if SecondsFromTime(zone1begin) >= 0 and SecondsTillTime(zone1end) > 0Įlse if secondsfromTime(zone1end)>0 and secondstilltime(zone2end)>0ĭef cond = tradingzones != tradingzones
0 Comments
Leave a Reply. |
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |