I'm interested in seeing how various traders would code a simple trading system with their platforms and language.
Whatever coding system or platform you use, take a few minutes and share how you'd write a simple system which I'll detail.
I'm guessing that we'd all find some interest in seeing how various languages and platforms would put this together, so how about taking a few minutes to make your contribution?
Here are the details, which I'm keeping simple. I'll then post how I'd go about it.
System backtesting conditions:
1. Daily bars
2. Entry: Buy TQQQ at the open...if the open is 2% below the close 2 days prior...and if the close of the prior day was below a 5 period simple moving average...
and if SPY was down the prior day...and if the day is not Friday.
3. Exit: If the trade has gained 4% on the same day...or exit at the end of the same day if profit target has not been reached.
Whatever coding system or platform you use, take a few minutes and share how you'd write a simple system which I'll detail.
I'm guessing that we'd all find some interest in seeing how various languages and platforms would put this together, so how about taking a few minutes to make your contribution?
Here are the details, which I'm keeping simple. I'll then post how I'd go about it.
System backtesting conditions:
1. Daily bars
2. Entry: Buy TQQQ at the open...if the open is 2% below the close 2 days prior...and if the close of the prior day was below a 5 period simple moving average...
and if SPY was down the prior day...and if the day is not Friday.
3. Exit: If the trade has gained 4% on the same day...or exit at the end of the same day if profit target has not been reached.
