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.
[...] (trading) loop
SetBarColors( Color.Silver, Color.DarkGray );
for(int bar = 1; bar bar ;
int firstBarToday = bar - Bars.IntradayBarNumber(bar);
double openToday = Open firstBarToday ;
bool lastBarToday = Bars.IsLastBarOfDay( bar );
if( ( bar == 1 || lastBarToday ) )
canTrade = true;
if( lastBarToday )
enterTrades = false;
#endregion
#region Determine Camarilla Point levels
if( firstBarToday > -1 )
{
if( Bars.IntradayBarNumber(bar) == 0 )
{
c.FindPivotLevels( [...]
[...] p.AutoProfitLevel, "Gap closed");
}
else if (p == null || !p.Active && p.EntryBar 0 )
{
int firstBarToday = bar - Bars.IntradayBarNumber(bar);
int lastBarYesterday = firstBarToday - 1;
bool priceFilter = (Close firstBarToday >= 20) && (Close firstBarToday [...]
[...] 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); // So the Opening price of the session is then:
double openToday = Open firstBarToday ; You can also identify yesterday's close price just the same: int firstBarToday = bar - Bars.IntradayBarNumber(bar); //So it [...]