I am a newbie to eSignal and API development, however, I have a programming background. I am trying to create a simple strategy that compares a 6/20/40 interval simple moving average(interval=15 minutes). The strategy is summarized as follows:
If 6>20>40, I want to go long. I then want to enter in a stop-limit/loss. However, if the signals reverse (40>20>6), I want to close out my long position and go short. And again - I would want to enter a stop limit/loss order. So, there are two ways to exit a position: 1.) the stop/loss limit (that I would like to set) and 2.) indicators reverse.
I would like to run this from 3/1/2006 to current.
Thank you for your time. I have reviewed many backtesting samples, but I am having trouble with how to structure my historical data set (again, I'm a new eSignal user), and what form my output will take. My sample programs are only running over 1 day of data (I'm sure this has to do with the chart that I run my code against - in eSignal).
Any help/guidance to get started with this and process of how to set this test up within eSignal -- would be greatly appreciated.
If 6>20>40, I want to go long. I then want to enter in a stop-limit/loss. However, if the signals reverse (40>20>6), I want to close out my long position and go short. And again - I would want to enter a stop limit/loss order. So, there are two ways to exit a position: 1.) the stop/loss limit (that I would like to set) and 2.) indicators reverse.
I would like to run this from 3/1/2006 to current.
Thank you for your time. I have reviewed many backtesting samples, but I am having trouble with how to structure my historical data set (again, I'm a new eSignal user), and what form my output will take. My sample programs are only running over 1 day of data (I'm sure this has to do with the chart that I run my code against - in eSignal).
Any help/guidance to get started with this and process of how to set this test up within eSignal -- would be greatly appreciated.
Comment