Solved:
Code:
bool TradedThisCandle(int tf)
{
	int n = 0;
	
	for(all_trades){
		if(strstr(TradeAsset, Asset))	{	//trade belong to current asset 
			if(strstr(TradeAlgo, Algo)){	//trade belongs to current algo
				if(Bar-TradeBarOpen < tf){ //enumerate trades that were opened in the last 
				n += 1; 	
				}
			}	
		}
	} //end for(all_trades)
	
	if(n > 0) {
		printf("#nAlready traded this candle");
		return true;
	}
	else {
		printf("#nWe have not traded this candle yet");
		return false;
	}
}



Still curious about frameSync() though laugh

Cheers,
BobbyT