Is it possible to change a timeframe variable using Modify Variable block? Is it right that the value is text format?

Is it possible to change a timeframe variable using Modify Variable block? Is it right that the value is text format?

can anyone help me to make EA using my trading strategy?
MULTILPE TRADE ON A SINGLE CHART
5 BUYS
5 SELL
then it will close all when target profit reach. Thank you