Hello @"Sebastian"#p2446 normally i know i to write a crossover function, as you can see, i'm able to code, so i don't expect that you or somebody else "code for me for free"...
Even if are just 2 simple lines and this is an "educational group" as you suggested upfront... and this is just for educational purpose, cause if we all trade we do at our own risk to lose money...
Btw i'm able to code a crossover function SMA, MACD.. or whethever, but here i don't know how to relate the SMA to the chart to indicate the cross/trend value point to have the confirmation signal to enter into the market.