afl please

XRAY27

Well-Known Member
#1
Dear members
Please post afl for day high and low and also previous day high and low in form of line :)
 
#2
Code:
//by detwo
Htoday = LastValue(TimeFrameGetPrice("H", inDaily, 0));
Ltoday = LastValue(TimeFrameGetPrice("L", inDaily, 0));
Hyday  = LastValue(TimeFrameGetPrice("H", inDaily, -1));
Lyday  = LastValue(TimeFrameGetPrice("L", inDaily, -1));
style  = styleDashed|styleNoRescale;
Plot(Htoday, "High of today", colorGreen, style);
Plot(Ltoday, "Low of today", colorRed, style);
Plot(Hyday, "High of yesterday", colorPaleGreen, style);
Plot(Lyday, "Low of yesterday", colorOrange, style);
 
#3
Or instead of Lastvalue using SelectedValue
Code:
//by detwo
Htoday = SelectedValue(TimeFrameGetPrice("H", inDaily, 0));
Ltoday = SelectedValue(TimeFrameGetPrice("L", inDaily, 0));
Hyday  = SelectedValue(TimeFrameGetPrice("H", inDaily, -1));
Lyday  = SelectedValue(TimeFrameGetPrice("L", inDaily, -1));
style  = styleDashed|styleNoRescale;
Plot(Htoday, "High of today", colorGreen, style);
Plot(Ltoday, "Low of today", colorRed, style);
Plot(Hyday, "High of yesterday", colorPaleGreen, style);
Plot(Lyday, "Low of yesterday", colorOrange, style);
 
#5
If i want close line of yesterday can it possible
change colors according to your needs

Code:
//by detwo
Htoday = LastValue(TimeFrameGetPrice("H", inDaily, 0));
Ltoday = LastValue(TimeFrameGetPrice("L", inDaily, 0));
Hyday  = LastValue(TimeFrameGetPrice("H", inDaily, -1));
Lyday  = LastValue(TimeFrameGetPrice("L", inDaily, -1));
Cyday  = LastValue(TimeFrameGetPrice("C", inDaily, -1));
style  = styleDashed|styleNoRescale;
Plot(Htoday, "\nHigh of today", colorGreen, style);
Plot(Ltoday, "Low of today", colorRed, style);
Plot(Hyday, "High of yesterday", colorPaleGreen, style);
Plot(Lyday, "Low of yesterday", colorOrange, style);
Plot(Cyday, "Close of yesterday", colorBlack, style);
 
#7
Code:
//by detwo
Htoday = LastValue(TimeFrameGetPrice("H", inDaily, 0));
Ltoday = LastValue(TimeFrameGetPrice("L", inDaily, 0));
Hyday  = LastValue(TimeFrameGetPrice("H", inDaily, -1));
Lyday  = LastValue(TimeFrameGetPrice("L", inDaily, -1));
style  = styleDashed|styleNoRescale;
Plot(Htoday, "High of today", colorGreen, style);
Plot(Ltoday, "Low of today", colorRed, style);
Plot(Hyday, "High of yesterday", colorPaleGreen, style);
Plot(Lyday, "Low of yesterday", colorOrange, style);
sir,
pl help to make afl for following simple conditions.

1. eight fixed time zones 9.30 to 10.00, 10.01 to 10.30 till mkt ends.
2. first buy signals will comeafter completed first time .i.e after 10.01
3. high and low of all time zones are to be displayed.
4. buy or sell signal will generate if price cross high or low of previous time zone only.
5.exrem to be used .
thanks.
[email protected]
 

Similar threads