Conversione Hook
Forums › ProRealTime forum Italiano › Supporto ProScreener › Conversione Hook
- This topic has 6 replies, 3 voices, and was last updated 5 years ago by Nicolas.
-
-
05/19/2019 at 1:00 AM #98814
Salve, chiedo aiuto per convertire questo codice in formato metastock per utilizzarlo con la prorealtime.
Grazie.
<pre class=”lang:probuilder decode:true ” title=”Hook”>Col A: Peak(1,H,10)<=1.1*Peak(2,H,10)
AND Peak(1,H,10)>=0.9*Peak(2,H,10) AND Trough(1,L,10)>=1.1*Trough(2,H,10) AND Trough(1,L,10)<=0.9*Trough(2,H,10)
AND LLV(L,25)Col B: Peak(1,H,5)<=1.1*Peak(2,H,5)
AND Peak(1,H,5)>=0.9*Peak(2,H,5)AND Trough(1,L,5)>=1.1*Trough(2,H,5)AND Trough(1,L,5)<=0.9*Trough(2,H,5)
AND LLV(L,25)Col C: Peak(1,H,1)<=1.1*Peak(2,H,1)
AND Peak(1,H,1)>=0.9*Peak(2,H,1) AND Trough(1,L,1)>=1.1*Trough(2,H,1)AND Trough(1,L,1)<=0.9*Trough(2,H,1)
AND LLV(L,25)Filter ColA=1 OR ColB=1 OR ColC=1
05/19/2019 at 1:11 AM #98816Hook12345678910111213Col A: Peak(1,H,10)<=1.1*Peak(2,H,10)AND Peak(1,H,10)>=0.9*Peak(2,H,10) AND Trough(1,L,10)>=1.1*Trough(2,H,10) AND Trough(1,L,10)<=0.9*Trough(2,H,10)AND LLV(L,25)Col B: Peak(1,H,5)<=1.1*Peak(2,H,5)AND Peak(1,H,5)>=0.9*Peak(2,H,5)AND Trough(1,L,5)>=1.1*Trough(2,H,5)AND Trough(1,L,5)<=0.9*Trough(2,H,5)AND LLV(L,25)Col C: Peak(1,H,1)<=1.1*Peak(2,H,1)AND Peak(1,H,1)>=0.9*Peak(2,H,1) AND Trough(1,L,1)>=1.1*Trough(2,H,1)AND Trough(1,L,1)<=0.9*Trough(2,H,1)AND LLV(L,25)Filter ColA=1 OR ColB=1 OR ColC=1ho inserito di nuovo il codice in formato metastock perchè ho visto che sopra manca una riga, questo è corretto.
Grazie.
05/19/2019 at 8:23 AM #98826Chiedi la conversione cliccando su “Ask for a free conversion” dal menu HELP.
05/25/2019 at 9:44 PM #9944105/26/2019 at 2:49 PM #9946305/26/2019 at 3:12 PM #9947105/28/2019 at 8:59 AM #99567Mi dispiace dire che ci sono alcune difficoltà a farlo funzionare come le funzioni interne del codice originale .. Ecco cosa ho fatto finora ed è ancora bacato.
1234567891011121314151617181920212223242526272829303132333435363738394041424344percent = 1zzh = ZigZag[percent](high)zzl = ZigZag[percent](low)peak = zzh<>zzh[1] and zzh>zzh[1]trough = zzl<>zzl[1] and zzl<zzl[1]troughh = zzh<>zzh[1] and zzh<zzh[1]p1=0p2=0t1=0t2=0for i = 0 to 254 doif peak[i] thenif p2=0 and p1>0 thenp2=zzh[i]endifif p1=0 thenp1=zzh[i]endifendifif trough[i] thenif t1=0 thent1=zzl[i]endifendifif troughh[i] thenif t2=1 thent2=zzh[i]endifif t2=0 thent2=1endifendifcomplete = p1>0 and p2>0 and t1>0 and t2>0if complete thenbreakendifnexthook = P1<=1.1*P2 and P1>=0.9*P2 AND T1>=1.1*T2 AND T1<=0.9*T2 AND low=lowest[25](low)screener[hook] -
AuthorPosts
Find exclusive trading pro-tools on