Erreur à la fin des codes
Forums › ProRealTime forum Français › Support ProScreener › Erreur à la fin des codes
- This topic has 5 replies, 3 voices, and was last updated 6 months ago by timal dude.
-
-
06/05/2024 at 2:44 PM #233542
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] * 100peRatio = close / average[5](close)
pbRatio = close / average[20](close)
pegRatio = peRatio / annualEarningsGrowthvolumeAverage = 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 = 1fundamentalCondition = 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 > 0combinedCondition = fundamentalCondition and technicalCondition and sentimentCondition and macroCondition
SCREENER[combinedCondition](“Buy”)
06/05/2024 at 4:27 PM #233555Essayez de remplacer la dernière ligne par ceci :
1SCREENER[combinedCondition](combinedCondition AS “Buy”)06/05/2024 at 6:07 PM #233561Merci, mais ca ne semble pas fonctionné
06/05/2024 at 7:20 PM #233565dans 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é
123456789101112131415161718192021currentEarningsGrowth = (close - close[3]) / close[3] * 100annualEarningsGrowth = (close - close[4]) / close[4] * 100revenueGrowth = (close - close[6]) / close[6] * 100profitMargins = (close - close[8]) / close[8] * 100peRatio = close / average[5](close)pbRatio = close / average[20](close)pegRatio = peRatio / annualEarningsGrowthvolumeAverage = average[20](volume)shortMA = average[50](close)longMA = average[200](close)rsiValue = RSI[14](close)signalLine = MACD[12, 26, 9](close)macdHist = macdLine - signalLineadxValue = ADX[14]upperBB=BollingerUp[20](close)lowerBB=BollingerDown[20](close)middleBB=Average[20](close)obvValue = OBV3 users thanked author for this post.
06/07/2024 at 3:43 AM #233601Merci beaucoup pour votre aide. je vais tester les codes. Bonne journee
06/07/2024 at 5:48 AM #233602Merci d’avoir pris le temps de modifier les variables. Tout semble correcte.
-
AuthorPosts
Find exclusive trading pro-tools on