Library "UStarO1CrtLib"
TODO: add library description here
fun(x)
fun: test basic function call in a library
Parameters:
x (float)
Returns: y: number x + 10
createFVGInfo(h, l, bull, t, tv)
Parameters:
h (float)
l (float)
bull (int)
t (int)
tv (float)
createFVG(FVGInfoF)
Parameters:
FVGInfoF (FVGInfo)
safeDeleteFVG(fvg)
Parameters:
fvg (FVG)
findValRtnTime(valToFind, toSearch, searchMode, lo, hi, ti)
Parameters:
valToFind (float)
toSearch (string)
searchMode (string)
lo (array<float>)
hi (array<float>)
ti (array<int>)
createOrderBlock(orderBlockInfoF)
Parameters:
orderBlockInfoF (orderBlockInfo)
safeDeleteOrderBlock(orderBlockF)
Parameters:
orderBlockF (orderBlock)
arrHasOB(arr, obF)
Parameters:
arr (array<orderBlock>)
obF (orderBlock)
moveLine(_line, _x, _y, _x2)
Parameters:
_line (line)
_x (int)
_y (float)
_x2 (int)
moveBox(_box, _topLeftX, _topLeftY, _bottomRightX, _bottomRightY)
Parameters:
_box (box)
_topLeftX (int)
_topLeftY (float)
_bottomRightX (int)
_bottomRightY (float)
colorWithTransparency(colorF, transparencyX)
Parameters:
colorF (color)
transparencyX (float)
createFVGBox(boxColor, transparencyX, xlocType, textColor)
Parameters:
boxColor (color)
transparencyX (float)
xlocType (string)
textColor (color)
renderOrderBlock(ob, bullOrderBlockColor, bearOrderBlockColor, OBsEnabled, breakersFull, BBsEnabled, showInvalidated, changeCombinedFVGsColor, orderBlockVolumetricInfo, extendZonesDynamic, extendZonesByTime, volumeBarsLeftSide, combinedText, mirrorVolumeBars, textColor, curTFMMS)
Parameters:
ob (orderBlock)
bullOrderBlockColor (simple color)
bearOrderBlockColor (simple color)
OBsEnabled (bool)
breakersFull (bool)
BBsEnabled (bool)
showInvalidated (bool)
changeCombinedFVGsColor (bool)
orderBlockVolumetricInfo (bool)
extendZonesDynamic (bool)
extendZonesByTime (int)
volumeBarsLeftSide (bool)
combinedText (bool)
mirrorVolumeBars (bool)
textColor (color)
curTFMMS (int)
handleOrderBlocksFinal(DEBUG, orderBlockInfoList, allOrderBlocksList, dbgShowBBFVG, bullOrderBlockColor, bearOrderBlockColor, OBsEnabled, breakersFull, BBsEnabled, showInvalidated, changeCombinedFVGsColor, orderBlockVolumetricInfo, extendZonesDynamic, extendZonesByTime, volumeBarsLeftSide, combinedText, mirrorVolumeBars, textColor, curTFMMS)
Parameters:
DEBUG (bool)
orderBlockInfoList (array<orderBlockInfo>)
allOrderBlocksList (array<orderBlock>)
dbgShowBBFVG (bool)
bullOrderBlockColor (simple color)
bearOrderBlockColor (simple color)
OBsEnabled (bool)
breakersFull (bool)
BBsEnabled (bool)
showInvalidated (bool)
changeCombinedFVGsColor (bool)
orderBlockVolumetricInfo (bool)
extendZonesDynamic (bool)
extendZonesByTime (int)
volumeBarsLeftSide (bool)
combinedText (bool)
mirrorVolumeBars (bool)
textColor (color)
curTFMMS (int)
arrHasFVG(arr, fvgF)
Parameters:
arr (array<FVG>)
fvgF (FVG)
arrHasIFVG(arr, fvgF)
Parameters:
arr (array<FVG>)
fvgF (FVG)
renderFVG(fvg, customEndTime, fvgEnabled, ifvgEnabled, showInvalidated, fvgVolumetricInfo, changeCombinedFVGsColor, combinedColor, fvgBullColor, fvgBearColor, textColor, extendZonesByTime, extendZonesDynamic, volumeBarsLeftSide, bearishInverseColor, bullishInverseColor, combinedText, mirrorVolumeBars, ifvgFull, ifvgVolumetricInfo)
Parameters:
fvg (FVG)
customEndTime (int)
fvgEnabled (bool)
ifvgEnabled (bool)
showInvalidated (bool)
fvgVolumetricInfo (bool)
changeCombinedFVGsColor (bool)
combinedColor (color)
fvgBullColor (color)
fvgBearColor (color)
textColor (color)
extendZonesByTime (int)
extendZonesDynamic (bool)
volumeBarsLeftSide (bool)
bearishInverseColor (color)
bullishInverseColor (color)
combinedText (bool)
mirrorVolumeBars (bool)
ifvgFull (bool)
ifvgVolumetricInfo (bool)
areaOfFVG(FVGInfoF)
Parameters:
FVGInfoF (FVGInfo)
doFVGsTouch(FVGInfo1, FVGInfo2, overlapThresholdPercentage)
Parameters:
FVGInfo1 (FVGInfo)
FVGInfo2 (FVGInfo)
overlapThresholdPercentage (float)
isFVGValid(FVGInfoF, showInvalidated)
Parameters:
FVGInfoF (FVGInfo)
showInvalidated (bool)
isIFVGValid(FVGInfoF, showInvalidated, ifvgEnabled)
Parameters:
FVGInfoF (FVGInfo)
showInvalidated (bool)
ifvgEnabled (bool)
isFVGValidInTimeframe(FVGInfoF, showInvalidated, deleteUntouched, minimumFVGSize, deleteUntouchedAfterXBars)
Parameters:
FVGInfoF (FVGInfo)
showInvalidated (bool)
deleteUntouched (bool)
minimumFVGSize (int)
deleteUntouchedAfterXBars (int)
isIFVGValidInTimeframe(FVGInfoF, ifvgEnabled, deleteUntouched, showInvalidated, minimumIFVGSize, deleteUntouchedAfterXBars)
Parameters:
FVGInfoF (FVGInfo)
ifvgEnabled (bool)
deleteUntouched (bool)
showInvalidated (bool)
minimumIFVGSize (int)
deleteUntouchedAfterXBars (int)
combineFVGsFunc(allFVGList, showInvalidated, overlapThresholdPercentage)
Parameters:
allFVGList (array<FVG>)
showInvalidated (bool)
overlapThresholdPercentage (float)
handleFVGsFinal(DEBUG, allFVGList, FVGInfoList, combineFVGs, extendLastFVGs, extendLastXFVGsCount, dbgShowBBFVG, overlapThresholdPercentage, customEndTime, fvgEnabled, ifvgEnabled, showInvalidated, fvgVolumetricInfo, changeCombinedFVGsColor, combinedColor, fvgBullColor, fvgBearColor, textColor, extendZonesByTime, extendZonesDynamic, volumeBarsLeftSide, bearishInverseColor, bullishInverseColor, combinedText, mirrorVolumeBars, ifvgFull, ifvgVolumetricInfo)
Parameters:
DEBUG (bool)
allFVGList (array<FVG>)
FVGInfoList (array<FVGInfo>)
combineFVGs (bool)
extendLastFVGs (bool)
extendLastXFVGsCount (int)
dbgShowBBFVG (bool)
overlapThresholdPercentage (float)
customEndTime (int)
fvgEnabled (bool)
ifvgEnabled (bool)
showInvalidated (bool)
fvgVolumetricInfo (bool)
changeCombinedFVGsColor (bool)
combinedColor (color)
fvgBullColor (color)
fvgBearColor (color)
textColor (color)
extendZonesByTime (int)
extendZonesDynamic (bool)
volumeBarsLeftSide (bool)
bearishInverseColor (color)
bullishInverseColor (color)
combinedText (bool)
mirrorVolumeBars (bool)
ifvgFull (bool)
ifvgVolumetricInfo (bool)
findOrderBlocks(maxDistanceToLastBar, maxBarsBack, OBsEnabled, BBsEnabled, swingType, orderBlockInfoList, obEndMethod, bbEndMethod, atr, maxATRMult, maxOrderBlocks, bi, hi_sw, li_sw)
Parameters:
maxDistanceToLastBar (int)
maxBarsBack (int)
OBsEnabled (bool)
BBsEnabled (bool)
swingType (int)
orderBlockInfoList (array<orderBlockInfo>)
obEndMethod (string)
bbEndMethod (string)
atr (float)
maxATRMult (float)
maxOrderBlocks (int)
bi (int)
hi_sw (float)
li_sw (float)
orderBlockInfo
Fields:
top (series float)
bottom (series float)
obVolume (series float)
obType (series string)
startTime (series int)
bbVolume (series float)
obLowVolume (series float)
obHighVolume (series float)
breaker (series bool)
breakTime (series int)
breakerEndTime (series int)
timeframeStr (series string)
disabled (series bool)
combinedTimeframesStr (series string)
combined (series bool)
orderBlock
Fields:
info (orderBlockInfo)
isRendered (series bool)
orderBox (series box)
breakerBox (series box)
orderBoxLineTop (series line)
orderBoxLineBottom (series line)
breakerBoxLineTop (series line)
breakerBoxLineBottom (series line)
orderBoxText (series box)
orderBoxPositive (series box)
orderBoxNegative (series box)
orderSeperator (series line)
orderTextSeperator (series line)
FVGInfo
Fields:
max (series float)
min (series float)
isBull (series int)
t (series int)
totalVolume (series float)
startBarIndex (series int)
endBarIndex (series int)
startTime (series int)
endTime (series int)
extendInfinite (series bool)
combined (series bool)
combinedTimeframesStr (series string)
disabled (series bool)
timeframeStr (series string)
lowVolume (series float)
highVolume (series float)
isInverse (series bool)
lastTouched (series int)
lastTouchedIFVG (series int)
inverseEndIndex (series int)
inverseEndTime (series int)
inverseVolume (series float)
FVG
Fields:
info (FVGInfo)
isRendered (series bool)
fvgBox (series box)
ifvgBox (series box)
fvgBoxText (series box)
fvgBoxPositive (series box)
fvgBoxNegative (series box)
fvgSeperator (series line)
fvgTextSeperator (series line)
obSwing
Fields:
x (series int)
y (series float)
crossed (series bool)
barInfo
Fields:
o (series float)
h (series float)
l (series float)
c (series float)
tr (series float)
atr (series float)
CRT
Fields:
state (series string)
startTime (series int)
overlapDirection (series string)
bulkyTimeLow (series int)
bulkyTimeHigh (series int)
bulkyHigh (series float)
bulkyLow (series float)
breakTime (series int)
fvg (FVG)
fvgEndTime (series int)
ob (orderBlock)
slTarget (series float)
tpTarget (series float)
entryType (series string)
entryTime (series int)
exitTime (series int)
entryPrice (series float)
exitPrice (series float)
dayEndedBeforeExit (series int)