Please, could you give some advice on making a strategy. This is an opening range breakout.
I want to do the following. I wait until high and low have been established in the 930-1000 time interval and wait until price violates the high or low of this range and it must close outside of it, if that has happened the limit order should immediately be set at the exactly the same level of the the range. There must not be any trades before 1000 or it price just penetrated out and not closed outside of the range.
And also if I have got into position I don't want to send more orders if a price be on a previous entrance level..so just one entry until stopped out or reached my target. Thank you very much, this is the sample of my code that I cannot get running properly.
protected override void OnBarUpdate()
if (ToTime (Time[0]) == 100000)
{
{ MAX(High,6)[0];
MIN(Low,6)[0];
}
if (Close[0] == MAX [0])
{
EnterLong((int) (3), "");
}
if (Close[0] == MIN [0])
{
EnterShort((int) (3), "");
}
if (ToTime(Time[0]) > 155500 )
{
ExitLong();
}
if(ToTime(Time[0]) > 155500)
{
ExitShort();
Comment