How can I get the pinescript equivalent of this mql4 code.
Tf1 and Tf2 are time-frames, i is an int variable.
Tf1 and Tf2 are time-frames, i is an int variable.
QuoteDislikedif (iTime(NULL, TF2, 0) == LatBarTime)
return (0);
LatBarTime = iTime(NULL, TF2, 0);
for (i = HistoryBars + Len; i > 0; i--)
Sig_A = iBarShift(NULL, TF1, iTime(NULL, TF2, i))