Hello z11,
It depends on what code you plan to execute when you click the button. If it affects the values of global variables used by your formula then it could have an affect on the results generated by your formula depending on the timing. I would think it would be extremely unlikely that you would click the button while main was being executed. We're talking milliseconds or fractions of a millisecond in most cases, depending on the formula. Most of the time any affect your button would have on the formula would be executed between trades, or executions of main.
It depends on what code you plan to execute when you click the button. If it affects the values of global variables used by your formula then it could have an affect on the results generated by your formula depending on the timing. I would think it would be extremely unlikely that you would click the button while main was being executed. We're talking milliseconds or fractions of a millisecond in most cases, depending on the formula. Most of the time any affect your button would have on the formula would be executed between trades, or executions of main.
Comment