doczero wrote:
Im trying to use the GetTimeUnit block to stop a system placing a trade if the last trade was within 30 min.
As we can see from your example, the GetTimeUnit block is working good, but in some cases the values in debug view for Visual JForex Interface has incorrect values, it means that you see the wrong values in Interface, but inside system it has the correct value. This issue is already known, to fix it is quite difficult, but anyway we will do improvements to solve it, as much as possible.
P.S. in Calculatuion expression you are calculate the DateTime variables, but as result you are defined as double, in this case better to use not double but DateTime variable type as well. Later we will do human view for date time.