SMA Period Test for crossover not possible?
5 replies
patrick Müller
2 weeks ago #281473
Moin
I want to make a simple test on daily under builder which finds the best crossover(close,sma) for long and crossunder(close,sma) for short.
Test from 8 – 250 MA
Is this actually not possible?

tomas262
2 weeks ago #281488
Hello,
simply setup such system in AlgoWizard.
You can later load into Optimizer to find the best parameters for the cross
patrick Müller
2 weeks ago #281505
Hey thanks, I tried in AlgoWizard to create this, there seems to be an error, can you help me? Thanks
patrick Müller
2 weeks ago #281508
Para:

tomas262
1 week ago #281639
Hi,
the strategy is fine seems. The problem is a missing exit. It opens an initial trade which is never exited. Do you plan to reverse an open existing position on the opposite signal?
patrick Müller
2 days ago #281684
Hi @thommas262
Thank you for your answer.
I think I wrote it wrong.
Better would be: Only long and that with:
LONG = ta.crossover(close, SMA) and close (exit) = ta.crossunder(close, SMA)
How could you implement this? can you help me make a sqx file?
Viewing 6 posts - 1 through 6 (of 6 total)