private Series<double> llPriceLevel;
llPriceLevel = new Series<double>(this);
Condition
if(fr_dw) {
if (bLbl) {
if (Low[Period] <= dDw)
{
if(ShowMarketStructure){
// Values[27][0] = Low[Period];
// Values[29][0] = CurrentBar-Period;
llPriceLevel[0] = Low[Period];
llDrawnBar = CurrentBar-Period;
Draw.Text(this,"swLL" + CurrentBar, false, "LL", Period, Low[Period] - delta, 5, SellClr, myFont, TextAlignment.Center, null, null, 1);
}
}
else
if(ShowMarketStructure){
Draw.Text(this,"swHL" + CurrentBar, false, "HL", Period, Low[Period] - delta, 5, SellClr, myFont, TextAlignment.Center, null, null, 1);
}
}
dDw = Low[Period];
dtDw = Time[Period];
bDw = true;
}
public Series<double> LLPriceLevel
{
// We need to call the Update() method to ensure our exposed variable is in up-to-date.
// get { Update(); return llPriceLevel; }
get { return llPriceLevel; }
}
My prints:
Print("llPriceLevel[0]:"+llPriceLevel[0] + " " + CurrentBar);
Print("llPriceLevel[1]:"+llPriceLevel[1] + " " + CurrentBar);

Comment