'problem with valuewhen in amibroker not working as required
I am trying to store value of a variable(changing regularly) at a given time in another variable in amibroker.
Below are few of the code lines for better understanding:
offsetCE = ValueWhen(TimeNum()==92300,offsetC,1);
offsetPE = ValueWhen(TimeNum()==92300,offsetP,1);
Here offsetC/P are variable changing every minute. and at 923 AM I am saving its value in offsetCE/PE. But when I am trying to check the values, the offsetPE offsetCE value are correct from 92300 AM to some random time (each day) for few candles, but after an hour or so the offsetPE and offsetCE values are completely random not even matching with offsetC and offsetP VALUES.
Can Anyone tell me where am I wrong?
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|
