// today buy/sell signal is triggered
if ((state == 5 && currentBarHigh > boxTop) || (state == 5 && currentBarLow < boxBottom))
{
if (state == 5 && currentBarHigh > boxTop)
{
BuySignal = true;
DrawArrowUp(CurrentBar.ToString(), true, 0, Low[0] - TickSize, Color.Green);
}
else
{
SellSignal = true;
DrawArrowDown(CurrentBar.ToString(), true, 0, High[0] + TickSize, Color.Red);
}
state = 0;
startBarActBox = CurrentBar;
}
Thanks very much,
Richard
Comment