PINE LIBRARY
已更新

ICE_CRT_Core

164
Library "ICE_CRT_Core"

calcBodySize(o, c)
  Parameters:
    o (float)
    c (float)

calcRangeSize(h, l)
  Parameters:
    h (float)
    l (float)

calcUpperWick(h, o, c)
  Parameters:
    h (float)
    o (float)
    c (float)

calcLowerWick(l, o, c)
  Parameters:
    l (float)
    o (float)
    c (float)

calcBodyRatio(bodySize, rangeSize)
  Parameters:
    bodySize (float)
    rangeSize (float)

validateCRT(o, h, l, c, bodyRatioMinIn, atrValIn, atrMultIn)
  Parameters:
    o (float)
    h (float)
    l (float)
    c (float)
    bodyRatioMinIn (float)
    atrValIn (float)
    atrMultIn (float)

crtLabelText(isBullish, isBearish)
  Parameters:
    isBullish (bool)
    isBearish (bool)

crtLabelStyle(isBullish, isBearish)
  Parameters:
    isBullish (bool)
    isBearish (bool)

crtLabelColor(isBullish, isBearish, bullishColor, bearishColor, validColor)
  Parameters:
    isBullish (bool)
    isBearish (bool)
    bullishColor (color)
    bearishColor (color)
    validColor (color)

crtLabelPrice(isBullish, isBearish, crtHighIn, crtLowIn, crtMidIn)
  Parameters:
    isBullish (bool)
    isBearish (bool)
    crtHighIn (float)
    crtLowIn (float)
    crtMidIn (float)

isGrabHigh(level, minGrab, h)
  Parameters:
    level (float)
    minGrab (float)
    h (float)

isGrabLow(level, minGrab, l)
  Parameters:
    level (float)
    minGrab (float)
    l (float)

isAcceptanceHigh(level, buffer, c)
  Parameters:
    level (float)
    buffer (float)
    c (float)

isAcceptanceLow(level, buffer, c)
  Parameters:
    level (float)
    buffer (float)
    c (float)

isWickRejectionHigh(level, wickMin, o, h, l, c)
  Parameters:
    level (float)
    wickMin (float)
    o (float)
    h (float)
    l (float)
    c (float)

isWickRejectionLow(level, wickMin, o, h, l, c)
  Parameters:
    level (float)
    wickMin (float)
    o (float)
    h (float)
    l (float)
    c (float)

isNoAcceptanceHigh(level, h, c)
  Parameters:
    level (float)
    h (float)
    c (float)

isNoAcceptanceLow(level, l, c)
  Parameters:
    level (float)
    l (float)
    c (float)

isFollowThroughRejectionHigh(level, grabBarIn, c, barIdx)
  Parameters:
    level (float)
    grabBarIn (int)
    c (float)
    barIdx (int)

isFollowThroughRejectionLow(level, grabBarIn, c, barIdx)
  Parameters:
    level (float)
    grabBarIn (int)
    c (float)
    barIdx (int)

isRejectedHigh(level, grabBarIn, wickMin, acceptBuf, o, h, l, c, barIdx)
  Parameters:
    level (float)
    grabBarIn (int)
    wickMin (float)
    acceptBuf (float)
    o (float)
    h (float)
    l (float)
    c (float)
    barIdx (int)

isRejectedLow(level, grabBarIn, wickMin, acceptBuf, o, h, l, c, barIdx)
  Parameters:
    level (float)
    grabBarIn (int)
    wickMin (float)
    acceptBuf (float)
    o (float)
    h (float)
    l (float)
    c (float)
    barIdx (int)

eventStateName(state)
  Parameters:
    state (int)

processHighLevel(level, trackedLevel, eventState, grabBar, grabLevel, minGrab, rejWindow, wickMin, acceptBuf, o, h, l, c, barIdx)
  Parameters:
    level (float)
    trackedLevel (float)
    eventState (int)
    grabBar (int)
    grabLevel (float)
    minGrab (float)
    rejWindow (int)
    wickMin (float)
    acceptBuf (float)
    o (float)
    h (float)
    l (float)
    c (float)
    barIdx (int)

processLowLevel(level, trackedLevel, eventState, grabBar, grabLevel, minGrab, rejWindow, wickMin, acceptBuf, o, h, l, c, barIdx)
  Parameters:
    level (float)
    trackedLevel (float)
    eventState (int)
    grabBar (int)
    grabLevel (float)
    minGrab (float)
    rejWindow (int)
    wickMin (float)
    acceptBuf (float)
    o (float)
    h (float)
    l (float)
    c (float)
    barIdx (int)

returnStateName(state)
  Parameters:
    state (int)

isInsideCrtRange(crtHighIn, crtLowIn, buffer, c)
  Parameters:
    crtHighIn (float)
    crtLowIn (float)
    buffer (float)
    c (float)

processReturnLevel(level, trackedLevel, rejectPulseIn, returnStateIn, rejectBarIn, returnBarIn, crtHighIn, crtLowIn, crtReadyIn, retWindowIn, crtBufIn, c, barIdx)
  Parameters:
    level (float)
    trackedLevel (float)
    rejectPulseIn (bool)
    returnStateIn (int)
    rejectBarIn (int)
    returnBarIn (int)
    crtHighIn (float)
    crtLowIn (float)
    crtReadyIn (bool)
    retWindowIn (int)
    crtBufIn (float)
    c (float)
    barIdx (int)

isLegitGrabOpen(stateBefore, levelChanged)
  Parameters:
    stateBefore (int)
    levelChanged (bool)

isLegitReturnFromReject(rejectPulse, returnStateBefore, rejectBarBefore)
  Parameters:
    rejectPulse (bool)
    returnStateBefore (int)
    rejectBarBefore (int)

amdInsideCrtCloseAt(barsBack, crtHighIn, crtLowIn, buffer, cSeries)
  Parameters:
    barsBack (int)
    crtHighIn (float)
    crtLowIn (float)
    buffer (float)
    cSeries (float)

amdCountPreGrabInsideCrt(grabOffsetIn, lookbackIn, crtHighIn, crtLowIn, buffer, cSeries)
  Parameters:
    grabOffsetIn (int)
    lookbackIn (int)
    crtHighIn (float)
    crtLowIn (float)
    buffer (float)
    cSeries (float)

amdCountInsideCrtBetweenGrabSweep(grabOffsetIn, crtHighIn, crtLowIn, buffer, cSeries)
  Parameters:
    grabOffsetIn (int)
    crtHighIn (float)
    crtLowIn (float)
    buffer (float)
    cSeries (float)

entryConfirmCandleLong(sweptLevelIn, c, o, insideCrtIn)
  Parameters:
    sweptLevelIn (float)
    c (float)
    o (float)
    insideCrtIn (bool)

entryConfirmCandleShort(sweptLevelIn, c, o, insideCrtIn)
  Parameters:
    sweptLevelIn (float)
    c (float)
    o (float)
    insideCrtIn (bool)

tradeStateName(stateIn)
  Parameters:
    stateIn (int)

tradeStructStopLongPure(entryIn, bufIn, sweepLow, grabLow, tsLow, barLow)
  Parameters:
    entryIn (float)
    bufIn (float)
    sweepLow (float)
    grabLow (float)
    tsLow (float)
    barLow (float)

tradeStructStopShortPure(entryIn, bufIn, sweepHigh, grabHigh, tsHigh, barHigh)
  Parameters:
    entryIn (float)
    bufIn (float)
    sweepHigh (float)
    grabHigh (float)
    tsHigh (float)
    barHigh (float)

tradeStructTp1Long(entryIn, crtHighIn, crtLowIn, ratioIn)
  Parameters:
    entryIn (float)
    crtHighIn (float)
    crtLowIn (float)
    ratioIn (float)

tradeStructTp1Short(entryIn, crtHighIn, crtLowIn, ratioIn)
  Parameters:
    entryIn (float)
    crtHighIn (float)
    crtLowIn (float)
    ratioIn (float)

tradeStructTp2Long(crtHighIn)
  Parameters:
    crtHighIn (float)

tradeStructTp2Short(crtLowIn)
  Parameters:
    crtLowIn (float)

tradeStructTp3Long(entryIn, crtHighIn, pdhIn, pwhIn)
  Parameters:
    entryIn (float)
    crtHighIn (float)
    pdhIn (float)
    pwhIn (float)

tradeStructTp3Short(entryIn, crtLowIn, pdlIn, pwlIn)
  Parameters:
    entryIn (float)
    crtLowIn (float)
    pdlIn (float)
    pwlIn (float)

tradeCalcRRatio(entryIn, stopIn, targetIn)
  Parameters:
    entryIn (float)
    stopIn (float)
    targetIn (float)

tradeValidateLong(entryIn, stopIn, tp1In, tp2In, tp3In, minRRIn)
  Parameters:
    entryIn (float)
    stopIn (float)
    tp1In (float)
    tp2In (float)
    tp3In (float)
    minRRIn (float)

tradeValidateShort(entryIn, stopIn, tp1In, tp2In, tp3In, minRRIn)
  Parameters:
    entryIn (float)
    stopIn (float)
    tp1In (float)
    tp2In (float)
    tp3In (float)
    minRRIn (float)

tradeAuditInvalidReason(isLongIn, entryIn, stopIn, tp1In, tp2In, tp3In, minRRIn)
  Parameters:
    isLongIn (bool)
    entryIn (float)
    stopIn (float)
    tp1In (float)
    tp2In (float)
    tp3In (float)
    minRRIn (float)

tradeAuditOrderLongOk(entryIn, tp1In, tp2In, tp3In)
  Parameters:
    entryIn (float)
    tp1In (float)
    tp2In (float)
    tp3In (float)

tradeAuditOrderShortOk(entryIn, tp1In, tp2In, tp3In)
  Parameters:
    entryIn (float)
    tp1In (float)
    tp2In (float)
    tp3In (float)

tradeSimTp2OptA(isLongIn, tp1In, crtHighIn, crtLowIn, betaIn)
  Parameters:
    isLongIn (bool)
    tp1In (float)
    crtHighIn (float)
    crtLowIn (float)
    betaIn (float)

tradeSimTp2OptB(isLongIn, entryIn, stopIn, r2In)
  Parameters:
    isLongIn (bool)
    entryIn (float)
    stopIn (float)
    r2In (float)

tradeSimTp2OptC(isLongIn, tp1In, tp3In, gammaIn)
  Parameters:
    isLongIn (bool)
    tp1In (float)
    tp3In (float)
    gammaIn (float)

tradeSimFailsTp2(isLongIn, tp1In, tp2In, tp3In)
  Parameters:
    isLongIn (bool)
    tp1In (float)
    tp2In (float)
    tp3In (float)

tradeSimFailsRR(entryIn, stopIn, tp1In, minRRIn)
  Parameters:
    entryIn (float)
    stopIn (float)
    tp1In (float)
    minRRIn (float)

tradeAuditRRReason(entryIn, stopIn, tp1In, minRRIn)
  Parameters:
    entryIn (float)
    stopIn (float)
    tp1In (float)
    minRRIn (float)

tradeAuditRequiredReward(riskIn, minRRIn)
  Parameters:
    riskIn (float)
    minRRIn (float)

tradeAuditMissingReward(riskIn, actualRewardIn, minRRIn)
  Parameters:
    riskIn (float)
    actualRewardIn (float)
    minRRIn (float)

tradeAuditTp1ForMinRR(isLongIn, entryIn, stopIn, minRRIn)
  Parameters:
    isLongIn (bool)
    entryIn (float)
    stopIn (float)
    minRRIn (float)

tradeAuditTp1Delta(tp1ActualIn, tp1NeedIn)
  Parameters:
    tp1ActualIn (float)
    tp1NeedIn (float)

tradeAuditTp1NeedCrtRatio(riskIn, crtRangeIn, minRRIn)
  Parameters:
    riskIn (float)
    crtRangeIn (float)
    minRRIn (float)

tradeAuditTp1ActualCrtRatio(distEt1In, crtRangeIn)
  Parameters:
    distEt1In (float)
    crtRangeIn (float)
版本注释
v2
版本注释
v3
版本注释
v4

Actualizado:
amdInsideCrtCloseAt(barsBack, crtHighIn, crtLowIn, buffer, cSeries)
  Parameters:
    barsBack (int)
    crtHighIn (simple float)
    crtLowIn (simple float)
    buffer (simple float)
    cSeries (float)

amdCountPreGrabInsideCrt(grabOffsetIn, lookbackIn, crtHighIn, crtLowIn, buffer, cSeries)
  Parameters:
    grabOffsetIn (simple int)
    lookbackIn (simple int)
    crtHighIn (simple float)
    crtLowIn (simple float)
    buffer (simple float)
    cSeries (float)

amdCountInsideCrtBetweenGrabSweep(grabOffsetIn, crtHighIn, crtLowIn, buffer, cSeries)
  Parameters:
    grabOffsetIn (simple int)
    crtHighIn (simple float)
    crtLowIn (simple float)
    buffer (simple float)
    cSeries (float)
版本注释
v5

Actualizado:
amdInsideCrtCloseAt(barsBack, crtHighIn, crtLowIn, buffer, cSeries)
  Parameters:
    barsBack (int)
    crtHighIn (float)
    crtLowIn (float)
    buffer (float)
    cSeries (float)

amdCountPreGrabInsideCrt(grabOffsetIn, lookbackIn, crtHighIn, crtLowIn, buffer, cSeries)
  Parameters:
    grabOffsetIn (int)
    lookbackIn (int)
    crtHighIn (float)
    crtLowIn (float)
    buffer (float)
    cSeries (float)

amdCountInsideCrtBetweenGrabSweep(grabOffsetIn, crtHighIn, crtLowIn, buffer, cSeries)
  Parameters:
    grabOffsetIn (int)
    crtHighIn (float)
    crtLowIn (float)
    buffer (float)
    cSeries (float)

免责声明

这些信息和出版物并非旨在提供,也不构成TradingView提供或认可的任何形式的财务、投资、交易或其他类型的建议或推荐。请阅读使用条款了解更多信息。