Code example: Crossover on the current bar
Thank you. Exactly what I was searching for.

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
Hello guys,
based on 2 moving averages (fast and slow), I want to create an indicator cv which is
When I add the indicator to the chart, cv[i] is always zero and checking the log, ExtFastMaBuffer[0] never changes the value besides being a Timeseries (set true in OnInit()). Strangely enough, the same code run in the Strategy Tester actually outputs sometimes cv[i] = 1. Any advice is appreciated.