Announcement

Collapse
No announcement yet.

Help with syntax error

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • LetUsLearn
    replied
    Hello Arbutus,

    This website is for eSignal EFS, the code you're looking for help on looks to me like it's in TradeStation's EasyLanguage, as such it's not going to compile in eSignal.

    LetUsLearn

    Leave a comment:


  • Arbutus
    started a topic Help with syntax error

    Help with syntax error

    Can someone help me with the syntax error I am getting in line 6(bolded)...any help would be great


    ------------------------------

    variables:
    TD_low(0),
    TD_high(0),
    TD_count(0);

    if (high > high[4] and high > high[3] and high > high[2] and high > high[1] and high > high[0]) then
    begin
    TD_count = 1;
    TD_high = high;
    TD_low = low[1];
    end
    else if (low < low[4] and low < low[3] and low < low[2] and low < low[1] and low < low[0]) then
    begin
    TD_count = -1;
    TD_high = high[1];
    TD_low = low;
    end
    else if (TD_count = 1 and low < TD_low) then
    begin
    TD_low = low;
    end
    else if (TD_count = -1 and high > TD_high) then
    begin
    TD_high = high;
    end;

    plot1(TD_low, "TD Low", green);
    plot2(TD_high, "TD High", red);


Working...
X