First of all thanks to MightyOne for his powerful ideas.
This is the first indicator that I write in EasyLanguage.
Code: Select all
variables:
Range(0),
BuyTarget1(0),
BuyTarget2(0),
BuyTarget3(0),
BuyTarget4(0),
SellTarget1(0),
SellTarget2(0),
SellTarget3(0),
SellTarget4(0);
if BarType < 3 then
begin
Range = MaxList2(HighW(1)-LowW(1),HighW(2)-LowW(2),HighW(3)-LowW(3));
BuyTarget1=LowW(0)+Range*4/6;
BuyTarget2=LowW(0)+Range*5/6;
BuyTarget3=LowW(0)+Range*7/6;
BuyTarget4=LowW(0)+Range*8/6;
SellTarget1=HighW(0)-Range*4/6;
SellTarget2=HighW(0)-Range*5/6;
SellTarget3=HighW(0)-Range*7/6;
SellTarget4=HighW(0)-Range*8/6;
plot1(BuyTarget1,"BT1L");
plot2(BuyTarget2,"BT1H");
plot3(BuyTarget3,"BT2L");
plot4(BuyTarget4,"BT2H");
plot5(SellTarget1,"ST1H");
plot6(SellTarget2,"ST1L");
plot7(SellTarget3,"ST2H");
plot8(SellTarget4,"ST2L");
end;
I hope you'll find it useful. If you have criticisms or suggestions, please post here.
Cheers
Francisco