Free Code Experiment

Apply this to 1 min ES bars. Curves on all the indices to varying degrees.


input:
ETime(0),
XTime(8);

if closed(0) < opend(0) then
if time = calctime(1600, (-1 * ETime)) then
buy this bar;

if time >= calctime(931, XTime) and time < calctime(1600, (-1 * ETime)) then
sell this bar;
 

Attachments

Apply this to ES daily bars. Also curves on a few different indices to varying degrees.

buy next bar l - 1 point limit;
sellshort next bar h + 1 point limit;
 

Attachments

Quote from Avid_Consumer:
input:
ETime(0),
XTime(8);

if closed(0) < opend(0) then
if time = calctime(1600, (-1 * ETime)) then
buy this bar;

if time >= calctime(931, XTime) and time < calctime(1600, (-1 * ETime)) then
sell this bar;
What does this mean???

:confused:
 
it's really simple, it's just going long 'ETime' minutes before 4pm EST, and selling the position 'XTime' minutes after 9:30am EST. You can drop the inputs and it's a little more intuitive:

if time = 1600 and closed(0) < opend(0) then
buy this bar;

if time >= 931 and time < 1600 then
sell this bar;

works just as well, arguably better
 
Quote from Avid_Consumer:

Apply this to ES daily bars. Also curves on a few different indices to varying degrees.

buy next bar l - 1 point limit;
sellshort next bar h + 1 point limit;

This is a well known 'nonsense' system. Most of the trades won't be hit (because they are limit orders) and, by definition, the ones that are hit will be the overall worst trades.
 
Quote from mmillar:

This is a well known 'nonsense' system. Most of the trades won't be hit (because they are limit orders) and, by definition, the ones that are hit will be the overall worst trades.

since it's making less than 300 trades in 2.5 years, taking the tick slip on each side won't kill you. It's pretty insensitive to the slip. If you apply the concept to like a 15 min ES bar where the curve looks much better, then yes, the slip becomes insurmountable. The ideal frequency for ES fades is probably somewhere inbetween
 
Quote from mmillar:

This is a well known 'nonsense' system. Most of the trades won't be hit (because they are limit orders) and, by definition, the ones that are hit will be the overall worst trades.

Not true. I have been running a similar system with quite a success.
 
Interesting, Avid. I'm looking at your 'overnight' system.

My understanding that @ES would be a non-adjusted continuous contract. So holding overnight over the contract changeover would show a nice gap, that could not actually be traded. One of the pitfalls of backtesting with continuous contracts.

Steve
 
true, i see what you mean. discount any profits made on rollover days. i haven't tallied it, but i doubt they're acting as any sort of crutch in this instance ..although it's a good point because i have seen situations where they account for an inordinate amount of profit. good point wrt an important vulnerability in all overnight work based on continuous contracts
 
Back
Top