simple easylanguage help!!

Discussion in 'Trading Software' started by ttsang, Mar 4, 2012.

  1. ttsang


    i have a set of conditions that will return true or false. Lets say i have condition1 to 5. i want condition1 and 2 happen 2 bars earlier and condition3 1 bar earlier then execute a buy.

    but i just cant make it happen, it said Types are not compatible. this is what i did.

    if condition 1 or condition2 = true and condition1 or condition2 = close[2] then buy next bar at market;

    so what should i do to make it compatible?

    any help would be greatly appreciate.

  2. In a Boolean expression you cannot use numbers. Only true or false values. You do not have to use = true:

    if (condition 1 or condition2) and (condition3 or condition4) then buy next bar at market;

    You must use parentheses as appropriate.