Syntax

Error?
and [(CLOSE/(OPEN-CLOSE))*100 < 1.5]

Comments

  • Whats Wrong
  • I found my error.. should be [ type = stock] and [country is US]
    and [SCTR >80]
    and [CLOSE/[OPEN-CLOSE]*100 < 1.5]
    and [ATR(14) > 1.5]
  • SMCI was down .66 percent but did not appear on my scan. How come?
  • lmkwin
    lmkwin ✭✭
    edited February 2024
    SMCI Close = 579.63 Open-Close = 12.89 579.63/12.89 = 44.97 44.97 * 100 = 4497 4497 is not < 1.5

    The -0.66 is the % difference between the close and 1 days ago close

    You may want to consider PctChange (defaults in like this)

    and [PctChange(10,close) > 10]

    or PctDiff (defaults in like this)

    and [PctDiff(close,sma(50,close)) < 5]
  • Imkwin, what should be the syntax to get the .66 percent down for SMCI?
  • What I want is to scan for stocks that is down less than 2 percent same day in real time. So what would be the syntax?
  • lmkwin
    lmkwin ✭✭
    edited February 2024
    You are only looking at today then and not considering any prior periods so you should be comparing the OPEN instead of the Close in your

    and [CLOSE/[OPEN-CLOSE]*100 < 1.5]
    and [OPEN/[OPEN-CLOSE]*100 < 1.5]

    The value for SMCI is around 2.18 doing that. Remember, the -0.66 is close compared to 1 period ago close so you won't be able to use that as a ballpark for why it's showing or not showing on the scan.

    Syntax for the -0.66

    and [PctChange(1,close) < 1]
  • Heres my Scan on TC2000 and I got SMCI to appear....(C/O-C) *100 <1.5
  • Imkwin, thanks I got the correct syntax..[ type = stock] and [country is US]
    and [SCTR >80]
    and [CLOSE/OPEN-[CLOSE]*100 < 1.5]
    and [ATR(14) > 1.5]