double currentFastEMA = fastEMAValues[0]; double previousFastEMA = fastEMAValues[1];You didn't set the source to as-series before populating values.

You are missing trading opportunities:
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
Registration
Log in
You agree to website policy and terms of use
If you do not have an account, please register
Now as per the logic, previous value of candle T-1 should match with current value of candle T-2, but in the logs which I have attached its not matching.
Can anyone please verify my code and the logs and suggest what I can change in the code or what is the issue ?
Many Thanks