//@version=5 indicator("ICT Outil Dynamique Complet", overlay=true) // === PARAMÈTRES…
- User
//@version=5 indicator("ICT Outil Dynamique Complet", overlay=true)
// === PARAMÈTRES D'AFFICHAGE === var g_struct = "Structure Marché" var g_liq = "Liquidité" var g_pd = "PD Arrays" var g_ob = "Order Blocks" var g_ote = "OTE" var g_fvg = "FVG" var g_break = "Breakers" var g_zones = "Zones" var g_ma = "Moyennes Mobiles"
showBoS = input.bool(true, "BoS & ChoCH", group=g_struct) showMSS = input.bool(true, "MSS", group=g_struct) showSweep = input.bool(true, "Sweeps", group=g_liq) showPD = input.bool(true, "PD Arrays", group=g_pd) showOB = input.bool(true, "Order Blocks", group=g_ob) showOTE = input.bool(true, "OTE + Fibo", group=g_ote) showFVG = input.bool(true, "FVG", group=g_fvg) showBreaker = input.bool(true, "Breakers", group=g_break) showPremDisc = input.bool(true, "Premium/Discount", group=g_zones) showVWAP = input.bool(true, "VWAP", group=g_ma) showSMA200 = input.bool(true, "SMA 200", group=g_ma)
// === VARIABLES GLOBALES === var dernierHaut = 0.0 var dernierBas = 0.0 var tendance = "none" var tableauFVG = array.new() var tableauOB = array.new() var tableauBreakers = array.new()
// === FONCTIONS PRINCIPALES === detecterSwing() => [h, l] = [high, low] nouveauHaut = h > dernierHaut nouveauBas = l < dernierBas
codeif nouveauHaut dernierHaut := h if nouveauBas dernierBas := l [nouveauHaut, nouveauBas]detecterBoSChoCH() => [nH, nB] = detecterSwing() bos = false choch = false niveauBoS = na niveauChoCH = na
codeif tendance == "none" tendance := nH ? "bull" : nB ? "bear" : "none" else if tendance == "bull" and nB choch := true tendance := "bear" niveauChoCH := low else if tendance == "bear" and nH choch := true tendance := "bull" niveauChoCH := high if (tendance == "bull" and nH) or (tendance == "bear" and nB) bos := true niveauBoS := close [bos, choch, niveauBoS, niveauChoCH]detecterMSS() => var dernierSwingHaut = na var dernierSwingBas = na var currentSwingHaut = na var currentSwingBas = na
code - Assistant
- User
j'ai des bug dans le code voici 1 Syntax error at input '['
- Assistant
- User
Cannot modify global variable 'dernierHaut' in function
- Assistant
Other models, same or similar prompt
Responses were produced in different, uncontrolled contexts (system prompts, settings, prior turns). This is not a benchmark.