Something to PICK YOUR BRAINS ;>/

hi fellow Trons,
I have a basic request, I am looking to implement below logic in tradetron:

     if( condition 1) counter++;

    if(counter ==2 && condition1) then BUY or SELL;

Is it possible to implement this??

Thanks,
Farty