this is prob a general programming question, could anybody tell me how i can switch a bool within a strategy?
For example in the below script how do I switch the startstrategy bool automatically from true to false after first trade?
private bool startstrategy = true;
protected override void OnBarUpdate()
{
if (startstrategy == true)
{
DefaultQuantity = 100000;
Switch startstrategy to false;
}

Comment