tonbParticipant
Junior
i am looking for an indicator that recognizes candels with a body between zero and 1 point.
smallbody = abs(close-open) <= 1
@tonbijl
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 it from the French support forum. Thanks 🙂
The code above only works with assets/instruments that have a 1:1 price-to-pips ratio.
I suggest to make it portable across all assets by using PIPSIZE:
smallbody = abs(close-open) <= 1*PipSize
@tonbijl
I just realized you created another topic in the correct forum. I deleted it as it’s no longer needed.
tonbParticipant
Junior
The indicator does not work on the NQ Future even when I use PipSize
JSParticipant
Senior
BodySize=abs(Close-Open)*pipsize
If BodySize >0 and BodySize < 1 then
DrawPoint(BarIndex,High,3)coloured("red")
EndIf
Return