public bool PrepareUsePrevBarValueCheckBox(SlotTypes slotType)
{
bool isChecked = true;
if (slotType == SlotTypes.OpenFilter)
{
if (Data.Strategy.Slot[Data.Strategy.OpenSlot].IndParam.ExecutionTime == ExecutionTime.AtBarClosing)
isChecked = false;
}
else if (slotType == SlotTypes.Close)
{
isChecked = true;
}
else if (slotType == SlotTypes.CloseFilter)
{
if (Data.Strategy.Slot[Data.Strategy.CloseSlot].IndParam.ExecutionTime == ExecutionTime.AtBarClosing)
isChecked = false;
}
return isChecked;
}