Exploration inweekly basis

How can I make this explore in weekly basis?

ma20 = MA(C, 20);
ma50 = MA(C, 50);
ma100 = MA(C, 100);

aots_cross = WriteIf((Cross(ma20, ma50) AND (ma50 > ma100)) OR
(Cross(ma20, ma100) AND (ma20 > ma50 > ma100)) OR
(Cross(ma50, ma100) AND (ma20 > ma50)), "YES", "NO");

aots = WriteIf((ma20 > ma50 AND ma50 > ma100), "YES", "NO");

zeus_strike = WriteIf(Cross(C, ma100), "YES", "NO");

Filter = C;

AddTextColumn(aots_cross, "AOTS Cross", 1.0, colorWhite, IIf(aots_cross == "YES", colorGreen, IIf(aots_cross == "NO", 0, 0)));
AddTextColumn(aots, "AOTS", 1.0, colorWhite, IIf(aots == "YES", colorGreen, IIf(aots == "NO", 0, 0)));
AddTextColumn(zeus_strike, "Zeus Strike", 1.0, colorWhite, IIf(zeus_strike == "YES", colorGreen, IIf(zeus_strike == "NO", 0, 0)));

Just set your Periodicity to "Weekly" in the Analysis Settings window.

2 Likes

Everything is in the manual. Please read:
http://www.amibroker.com/guide/w_settings.html

1 Like