? operator Problem in MQL5

 

Hey, I am want to set the expirationtime of a Pending stop order, depending of a bool and  the starting time and ending time of aTimerange.

The bool will be set during optimization (if i want a 24Hours expiration) while the rest, decides if the Expiration should end on a different part of the range (depending if the range lays overnight or intraday)

expirationtime = H24Expirationbool==true ? tradeTimeBegin+86400 : (inp_TradeTimeBegin>inp_CheckTimeBegin ? checkTimeBegin+86400 : checkTimeEnd);

In MQL4 it worked perfectly fine, but now i am only getting problems here. Any ideas? (Compler works fine, but during test i get "[Invalid expression]"

the problem lays more likely here:

inp_TradeTimeBegin>inp_CheckTimeBegin ? checkTimeBegin+86400 : checkTimeEnd
 

What are the types and values of all these variables? 

 
Why not break these down into if(){} conditionals? It will be a lot easier to understand.