Hi, May i ask if the A and B are the same?
A
c2 = (indicator1[1] crosses over indicator2[1]) or (indicator1[2] crosses over indicator2[2])
<hr />
B
c1 = (indicator1 crosses over indicator2)
c2 = c1[1] or c1[2]
thanks
Do you get the same result with A and B when testing (A only, then B only) as part of an Auto-System?
If No, then A is not the same as B.
JSParticipant
Senior
Hi @WingYip
With a simple test you can see that A and B give the same result…
S1=Average[20](Close)
S2=Average[50](close)
If S1[1] Crosses Over S2[1] or S1[2] Crosses Over S2[2] then
DrawArrowUp(BarIndex, S1+50) Coloured(255,0,0)
EndIf
C1 = S1 Crosses Over S2
If C1[1] or C1[2] then
DrawArrowDown(BarIndex, S1-50)Coloured(0,255,0)
EndIf
Return