I am having a weird error im trying to figure out on easylanguage with tradestation. Pretty much im trying to create a automated strategy. I was able to code the indicator im using. and now im trying to make a swing low function that detects the swing low in the strategy. But for some reason it keep saying unknown identifier and it highlights the word function before were it says double swing low but I thought function was a word easylanguage used so im confused as to why its saying that.
vars:
int SwingLowBar(0),
double SwingLowValue(0),
int SwingLowFound(0),
int ib(0);
function double SwingLow(int Length)
begin
if CurrentBar > Length then
begin
SwingLowBar = 0;
SwingLowValue = High;