//new code test for indicator bool toggle
private void btnConfirmations_Click(object sender, EventArgs e)//includes toggle function with logic below for confirmations
{
if (ShowConfirmations == true)
{
Myindicator(BarsArray[0],Color.LimeGreen,Color.Red,true,true,5,false,233). ShowShorts = true;
ShowConfirmations = false;
}
else if (ShowConfirmations == false)
{
Myindicator(BarsArray[0],Color.LimeGreen,Color.Red,true,true,5,false,233). ShowShorts = false;
ShowConfirmations = true;
}}
Any ideas? Am I not accessing the bool value correctly?
Comment