I have the attached EFS script that reads a simple text file and then marks the "buy" and "sell" signals on the chart.
An example of the format of the text file is this:
"1D BUY @ 12715 1/15/2008 9:32:01 AM"
"1D SELL @ 12720 1/15/2008 9:33:02 AM"
It is intended to be run on a 1minute chart of YM #F, using a 7:15-16:15 time template.
The bug/problem I am running into is that it does not print any of the buy or sell markers whenever the barIndex parameter for drawTextRelative (see line 65 in the code) is larger than -400 (given by the parameter called "shift").
Is there some inherent limit for the barIndex parameter for drawTextRelative, that it cannot be greater than -400 ?
An example of the format of the text file is this:
"1D BUY @ 12715 1/15/2008 9:32:01 AM"
"1D SELL @ 12720 1/15/2008 9:33:02 AM"
It is intended to be run on a 1minute chart of YM #F, using a 7:15-16:15 time template.
The bug/problem I am running into is that it does not print any of the buy or sell markers whenever the barIndex parameter for drawTextRelative (see line 65 in the code) is larger than -400 (given by the parameter called "shift").
Is there some inherent limit for the barIndex parameter for drawTextRelative, that it cannot be greater than -400 ?
Comment