1. Button is clicked
2. After button is clicked check if the following condition is True. Submit Stop-Limit order if condition is True.
if ((High[2] > High[0])
&& (High[2] > High[1])
&& (High[2] > High[3])
&& (High[2] > High[4])
)
{
Enter Code to submit Stop-Limit Order
}
I also need tutorial or sample code that adds button to chart. Any assistance i can get will be greatly appreciated.
Thanks.

Comment