TC2000.com• Download software • Tutorial videos • Subscription & data-feed pricing • Class schedule
TC2000Brokerage.com• New account application • Trading resources • Margin rates • Stock & option commissions
Worden Discussion Forum » Customer Training & Support » Ask a Trainer - TC2000 version 7 » Blocks using realcode
This formula is giving me the wrong answer. Plot = ((Price.High+Price.Low+Price.Close)/3)+((Price.High(1)+Price.Low(1)+ Price.Close(1))/3)+((Price.High(2)+ Price.Low(2)+ Price.Close(2))/3)\3 What am I doing wrong? Also, I want to put this on the same chart as price... but don't know how. Passat
You need to enclose the three price calcs in parens before dividing by 3:
Plot = (((Price.High+Price.Low+Price.Close)/3)+ _ ((Price.High(1)+Price.Low(1)+ Price.Close(1))/3)+ _ ((Price.High(2)+ Price.Low(2)+ Price.Close(2))/3))/3