Seperating signals by stock

I was wondering if there is a way where you can have different signals generated for different symbols.

example for symbol "ABC"
buy = cross(rsi,20);
and for symbol "DEF"
buy = cross(rsi,10);

I hope the example is enough to get across what im trying to say. I want different requirements for different symbols.

Yes.

If (GetName() == “AAPL”) {
buy = cross(rsi,20);
}

if (GetName() == “MSFT”) {
buy = cross(rsi,10);
}