Hello all members and admin, I am new user and don’t have much knowledge of programming, this is very first post in this forum. With the help of available posts in the forum i have been able to write a simple afl code.
SetBarsRequired( sbrAll, 0 );
count = 0;
i = 0;
for( i =1; i <=50; i++ )
b1 = C>ref(c,-1);
s1 = C<ref(c,-1);
b1 = TimeFrameExpand(b1, i*inDaily);
s1 = TimeFrameExpand(s1, i*inDaily);
AddColumn((i), "t.frame" , 1.1,colorDefault, IIf((s1), colorred, IIf((b1), colorGreen, coloryellow )));
I am bit confused about TimeframeExpand() function, whether it is properly implemented or not. please help by guiding me about the proper use of TimeframeExpand function in AddTocolumn() function.
THANKS & REGARDS