Welcome to the Traders Laboratory Forums.
Coding Forum Collaborate, receive help, or discuss coding related issues.

Reply
Old 05-10-2009, 10:45 PM   #1

Join Date: Mar 2009
Location: Kansas City
Posts: 17
Ignore this user

Thanks: 4
Thanked 0 Times in 0 Posts

Looking-inside-bar Backtesting (LIBB) Questions

Hello,

I've spent quite a bit of time trying to learn Looking-Inside-Bar Backtesting (LIBB) better in tradestation (TS). I have some questions that I can't seem to find the answers to and was wondering if someone could help answer them.
Here are the things I do understand: **Please correct me if any of these are wrong.**
A. LIBB is the best to be on 1 tick to get "realistic" backtesting results for your strategy.

B. When you have intra-bar order generation (IOG), the code is not just run at the main points of a bar but throughout the bar. When you have the LIBB on 1 tick with IOG each time a new tick happens it is like a new bar just occurred and your code is ran again. This would be like real time when the price changes and then the code gets re-ran to see if it meets the conditions to excute a buy/sell order.

C. Without LIBB on you are only looking at the open, close, high & low of the bar when the bar is over.

Here are my questions/interests:
1. When would the LIBB allow you to change the number of ticks you can look back? How does that work? Am I correct in my logic that if you have it set to 10 ticks, the software looks at the open runs the code and then 10 ticks later looks at the code again & runs the code? This would be like running the code every minute with the LIBB set to 1 minute.

2. Is there way to trade/write EL to have the code be ran every 10(or so many) ticks just like it did in back-testing? On another hand would it be possible then to write EL to run a code every 1 minute in the 5 minute chart--instead of using the 1 minute chart.

3. Speaking for different charts. How does the LIBB work within the tick chart? It doesn't let you change the number. You can only change the chart to be different amounts of ticks per bar.

I don't really have a "great" code that I'm working with this. I just trying to understand the aspects of Looking-Inside-Bar Backtesting and how to use that knowledge to best trade real-time.

Thank you.
rickek is offline  
Reply With Quote
Old 05-10-2009, 10:59 PM   #2

Tams's Avatar

Join Date: Sep 2008
Location: Geelong
Posts: 3,779
Ignore this user

Thanks: 2,084
Thanked 1,474 Times in 912 Posts

Re: Looking-inside-bar Backtesting (LIBB) Questions

LIBB works best in longer term bars. e.g. daily charts.

There is a full section in the EasyLanguage manual on this topic.
The answers to your questions should be there.


Attached Thumbnails
Looking-inside-bar Backtesting (LIBB) Questions-bouncing_tick.gif  

Last edited by Tams; 05-10-2009 at 11:14 PM.
Tams is offline  
Reply With Quote
Old 05-10-2009, 11:12 PM   #3

Join Date: Mar 2009
Location: Kansas City
Posts: 17
Ignore this user

Thanks: 4
Thanked 0 Times in 0 Posts

Re: Looking-inside-bar Backtesting (LIBB) Questions

What Easy Language Manual?

All of my answers in there? Even the ones about the "re-coding" every 10 ticks into a bar? (Someone told me it was an easy one to solve and pretty much laughed at me instead of helping.)

Thanks for being there.
rickek is offline  
Reply With Quote
Old 10-12-2011, 07:00 PM   #4

Join Date: Mar 2009
Location: Carlsbad
Posts: 1
Ignore this user

Thanks: 0
Thanked 0 Times in 0 Posts

Re: Looking-inside-bar Backtesting (LIBB) Questions

RICKEK, Google the following and you'll be able to download legally free and have a fairly complete EasyLanguage library:

EasyLanguage Reference Guide
EasyLanguage Essentials
EasyLanguage Functions and Reserved Words


Books you could pay for but which are actually pretty easy to find online:

Building Winning Trading Systems with tradestation - George Pruitt
seekmocha is offline  
Reply With Quote

Reply

Thread Tools
Display Modes Help Others By Rating This Thread
Help Others By Rating This Thread:


Similar Threads
Thread Thread Starter Forum Replies Last Post
Inside day 11-08-2006 feb2865 Forex Trading Laboratory 1 09-07-2011 08:13 PM
Inside Bar Indicator bear296 Coding Forum 1 06-24-2009 02:31 PM
Playing Inside of Value after Trend Days Soultrader Trading Videos 2 01-12-2008 09:05 AM
Playing Inside Days Soultrader E-mini Futures Trading Laboratory 12 03-06-2007 04:10 PM
Backtesting lasherm1 Beginners Forum 3 09-22-2006 08:20 AM

All times are GMT -4. The time now is 01:10 PM.
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
CS to VB integration by DeskLancer
©2006-2011 Traders Laboratory, All Rights Reserved.