﻿<?xml version='1.0' encoding='UTF-8'?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/"><channel><title>RightEdge Forums / Trading / Trading Systems  / Enter on open and exit on close / Latest Posts</title><generator>InstantForum.NET v4.1.4</generator><description>RightEdge Forums</description><link>http://www.rightedgesystems.com/forums/</link><webMaster>rightedge@yyesoftware.com</webMaster><lastBuildDate>Mon, 06 Sep 2010 22:19:27 GMT</lastBuildDate><ttl>20</ttl><item><title>RE: Enter on open and exit on close</title><link>http://www.rightedgesystems.com/forums/Topic8845-9-1.aspx</link><description>[quote][b]vanSant (9/18/2009)[/b][hr]Why, when CreateTicksFromBars is set to true, the tickType enumeration is set always to Trade instead of PriceOpen, PriceLow, PriceHigh, PriceClose respectively for four ticks representing one bar?[/quote]&lt;br&gt;&lt;br&gt;Well, we try to design RightEdge so that the same systems will work for backtesting and live mode.  In live mode you will be getting trade ticks, not OHLC ticks, so it does the same in backtest mode.  We have tick types for HighPrice, LowPrice, OpenPrice, and PreviousClose, but these are there so that these values can be displayed in the live data window, and aren't really meant to be used by the system.&lt;br&gt;&lt;br&gt;Thanks,&lt;br&gt;Daniel</description><pubDate>Fri, 18 Sep 2009 12:09:25 GMT</pubDate><dc:creator>dplaisted</dc:creator></item><item><title>RE: Enter on open and exit on close</title><link>http://www.rightedgesystems.com/forums/Topic8845-9-1.aspx</link><description>Why, when CreateTicksFromBars is set to true, the tickType enumeration is set always to Trade instead of PriceOpen, PriceLow, PriceHigh, PriceClose respectively for four ticks representing one bar?</description><pubDate>Fri, 18 Sep 2009 11:58:24 GMT</pubDate><dc:creator>vanSant</dc:creator></item><item><title>RE: Enter on open and exit on close</title><link>http://www.rightedgesystems.com/forums/Topic8845-9-1.aspx</link><description>This override would have to be at the System level, not the SymbolScript level.  To do something similar at the SymbolScript level, tap into [url=http://www.rightedgesystems.com/documentation/developerguide/html/M_RightEdge_Common_SymbolScriptBase_NewTick.htm]NewTick[/url].&lt;br&gt;&lt;br&gt;[quote][b]clawson84 (6/30/2009)[/b][hr]Thanks for your help,&lt;br&gt;&lt;br&gt;I've tried to implement a function with the same signature that you've given in the sample but I get a compile error as follows.&lt;br&gt;&lt;br&gt;I'm using Edition 2 Build 11&lt;br&gt;&lt;br&gt;Error	'MySymbolScript.NewTick(RightEdge.Common.Symbol, RightEdge.Common.BarData, RightEdge.Common.TickData)': no suitable method found to override	c:\XXXXXXXXX.cs	84&lt;br&gt;[/quote]</description><pubDate>Tue, 30 Jun 2009 17:11:36 GMT</pubDate><dc:creator>billb</dc:creator></item><item><title>RE: Enter on open and exit on close</title><link>http://www.rightedgesystems.com/forums/Topic8845-9-1.aspx</link><description>Thanks for your help,&lt;br&gt;&lt;br&gt;I've tried to implement a function with the same signature that you've given in the sample but I get a compile error as follows.&lt;br&gt;&lt;br&gt;I'm using Edition 2 Build 11&lt;br&gt;&lt;br&gt;Error	'MySymbolScript.NewTick(RightEdge.Common.Symbol, RightEdge.Common.BarData, RightEdge.Common.TickData)': no suitable method found to override	c:\XXXXXXXXX.cs	84&lt;br&gt;</description><pubDate>Tue, 30 Jun 2009 12:54:41 GMT</pubDate><dc:creator>clawson84</dc:creator></item><item><title>RE: Enter on open and exit on close</title><link>http://www.rightedgesystems.com/forums/Topic8845-9-1.aspx</link><description>Not easily done with Edition 1, however, with Edition 2, the bars are broken apart into ticks where 4 ticks would be sent per bar (Open, High, Low, Close).  So in that case you'd handle NewTick and you'd keep track of which tick came through and process.&lt;br&gt;&lt;br&gt;Off the top of my head, something like;&lt;br&gt;&lt;br&gt;int tickCount = 1;&lt;br&gt;&lt;br&gt;public void override NewTick(Symbol symbol, BarData partialBar, TickData tick)&lt;br&gt;{&lt;br&gt;  if (tickCount == 1)&lt;br&gt;  {&lt;br&gt;    // This is my opening price tick&lt;br&gt;  }&lt;br&gt;&lt;br&gt;  if (tickCount == 4)&lt;br&gt;  {&lt;br&gt;    // this is my closing price tick.&lt;br&gt;  }&lt;br&gt;&lt;br&gt;  tickCount++;&lt;br&gt;}&lt;br&gt;&lt;br&gt;public void override NewBar()&lt;br&gt;{&lt;br&gt;  // Reset the counter now that we've received a full bar&lt;br&gt;  tickCount = 1;&lt;br&gt;}&lt;br&gt;&lt;br&gt;[quote][b]clawson84 (6/19/2009)[/b][hr]I've just started to use Right Edge and I find it a little bit too simplistic. I have used OpenQuant before which has methods for different events on a bar, e.g. open and close. This works well for me as I would like to test some simple strategies where I enter on open and exit on close of a bar. Is it possible to do this in RE as well, as I haven't been able to figure it out yet.&lt;br&gt;&lt;br&gt;Thanks[/quote]</description><pubDate>Fri, 19 Jun 2009 07:36:35 GMT</pubDate><dc:creator>billb</dc:creator></item><item><title>Enter on open and exit on close</title><link>http://www.rightedgesystems.com/forums/Topic8845-9-1.aspx</link><description>I've just started to use Right Edge and I find it a little bit too simplistic. I have used OpenQuant before which has methods for different events on a bar, e.g. open and close. This works well for me as I would like to test some simple strategies where I enter on open and exit on close of a bar. Is it possible to do this in RE as well, as I haven't been able to figure it out yet.&lt;br&gt;&lt;br&gt;Thanks</description><pubDate>Fri, 19 Jun 2009 06:27:08 GMT</pubDate><dc:creator>clawson84</dc:creator></item></channel></rss>