I want to create an indicator that will generate high and low lines (and labels) each day for the Globex MES session (6PM-9:30AM EST). I know almost nothing about C programming.
Microsoft CoPilot generated the code. When inserting it in the script editor, I only get two errors. I realize that if I were able to fix those errors, many more might appear. In the hope that it isn't much more than those two errors and that they're caused by my mis-placement of the code, please find the following:
1. The NT code template segment in which I attempted to insert it.
2. The CoPilot code
I'm hoping that I just placed the wrong portion of the snippet between the braces and that you can insert the proper one in the right place and post it.
Any help would be greatly appreciated.
NT Indicator Template Code
{
//Add your custom indicator logic here.
}
CoPilot Code
Unfortunately, it uploads without line breaks, so it's not very readable. I've attached it in a text file.
Comment