Is there a way to make the strat set the stop based on the trigger bar?
I tried to do it, but could only use a set number of ticks.
I see a few of your trades had stops that were larger than that would have been if you had taken the trade manually.
I find the strat thing rather frustrating as it it seems very difficult to code such things.
Good work. A 1:1 ratio would make me a lot more confortable. Unfortunately I suspect it might make less than a 15 tick target. I'll try to run the test on my strategy to see if I get the same results. Tradestation has continuous contracts so I can run it on the past 3 years.
The backtesting news DB will take a lot of work so I may not have it ready any time soon.
I plan to test more target scenarios and different money mgt strategies though.
See those orange bars? Those are IBs where IB size < ATR/2, which seem to often make big moves, often twice the size of IB bar size. It's in my backtesting Inbox. They don't happen very often during RTH though.
The double IBs are also very powerful.
The following user says Thank You to shodson for this post:
I used to make continuous tick data and I didn't have any difficulties. I didn't adjust for the rollover since I didn't hold crude overnight.
If you want I could try exporting CL tick data for 6 months with tradestation. I can export minute but I am not sure about tick.
For your entry - when I traded this I used a stop limit order so that I didn't have slippage. Often on the dax it'll pass me up but it always pulls back a few ticks and I get in. So that limit order ends up saving me a few ticks quite a lot. Getting an extra tick sounds like a little but it will add a huge amount to your p/l. In ES my average trade last month was just 1 pt. So every tick counts.
The following user says Thank You to cunparis for this post:
One more idea. It's complicated but with ninja you can use a range bar for timing your entries and you can put in a stop limit order when you're close to one extreme of the IB. If you move back to the other side (across halfway pt) you can cancel the stop-limit and place one on the other side. Or if you don't use live until canceled you just set it when you need it (when you're close to the breakout pt). I suspect stop limit will increase your profits.
Yeah, I've thought of that before, but like you said it's complicated to code, but do-able. I think the stop limit orders are a good idea. I wish Ninja would just allow us to place multiple stop limit orders, like an OCO, in an ATS, would make things easier.
Thanks again Shodsun.
How did you get that code to work?
I couldn't get it worked out. Well done.
Any chance of seeing the code for the strat?
I am sure there must a way of putting in a time filter for news. The main one would be inventory news. Wed and Thursday. Oil @ 10:30 EST on Wed and Gas on Thursday @ 10:30.
These would be the main ones. Along with FOMC...
They are regular and would help with the testing