pas de resultat screnner alors que indicateur ok
Forums › ProRealTime forum Français › Support ProBuilder › pas de resultat screnner alors que indicateur ok
- This topic has 13 replies, 2 voices, and was last updated 6 years ago by Nuno.
-
-
11/19/2018 at 1:51 PM #85189
j’ai un screener qui ne renvoie pas de resultat alors que l’indicateur est ok
où est mon erreur?
merci pour votre aide
pas de resultat screener???12345678910111213once monthlyHigh=undefinedonce monthlyLow=undefineddailyHigh= DHigh(1)dailyLow= DLow(1)// monthly high/lowIf Month <> Month[1] thenmonthlyHigh = Highest[BarIndex - lastMonthBarIndex](dailyHigh)monthlyLow = Lowest[BarIndex - lastMonthBarIndex](dailyLow)lastMonthBarIndex = BarIndexENDIFC1 = close > monthlyLow and close < monthlyHighSCREENER[c1](close as "close")11/19/2018 at 4:07 PM #8519311/19/2018 at 11:10 PM #8523511/20/2018 at 11:06 AM #85289Bien sûr car dans ce cas il aurait fallu modifier c1 pour que le screener retourne des valeurs (en le forçant à 1 par exemple), puisque son problème c’est bien ça 🙂
Bref, le problème était notre soucis bien connu de période inférieure ou nulle rejetée par ProScreener (et sans message d’erreurs contrairement à ProBuilder) donc on tourne en rond si on ne sait pas 😐
12345678910111213once monthlyHigh=undefinedonce monthlyLow=undefineddailyHigh= DHigh(1)dailyLow= DLow(1)// monthly high/lowIf Month <> Month[1] thenmonthlyHigh = Highest[max(1,BarIndex - lastMonthBarIndex)](dailyHigh)monthlyLow = Lowest[max(1,BarIndex - lastMonthBarIndex)](dailyLow)lastMonthBarIndex = BarIndexENDIFC1 = close > monthlyLow and close < monthlyHighSCREENER[c1](monthlyhigh AS "mh")1 user thanked author for this post.
11/20/2018 at 2:18 PM #85323un grand merci Nicolas pour votre aide, ça fonctionne!
je ne savais pas que Proscreener n’affichait pas de message d’erreur
dans le souci de m’améliorer, j’ai essayé de faire ce que vous m’aviez préconisé avec c1=1 pour controler une variable, mais pas de resultat :(… juste pour savoir à l’avenir
12345678910111213once monthlyHigh=undefined//once monthlyLow=undefineddailyHigh= DHigh(1)//dailyLow= DLow(1)// monthly high/lowif Month <> Month[1] thenmonthlyHigh = Highest[BarIndex - lastMonthBarIndex](dailyHigh)//monthlyLow = Lowest[BarIndex - lastMonthBarIndex](dailyLow)lastMonthBarIndex = BarIndexENDIF//C1 = close > monthlyLow and close < monthlyHighC1 = 1SCREENER[c1](monthlyhigh AS "mh")Nuno
11/20/2018 at 3:22 PM #8533111/20/2018 at 4:03 PM #8533911/20/2018 at 8:02 PM #8535411/22/2018 at 2:48 PM #85494merci pur les explications
je viens de modifier un nouveau code pour proscreener afin de determnier les actions dont la cloture est au dessus de la boll sup mensuelle et avec les bandes de bollinger mensuelles qui divergent
j’y ai apporté les modifications du screener precedent pour eviter les erreurs periode nulle mais le screener n’affiche rien
monthlyHigh = Highest[max(1,BarIndex – lastMonthBarIndex)](dailyHigh)monthlyLow = Lowest[max(1,BarIndex – lastMonthBarIndex)](dailyLow)en mettant la condition C1 = 1 pour forcer et controler les variables, il me dit que plusieurs variables ne sont pas utilisées???? comment controler alors?123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123TIMEFRAME(daily)once haut = highonce bas = lowhaut = max(haut,high)bas = min(bas,low)once monthlyHigh = undefinedonce monthlyLow = undefinedonce monthlyClose = undefineddailyHigh = DHigh(1)dailyLow = DLow(1)if openMonth <> openMonth[1] thenmonthlyHigh = Highest[max(1,BarIndex - lastMonthBarIndex)](dailyHigh)monthlyLow = Lowest[max(1,BarIndex - lastMonthBarIndex)](dailyLow)monthlyClose = DClose(1)lastMonthBarIndex = BarIndex//h20 = h19h19 = h18h18 = h17h17 = h16h16 = h15h15 = h14h14 = h13h13 = h12h12 = h11h11 = h10h10 = h9h9 = h8h8 = h7h7 = h6h6 = h5h5 = h4h4 = h3h3 = h2h2 = h1h1 = monthlyHighhaut = high//l20 = l19l19=l18l18=l17l17=l16l16=l15l15=l14l14=l13l13=l12l12=l11l11=l10l10=l9l9=l8l8=l7l7=l6l6=l5l5=l4l4=l3l3=l2l2=l1l1= monthlyLowbas = low//a20=a19a19=a18a18=a17a17=a16a16=a15a15=a14a14=a13a13=a12a12=a11a11=a10a10=a9a9=a8a8=a7a7=a6a6=a5a5=a4a4=a3a3=a2a2=a1a1 = monthlyClosezz=zz+1endiftp1=(h1+l1+a1)/3tp2=(h2+l2+a2)/3tp3=(h3+l3+a3)/3tp4=(h4+l4+a4)/3tp5=(h5+l5+a5)/3tp6=(h6+l6+a6)/3tp7=(h7+l7+a7)/3tp8=(h8+l8+a8)/3tp9=(h9+l9+a9)/3tp10=(h10+l10+a10)/3tp11=(h11+l11+a11)/3tp12=(h12+l12+a12)/3tp13=(h13+l13+a13)/3tp14=(h14+l14+a14)/3tp15=(h15+l15+a15)/3tp16=(h16+l16+a16)/3tp17=(h17+l17+a17)/3tp18=(h18+l18+a18)/3tp19=(h19+l19+a19)/3//tp20=(h20+l20+a20)/3mblast = ((close+bas+haut)/3+tp1+tp2+tp3+tp4+tp5+tp6+tp7+tp8+tp9+tp10+tp11+tp12+tp13+tp14+tp15+tp16+tp17+tp18+tp19)/20volalast = ((square((close+bas+haut)/3)+square(tp1)+square(tp2)+square(tp3)+square(tp4)+square(tp5)+square(tp6)+square(tp7)+ square(tp8)+square(tp9)+square(tp10)+square(tp11)+square(tp12)+square(tp13)+square(tp14)+square(tp15)+square(tp16)+square(tp17)+square(tp18)+square(tp19))/20)-square(mblast)ecartlast = sqrt(volalast)ublast = mblast +(2*ecartlast)lblast = mblast -(2*ecartlast)if zz < 20 thenmblast=undefinedublast=undefinedlblast=undefinedendif//c1 = close > ublast and ublast > ublast[1] AND lblast < lblast[1]//c1= 1SCREENER[c1](mblast as "mb")11/22/2018 at 6:19 PM #8551711/22/2018 at 6:57 PM #85522même en commentant les variables non utilisées, je n’ai aucune valeur dans Proscreener
je voulais suivre la variable mb
ci dessous le code
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123TIMEFRAME(daily)once haut = highonce bas = lowhaut = max(haut,high)bas = min(bas,low)once monthlyHigh = undefinedonce monthlyLow = undefinedonce monthlyClose = undefineddailyHigh = DHigh(1)dailyLow = DLow(1)if openMonth <> openMonth[1] thenmonthlyHigh = Highest[max(1,BarIndex - lastMonthBarIndex)](dailyHigh)monthlyLow = Lowest[max(1,BarIndex - lastMonthBarIndex)](dailyLow)monthlyClose = DClose(1)lastMonthBarIndex = BarIndex//h20 = h19h19 = h18h18 = h17h17 = h16h16 = h15h15 = h14h14 = h13h13 = h12h12 = h11h11 = h10h10 = h9h9 = h8h8 = h7h7 = h6h6 = h5h5 = h4h4 = h3h3 = h2h2 = h1h1 = monthlyHighhaut = high//l20 = l19l19=l18l18=l17l17=l16l16=l15l15=l14l14=l13l13=l12l12=l11l11=l10l10=l9l9=l8l8=l7l7=l6l6=l5l5=l4l4=l3l3=l2l2=l1l1= monthlyLowbas = low//a20=a19a19=a18a18=a17a17=a16a16=a15a15=a14a14=a13a13=a12a12=a11a11=a10a10=a9a9=a8a8=a7a7=a6a6=a5a5=a4a4=a3a3=a2a2=a1a1 = monthlyClosezz=zz+1endiftp1=(h1+l1+a1)/3tp2=(h2+l2+a2)/3tp3=(h3+l3+a3)/3tp4=(h4+l4+a4)/3tp5=(h5+l5+a5)/3tp6=(h6+l6+a6)/3tp7=(h7+l7+a7)/3tp8=(h8+l8+a8)/3tp9=(h9+l9+a9)/3tp10=(h10+l10+a10)/3tp11=(h11+l11+a11)/3tp12=(h12+l12+a12)/3tp13=(h13+l13+a13)/3tp14=(h14+l14+a14)/3tp15=(h15+l15+a15)/3tp16=(h16+l16+a16)/3tp17=(h17+l17+a17)/3tp18=(h18+l18+a18)/3tp19=(h19+l19+a19)/3//tp20=(h20+l20+a20)/3mblast = ((close+bas+haut)/3+tp1+tp2+tp3+tp4+tp5+tp6+tp7+tp8+tp9+tp10+tp11+tp12+tp13+tp14+tp15+tp16+tp17+tp18+tp19)/20//volalast = ((square((close+bas+haut)/3)+square(tp1)+square(tp2)+square(tp3)+square(tp4)+square(tp5)+square(tp6)+square(tp7)+ square(tp8)+square(tp9)+square(tp10)+square(tp11)+square(tp12)+square(tp13)+square(tp14)+square(tp15)+square(tp16)+square(tp17)+square(tp18)+square(tp19))/20)-square(mblast)//ecartlast = sqrt(volalast)//ublast = mblast +(2*ecartlast)//lblast = mblast -(2*ecartlast)//if zz < 20 thenmblast=undefined//ublast=undefined//lblast=undefinedendif////c1 = close > ublast and ublast > ublast[1] AND lblast < lblast[1]c1= 1SCREENER[c1](mblast as "mb")11/27/2018 at 11:07 AM #8581211/27/2018 at 11:37 AM #8581611/27/2018 at 2:09 PM #85827 -
AuthorPosts
Find exclusive trading pro-tools on