J’ai repris les parametres des vagues d’elliott de Nicolas en tracant les 150/162 et 250/262….j aimerai que des couleurs de boites ( en blanc par exemple avec transparence modulable ) 150/162 et 250/262 s’affichent en automatique. Voici le code du 150 puis celui du 162. Je n ai aucune idée ou placer la commende fillcolor dans ces codes. Merci.
1-
//PRC_Scalping with Parabolic SAR and Fibonacci | indicator
//03.09.2019
//Nicolas @ http://www.prorealcode.com
//Sharing ProRealTime knowledge
// — settings
//plotbar=10 //bars duration for plotting the fib zones
// — end of settings
sarfast=SAR[0.02,0.02,0.2]
sarslow=SAR[0.005,0.005,0.05]
//colors
if close>sarfast then //bullish trend
r=0
g=255
else //bearish trend
r=255
g=0
endif
//highs and lows
if close<sarfast then
ll=min(ll,low)
else
hh=max(hh,high)
endif
if close>sarfast and close[1]<sarfast[1] then //new bullish signal
fibo0=ll
ll=sarslow //reset ll
if close>sarslow then
startbar=barindex
irange=high-fibo0
entry = fibo0+(irange/2)
itarget = fibo0+irange*1.5
istop = fibo0-2*pointsize
//drawarrowup(startbar,fibo0) coloured(255,255,255)
drawtext(“.”,barindex,entry-0.1*pointsize,dialog,bold,1) coloured(0,255,255)
//drawtext(“sl”,barindex,istop-0.8*pointsize,dialog,bold,10) coloured(255,255,255)
drawtext(“150”,barindex,itarget-0.02*pointsize,dialog,standard,12) coloured(250,250,250)
endif
endif
if close<sarfast and close[1]>sarfast[1] then //new bearish signal
fibo0=hh
hh=0 //reset hh
if close<sarslow then
startbar=barindex
irange=fibo0-low
entry = fibo0-(irange/2)
itarget = fibo0-irange*1.5
istop = fibo0+2*pointsize
//drawarrowdown(startbar,fibo0) coloured(255,255,0)
drawtext(“.”,barindex,entry+0.5*pointsize,dialog,bold,1) coloured(0,255,255)
//drawtext(“sl”,barindex,istop-0.8*pointsize,dialog,bold,10) coloured(255,255,255)
drawtext(“150”,barindex,itarget-0.02*pointsize,dialog,standard,12) coloured(250,250,250)
endif
endif
//plot fib zones
if barindex-startbar<=plotbar then
if close>sarslow then //bullish trend
//drawsegment(startbar,istop,barindex,istop,5) coloured(0,250,0) //stoploss
//drawsegment(startbar,entry,barindex,entry,3) coloured(0,0,0) //entry at 50% fibo
drawsegment(startbar,itarget,barindex,itarget) coloured(250,250,255)STYLE(dottedline, 1) //target at 161.8% fibo
endif
if close<sarslow then //bearish trend
//drawsegment(startbar,istop,barindex,istop,5) coloured(250,0,0) //stoploss
//drawsegment(startbar,entry,barindex,entry,3) coloured(0,0,0) //entry at 50% fibo
drawsegment(startbar,itarget,barindex,itarget) coloured(250,250,250)STYLE(dottedline, 1) //target at 161.8% fibo
endif
endif
return
2-
//PRC_Scalping with Parabolic SAR and Fibonacci | indicator
//03.09.2019
//Nicolas @ http://www.prorealcode.com
//Sharing ProRealTime knowledge
// — settings
//plotbar=10 //bars duration for plotting the fib zones
// — end of settings
sarfast=SAR[0.02,0.02,0.2]
sarslow=SAR[0.005,0.005,0.005]
//colors
if close>sarfast then //bullish trend
r=0
g=255
else //bearish trend
r=255
g=0
endif
//highs and lows
if close<sarfast then
ll=min(ll,low)
else
hh=max(hh,high)
endif
if close>sarfast and close[1]<sarfast[1] then //new bullish signal
fibo0=ll
ll=sarslow //reset ll
if close>sarslow then
startbar=barindex
irange=high-fibo0
entry = fibo0+(irange/2)
itarget = fibo0+irange*1.618
istop = fibo0-2*pointsize
//drawarrowup(startbar,fibo0) coloured(255,255,255)
drawtext(“b”,barindex,entry-0.01*pointsize,dialog,bold,5) coloured(255,255,255)
drawtext(“.”,barindex,istop-1*pointsize,dialog,bold,1) coloured(255,255,255)
drawtext(“162 “,barindex,itarget-0.4*pointsize,dialog,bold,15) coloured(255,255,255)
endif
endif
if close<sarfast and close[1]>sarfast[1] then //new bearish signal
fibo0=hh
hh=0 //reset hh
if close<sarslow then
startbar=barindex
irange=fibo0-low
entry = fibo0-(irange/2)
itarget = fibo0-irange*1.618
istop = fibo0+2*pointsize
//drawarrowdown(startbar,fibo0) coloured(255,255,0)
drawtext(“s”,barindex,entry+2*pointsize,dialog,standard,5) coloured(255,255,255)
drawtext(“.”,barindex,istop-0.8*pointsize,dialog,bold,10) coloured(255,255,255)
drawtext(“162 “,barindex,itarget-0.4*pointsize,dialog,bold,12) coloured(255,255,255)
endif
endif
//plot fib zones
if barindex-startbar<=plotbar then
if close>sarslow then //bullish trend
//drawsegment(startbar,istop,barindex,istop) coloured(0,250,0) //stoploss
//drawsegment(startbar,entry,barindex,entry) coloured(250,255,255) //entry at 50% fibo
//drawsegment(startbar,itarget,barindex,itarget) coloured(255,255,255) //target at 161.8% fibo
endif
if close<sarslow then //bearish trend
//drawsegment(startbar,istop,barindex,istop) coloured(250,0,0) //stoploss
//drawsegment(startbar,entry,barindex,entry) coloured(255,255,0) //entry at 50% fibo
//drawsegment(startbar,itarget,barindex,itarget) coloured(255,255,255) //target at 161.8% fibo
endif
endif
return