Hi PipRipper,

I dont think I can help with the first one as Im rather still a newbie myself but in regards to your second question I think it might be done like this:

Quote:

BarPeriod = 60; //60 minute bar period.
TimeFrame = 24; // 24 * 60 minute bars.
var *High = series(priceHigh()); //Creates a series of 24 hour highs.
var *Low = series(priceLow()); //Creates a series of 24 hour lows.
var daily_high = High[1]; //Stores the priceHigh() array from 1 day ago in the variable daily_high.
var daily_low = Low[1]; //Stores the priceLow() array from 1 day ago in the variable daily_low.


I havnt tested this and like I say Im only learning but its a suggestion.

Actually thought about your first question again and if my first code works then this should too.

Quote:

BarPeriod = 1440; //1 day bar periods.
TimeFrame = 5; //5 * 1440 bar periods.
var *High = series(priceHigh()); //Creates a series of 5 day highs.
var *Low = series(priceLow()); //Creates a series of 5 day lows.
var weekly_high = High[1]; //Stores the priceHigh() array from 1 week ago in the variable daily_high.
var weekly_low = Low[1]; //Stores the priceLow() array from 1 week ago in the variable daily_low.



Last edited by TankWolf; 10/09/12 14:16. Reason: Added Code