else if (State == State.Configure)
{
AddDataSeries(Data.BarsPeriodType.Tick, 1);
}
protected override void OnBarUpdate()
{
if (BarsInProgress == 0)
{
if (CurrentBars[0] < 10 && CurrentBars[1] < 10)
return;
double atrvalue = atrIndicator[0];
if (longsOn)
{
double ask = GetCurrentAsk();
double bid = GetCurrentBid();
if( TrendTradeLong && TrendTrade
&& (Position.MarketPosition == MarketPosition.Flat)
{
EnterLong(PositionSize, "TFL");
}
} // closing of barsinprogress

Comment