I am very sorry to paste whole code.
I started my work from scrap and used just buy/sell (hollow triangles) of nirvana.
thought to use 8 buy sell conditions of my own
and 1st of them is
Buy10 = C>Ref(HHV(High,Buyperiods),-1) AND Cross(xx,0);
Sell10 = C<Ref(LLV(Low,Sellperiods),-1) AND Cross(xx,0);
which I used in code(for which i posted pic).
Rest, whole of code is waste for me, it has no role in my afl.
Now I left the work in midway.
I started my work from scrap and used just buy/sell (hollow triangles) of nirvana.
thought to use 8 buy sell conditions of my own
and 1st of them is
Buy10 = C>Ref(HHV(High,Buyperiods),-1) AND Cross(xx,0);
Sell10 = C<Ref(LLV(Low,Sellperiods),-1) AND Cross(xx,0);
which I used in code(for which i posted pic).
Rest, whole of code is waste for me, it has no role in my afl.
Now I left the work in midway.