ajout bollenger sur MBFXtiming 2
Forums › ProRealTime forum Français › Support ProBuilder › ajout bollenger sur MBFXtiming 2
- This topic has 2 replies, 3 voices, and was last updated 1 year ago by Zigo.
Viewing 3 posts - 1 through 3 (of 3 total)
-
-
01/03/2024 at 10:45 AM #225924
Bonjour je n’arrive pas à ajouter les bandes de bollenger sur l’indicateur MBFX Timing 2, j’ai un message d’erreur ”un paramètre de type entier est attendu avec average”
j’ai essayé de transformer la valeur “LD24” en entier mais ma fonction est fausse, auriez vous une solution ?voici le code avec ma modif sur la fin
12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394// --- settings//Len = 7//Filter = 0.0// --- end of settingsli224=0if (ld8 = 0.0) thenld8 = 1.0ld16 = 0.0if (Len - 1 >= 5) thenld0 = Len - 1.0elseld0 = 5.0endifld80 = 100.0 * ((High[li224] + Low[li224] + Close[li224]) / 3.0)ld96 = 3.0 / (Len + 2.0)ld104 = 1.0 - ld96elseif (ld0 <= ld8) thenld8 = ld0 + 1.0elseld8 = ld8+1.0endifld88 = ld80ld80 = 100.0 * ((High[li224] + Low[li224] + Close[li224]) / 3.0)ld32 = ld80 - ld88ld112 = ld104 * ld112 + ld96 * ld32ld120 = ld96 * ld112 + ld104 * ld120ld40 = 1.5 * ld112 - ld120 / 2.0ld128 = ld104 * ld128 + ld96 * ld40ld208 = ld96 * ld128 + ld104 * ld208ld48 = 1.5 * ld128 - ld208 / 2.0ld136 = ld104 * ld136 + ld96 * ld48ld152 = ld96 * ld136 + ld104 * ld152ld56 = 1.5 * ld136 - ld152 / 2.0ld160 = ld104 * ld160 + ld96 * Abs(ld32)ld168 = ld96 * ld160 + ld104 * ld168ld64 = 1.5 * ld160 - ld168 / 2.0ld176 = ld104 * ld176 + ld96 * ld64ld184 = ld96 * ld176 + ld104 * ld184ld144 = 1.5 * ld176 - ld184 / 2.0ld192 = ld104 * ld192 + ld96 * ld144ld200 = ld96 * ld192 + ld104 * ld200ld72 = 1.5 * ld192 - ld200 / 2.0if (ld0 >= ld8 and ld80 <> ld88) thenld16 = 1.0endifif (ld0 = ld8 and ld16 = 0.0) thenld8 = 0.0endifendifif (ld0 < ld8 and ld72 > 0.0000000001) thenld24 = 50.0 * (ld56 / ld72 + 1.0)if (ld24 > 100.0) thenld24 = 100.0endifif (ld24 < 0.0) thenld24 = 0.0endifelseld24 = 50.0endifif (ld24>ld24[1]- Filter) thendirbar=1r=0g=128b=0endifif (ld24<ld24[1]+Filter) thendirbar=-1r=255g=100b=0endifif (ld24=ld24[1]+Filter) thendirbar=0endif//Zone bleuif dirbar<>dirbar[1] thenr=0g=0b=200BACKGROUNDCOLOR (214, 234, 248)endifentier=ROUND(ld24)data = customcloseMA = average[entier](data)BolUp = MA+STD[entier]*devBolDn = MA-STD[entier]*devreturn ld24 coloured(r,g,b) style(line,2) as "MBFX timing",70 coloured(168,168,168) style(dottedline), 30 coloured(168,168,168) style(dottedline), 50 coloured(168,168,168) style(dottedline), BolUp01/03/2024 at 11:22 AM #22592501/05/2024 at 3:52 PM #225992 -
AuthorPosts
Viewing 3 posts - 1 through 3 (of 3 total)