Welcome to the Traders Laboratory.

TradeStation Custom Programming Discuss projects, ideas, obstacles in programming with TradeStation.

Reply
Old 08-16-2016, 04:20 PM   #1

Join Date: Jan 2009
Location: tiruchendur
Posts: 40
Ignore this user

Thanks: 52
Thanked 1 Time in 1 Post

How to Enter Current Bar on Market Backtesting

i have eod data alone...and i want to buy if high of this bar is greater than high of yesterday...i want to buy on market as soon as previous day high is broken....is it possible to give such order? tradestation seems to accept orders on close of the current bar it seems...is there a solution....

if H>H[1] then

buy at H[1] at current bar

this is all i want ....i dont have intraday data....
rajatheroyal is offline  
Reply With Quote
Old 08-17-2016, 04:31 PM   #2
zdo

Join Date: Nov 2007
Location: boonies
Posts: 2,763
Ignore this user

Thanks: 422
Thanked 570 Times in 430 Posts

Re: How to Enter Current Bar on Market Backtesting

raja,

If you only have end of day data that does not update prices during the day then you can not accomplish "buy on market as soon as previous day high is broken" via TS system or with EL order placement objects

hth

zdo
zdo is offline  
Reply With Quote
Old 08-18-2016, 12:59 AM   #3

Join Date: Jan 2009
Location: tiruchendur
Posts: 40
Ignore this user

Thanks: 52
Thanked 1 Time in 1 Post

Re: How to Enter Current Bar on Market Backtesting

thanks but i just want to backtest a system.in offline mode..for that only i am asking..i am not asking about real time orders and real trades...

I just want to backtest a simple system... which buys on the break of previous day high ...

if H> H[1] then

buy this bar at the high of previous bar;(but TS accepts only orders based on close of bar)

but i want to buy not on close but instead as soons as market breaks the high of yesterday ...so is it possible in tradestation ? if i had intraday data i could use [intrabarordergeneration=t rue] but since i have eod data alone whats the solution ....

Last edited by rajatheroyal; 08-18-2016 at 01:05 AM.
rajatheroyal is offline  
Reply With Quote
Old 08-18-2016, 10:57 AM   #4

Join Date: Jul 2010
Posts: 72
Ignore this user

Thanks: 13
Thanked 17 Times in 15 Posts

Re: How to Enter Current Bar on Market Backtesting

Hi rajatheroyal,

Buy ("LE") next bar at High Stop;

The Buy Order is placed at the High, and if the price next bar hits the High then it will take entry.

Let me know if that helps.

TSDevNYC
EasyTrader_I is offline  
Reply With Quote
The Following User Says Thank You to EasyTrader_I For This Useful Post:
rajatheroyal (08-19-2016)

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
How Do I Enter a Market? yehudi Forex Trading Laboratory 4 10-18-2013 03:09 AM
Is the Technical Analysis Valid Under the Current Market Situations? Jameel Technical Analysis 2 12-14-2011 06:33 AM
Fetching Current Intraday Market Data Popol Beginners Forum 0 09-19-2008 07:24 AM
Where to enter? januson Technical Analysis 7 03-11-2007 09:45 AM
Mon Jan 15th 2007 current market chat MrPaul General Discussion 7 01-15-2007 02:20 AM

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