Forum

CryptEncode(SHA1) is not returning the right SHA1 Hash

Hello friends, In my code I need to encode a key into SHA1 hash but as I tried so many times the generated hash is not what it should be for the same src[]. Here is my code: From the code below the generated hash is: "386c7d21720cc304f8d97435de3080fbbdf3c7b1" While it should be

Problem: Regarding iHigh() and Sleep() in scripts

Hello everybody, I am writing a simple script to do action at some given time, it reads the current time and sleep for some minutes till the event time happens. The problem which I am facing is that after the sleep finishes, when I want to read the current bar details (iHigh) it gives me the detail