I attempted the following via a bool but obviously have something wrong:
protected override void OnStateChange()
{
if (State == State.SetDefaults)
{
B_Quantity_Exit_Postition = false;
D_ExitQuantity = @"DefautQuantity";
}
}
______________________________
protected override void OnBarUpdate()
{
if (B_Quantity_Exit_Postition == true)
{
D_ExitQuantity = @"Position.Quantity";
}
ExitLongLimit(Convert.ToInt32(D_ExitQuantity ), High[0], "", "");
}
Thanks for any direction
Comment