Hi All, Here is what I want to do. If CLOSE of a day is greater than HIGH of a particular day, where +DI crosses over -DI, BUY signal would be generated.
For DI crossover, I can write a formula as PDI(14)>MDI(14). But I want to check further condition as buy signal should only be generated when CLOSE of succeeding day is greater than HIGH of crossover day. So for example if crossover happens on 10th January with HIGH = 100 then, BUY is generated only when CLOSE of next (any succeeding day) is greater than 100, say it happened on 13th January. I am not able to capture this HIGH (10th January) to compare with CLOSE of the crossover day (13th January). Can anybody give me an idea about how to write a code? Regards, Tejas
