Thansk FalseDave.

I am now planning to code weekly pivot.
I am not sure if I code it correctly.
Should i calculate on Monday only and save it as global variable or calcuate every run?
Please advice.


BarPeriod = 240;
TimeFrame = 6*5;


var Close = priceClose(1);
var High = priceHigh(1);
var Low = priceLow(1);
var Pivot = (Close + High + Low) / 3;

var S1 = 2*Pivot - High;
var S2 = Pivot - (High - Low);
var S3 = 2*Pivot - (2*High - Low);
var R1 = 2*Pivot - Low;
var R2 = Pivot + (High - Low);
var R3 = 2*Pivot + (High - 2*Low);


BTW FalseDave, the TMA used in NaningBob seems like different from what the formula googled.
Do you have any good reference on the TMA algo?

Last edited by freedom0x0; 06/22/13 16:18.