Crossover strategy not producing alerts?
Author: KRichard
Creation Date: 8/30/2016 5:04 PM
profile picture

KRichard

#1
I am new to trading and the WLP software so bear with me.

I am trying to create a simple strategy that will run at the end of the day that stages orders of stock that have the 13 day EMA crossed over the 49 day EMA.

I have had this running for a couple of days and I am not getting any alerts. However, if I check stockfetcher.com for that same screen, there are a number of stocks showing.

My database being used is the S&P1500.


CODE:
Please log in to see this code.
profile picture

Eugene

#2
Welcome to the forums Keith.

QUOTE:
I have had this running for a couple of days and I am not getting any alerts.

...which in this case is correct and by design. Problem is, the system does not have any exits defined. All the historical entries have been triggered and not sold thereafter. Check out the Trades tab: I'm sure you'll find a lot of open trades there. To fix this either install an exit or if you're concerned with entries only just turn the code into a "screener" as per the WealthScript Programming Guide > Techniques > Creating a Screener.

Make sure to pick a reasonable position size (preferably a Raw Profit mode to catch all the signals):

CODE:
Please log in to see this code.