Erreur à la fin des codes

Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #233542 quote
    timal dude
    Participant
    Junior

    Bonjour,

    Je me heurte au probleme suivant avec mon screener: Characters missing: end of code.

    Pouvez vous m aidez à corriger les erreurs, merci.

    currentEarningsGrowth = (close – close[3]) / close[3] * 100
    annualEarningsGrowth = (close – close[4]) / close[4] * 100
    revenueGrowth = (close – close[6]) / close[6] * 100
    profitMargins = (close – close[8]) / close[8] * 100

    peRatio = close / average[5](close)
    pbRatio = close / average[20](close)
    pegRatio = peRatio / annualEarningsGrowth

    volumeAverage = average[20](volume)

    shortMA = average[50](close)
    longMA = average[200](close)
    rsiValue = RSI[14](close)
    [macdLine, signalLine] = MACD[12, 26, 9](close)
    macdHist = macdLine – signalLine
    adxValue = ADX[14](high, low, close)
    [upperBB, middleBB, lowerBB] = BollingerBands[20, 2](close)
    obvValue = OBV(close, volume)
    accDistValue = AccDist(high, low, close, volume)
    [conversionLine, baseLine, spanA, spanB, laggingSpan] = IchimokuCloud(high, low, close)

    newsSentiment = 1
    socialSentiment = 1
    sectorRotation = 1
    geopoliticalStability = 1

    fundamentalCondition = currentEarningsGrowth > 25 and annualEarningsGrowth > 25 and revenueGrowth > 15 and profitMargins > 10 and peRatio < 20 and pbRatio < 3 and pegRatio < 1.5
    technicalCondition = shortMA > longMA and rsiValue > 30 and rsiValue < 70 and macdHist > 0 and adxValue > 20 and close > upperBB and obvValue > average[20](obvValue) and accDistValue > average[20](accDistValue) and conversionLine > baseLine and spanA > spanB and laggingSpan > close
    sentimentCondition = newsSentiment > 0 and socialSentiment > 0
    macroCondition = sectorRotation > 0 and geopoliticalStability > 0

    combinedCondition = fundamentalCondition and technicalCondition and sentimentCondition and macroCondition

    SCREENER[combinedCondition](“Buy”)

    #233555 quote
    robertogozzi
    Moderator
    Master

    Essayez de remplacer la dernière ligne par ceci :

    SCREENER[combinedCondition](combinedCondition AS “Buy”)
    #233561 quote
    timal dude
    Participant
    Junior

    Merci, mais ca ne semble pas fonctionné

    #233565 quote
    fifi743
    Participant
    Master

    dans le code donnée il y a une erreur

    [macdLine, signalLine] = MACD[12, 26, 9](close)

    en regardant de prêt ,il y a plein erreur

    voici le debut modifié

     

     

    currentEarningsGrowth = (close - close[3]) / close[3] * 100
    annualEarningsGrowth = (close - close[4]) / close[4] * 100
    revenueGrowth = (close - close[6]) / close[6] * 100
    profitMargins = (close - close[8]) / close[8] * 100
    
    peRatio = close / average[5](close)
    pbRatio = close / average[20](close)
    pegRatio = peRatio / annualEarningsGrowth
    
    volumeAverage = average[20](volume)
    
    shortMA = average[50](close)
    longMA = average[200](close)
    rsiValue = RSI[14](close)
    signalLine = MACD[12, 26, 9](close)
    macdHist = macdLine - signalLine
    adxValue = ADX[14]
    upperBB=BollingerUp[20](close)
    lowerBB=BollingerDown[20](close)
    middleBB=Average[20](close)
    obvValue = OBV
    Iván González, robertogozzi and timal dude thanked this post
    #233601 quote
    timal dude
    Participant
    Junior

    Merci beaucoup pour votre aide. je vais tester les codes. Bonne journee

    #233602 quote
    timal dude
    Participant
    Junior

    Merci d’avoir pris le temps de modifier les variables. Tout semble correcte.

Viewing 6 posts - 1 through 6 (of 6 total)
  • You must be logged in to reply to this topic.

Erreur à la fin des codes


ProScreener : Scanners de Marché & Détection

New Reply
Author
author-avatar
timal dude @ray11961 Participant
Summary

This topic contains 5 replies,
has 3 voices, and was last updated by timal dude
1 year, 8 months ago.

Topic Details
Forum: ProScreener : Scanners de Marché & Détection
Language: French
Started: 06/05/2024
Status: Active
Attachments: No files
Logo Logo
Loading...