Search Engine
Here you can search through the pages of this Namespace, their attachments and the files uploaded to the system.
Note: the results will only display the items you have permissions to read.
This search, performed through 3.85 MB (775 documents, 11907 words), completed in 0.0 seconds and yielded 3 results.
[...] enterTrades = true ;
bool canTrade = true ;
Entry e = paramEntryType.ValueInt == 0 ? Entry.Inside : paramEntryType.ValueInt == 1 ? Entry.Outside : Entry.Breakout;
// Main (trading) loop
SetBarColors ( Color.Silver, Color.DarkGray );
for ( int bar = 1; bar < Bars .Count; bar++)
{
#region Variables
int dailyBar = ( int )GetDailyBar[bar];
int firstBarToday = bar - Bars .IntradayBarNumber(bar);
double openToday = Open [firstBarToday];
bool lastBarToday = [...]
[...] ))
if (! SellAtTrailingStop (bar+1, p, amount, "Trailing" ))
SellAtLimit (bar+1, p, p. AutoProfitLevel , "Gap closed" );
}
else if (p == null || !p.Active && p.EntryBar < (bar - Bars .IntradayBarNumber(bar)))
{
if ( cnt > [...]
[...] exit rule here...
}
else if ( ( GetTime(bar) >= 0955 ) & ( GetTime(bar) <= 1300 ) )
BuyAtMarket ( bar+1 );
}
}
} Identify the Open price of the day when working with intraday data
Here's a shortcut to find the first bar of the current day from within a Bars.Count loop - int firstBarToday = bar - Bars .IntradayBarNumber(bar); [...]