Thanks for all your support on here, its really appreciated for a newbie.
How do I code the difference between two simple moving averages as the offset function doesn't really work and the trades are just triggered on the close of the cross-over and not the difference between the two SMA's
For example, I want to trigger a LONG trade if the difference between an SMA(5) and SMA(20) is >10 points and reverse if the difference is negative 10 pts.
I had a go at the coding but kept getting errors due to my lack of C# skills.

If anyone out here can help, I can keep the grey hairs at bay!
cheers,
Leonie

Comment