Hi there!
Just in case any programmer may help me. In the indicator shared below, I am trying to round the point where the F line crosses up the level 810 and down the level 410. I understand that I need two points as a reference, namely x and y. For Y the value is clearly 810 but in the case of X, I do not really know what value to use. Do you guys know if there is a change to use TIME as value for X? If not possible, any idea how to do it? Thanks in advance to the community.
Ind1=ROC[24](close)
Ind2=ROC[40](close)
Ind3=averagetruerange[61](close)
Ind4=average[61](close)
Ind5=Ind3/Ind4
rem F contiene la Inercia Alcista
F=((Ind1*0.4+Ind2*0.2)/(Ind5*0.4))
rem Mostramos el indicador para la toma de decisiones
PasoUp=810
PasoDown=420
Cero=0
IAentrada=F crosses over PasoUp
IAsalida= F crosses under PasoDown
if IAentrada then
drawpoint(F[1],810,5)coloured(0,255,0,50) bordercolor(0,255,25)
elsif IAsalida then
drawpoint(F[1],420,5)coloured(0,255,0,50) bordercolor(255,0,0)
endif
return cero as “cero”, PasoUp as “PasoUp”, PasoDown as “PasoDown”, F as “Fuerza Alcista”
Only post in the language of the forum that you are posting in. For example English only in the English speaking forums and French only in the French speaking forums.
I moved this topic from the Spanish support.
Thank you 🙂
Change the DRAWPOINT lines to:
drawpoint(BarIndex,810,5)coloured(0,255,0,50) bordercolor(0,255,25)
drawpoint(BarIndex,420,5)coloured(0,255,0,50) bordercolor(255,0,0)
Hi Robert!
Thanks for changing my post to the english forum. In regards with your answer first of all thank you. The point is that I dont have the intention to open the indicator in the price graph but alone so I cant use the “barIndex” as an X value. That is the reason I suggested if it was possible to use some sort of “time” instruction for the X value
No, it can only be a bar ID.
Ups. what an inconvenient! anyway, thank you for the support
Have a blast!