Future returns at period n (say 5 hours, 10 days, 50 days etc) will specifically look at the return from the signal n periods out in the future. These returns would need to be averaged together to get a mean future return and that's the factor I'm looking for.
Why is this important, a signal may hit it's profit target or stop loss but depending on take profit or stop loss.. that doesn't tell you if the signal had any value. But if you averaged future returns from a period you could see if the signal actually had any predictive power.
I submitted alpha as a calculation to help determine if a given signal is predictive for this reason because I believe it is a much better calculation for what you are trying to achieve. See if you concur https://www.youtube.com/watch?v=acCZy9MqEWw
If you have a formula to help derive the value you're looking for and it is different than this, please post it. Averaging returns over a given period of time does not provide as much context as to where to specifically measure each interval of time. I'm sure if you've seen this somewhere there is a more detailed formula for it. That is what is needed for this to be coded. Otherwise, your averages might not reflect the values you're looking for.
But you are correct in saying that if there are 1000 trades, there would be 1000 future returns at period n (again this could be any time in the future measured in minutes, hours, days etc). If you average those returns (mean) then you get an idea of what future returns might look like for that signal.
So any time the signal occurs, it looks in the future n, gets the returns at that period, and adds it to all previous future returns from that signal.
If I had to express in math or pseudo code, I would say:
global futureReturns
global numSignals
If a signal has occurred
get future return at period n
add that future return to futureReturns
numSignals = numSignals + 1
end if
at end of simulation
mean future return = futureReturns / numSignals
For instance, say I want to search for strategies on a 15 minute chart that are profitable 1 hour later. Well if instead of using profit factor or something like that... I could just have the fitness function be the mean future returns in 60 minutes from whenever the signal was generated. We are just trying to find out of a signal or searches find strategies that have predictive power in the future. The time is up to the user how long they want to look out.
So say I'm on the daily chart.... and want to search for strategies who's signal has positive mean future returns if long 20 days later ( one month, 5 days per week x 4) and negative mean future returns if I am short 20 days later.
Once there was a database of strategies who have high fitness in the 1 month future returns, then we could play around with stop loss and take profit... but we know overall it's likely profitable in the future.
Does that make sense?
Let me know if you have any other questions.
Also I think the alpha idea you mentioned is worth doing as well.
Thanks Again Keinc301
Subject changed from Future Returns to Mean Return and Mean Return Period
After taking the time to think about how useful this could be, I am in full agreement that it should be incorporated.
Mean return would be a value that can be used for custom fitness and the mean return period would calculate the mean return value over that period of time from all signals placed. In otherwords, its not looking at the results of the trade itself (when the take profit or stop is hit), its just measuring if price moved in our favor within a certain amount of time from the signal.
Since this has to gather new stats on trades after a certain time period that passes, I recommend adding the stats of this feature to the list of trades so we can we can see the measurement of profit made or lost x time after we entered the trade.