Like a countdown timer?
-
My original idea is to get the candle 0 time when trend (or down) is up and trade within that timeframe. And the (say) when the 24 hour limit is up, the buy/sell stops and wait for another trend.
i tried using var vTradeStart (string) and using 'modify var' block from | Value > Time > Candle Time > Candle ID (0) > Candle timeframe (Daily) but when the data on the comment block shows 12314654 and i couldnt use it. the idea is to add the 'limit' and use it on expiry for the buy sell
look around the forum and the tools available but nothing come close like a countdown timer (trade within the so-call 'perfect moment').
any seniors know how to make such feature via existing function, please kindly share your knowledge
@fxDreema why didnt you think of this sir? 
-

Dosn't know if this will be the right thing , but read your question and solved my own question that ive thought about for ages , if so win win !

-
looks legit! i will try.. yesterday managed to use get NOW value of time via mod variable and shift forward 60mins on another var. then use vWalkForardTime - vStartTime to compare how much time is left.
yours is more easier! brillant idea!!
-

the above somehow didnt work and i use the real time against the end time (TimeNow < TimeStop) which i save from Value - Time (as you can see in the photo 'Stop')
@fxDreema, Sir - just to confirm my solution can work in LIVE trading even thou the time saved from Value - Time (store as seconds?) displayed as seconds?

-
You can see the current time in seconds since 1.1.1970 here: https://www.epochconverter.com/
So yes, the time is measured in seconds since that day. It appears as seconds, because Value -> Numeric has "double" time, which is floating number, and the value is treated as a number. Value -> Time has "datetime" type and the EA knows to format it a little bit. Any "datetime" variable is integer on a lower level. -
i tested the 'on timer' and able to get it to work as i intended on a live account. at least now i know how this timer work and might need it someday

-
Can I Show only time? I don't want show Date
-
@vnpython-0 hi can you share your blocks to see how its done?thx