Thread View: pl.biznes.wgpw
1 messages
1 total messages
Started by Endriu
Wed, 23 Oct 2013 08:58
Zakotwiczenie od liczby świeczek - amibroker.
Author: Endriu
Date: Wed, 23 Oct 2013 08:58
Date: Wed, 23 Oct 2013 08:58
26 lines
1729 bytes
1729 bytes
Jest kod który rysuje na wykresie linie o wartości 100, której to poczatek
pobierany jest z okienka/funkcji ParamDate (możliwość edycji z okienka):
KOD: ZAZNACZ WSZYSTKO
Start = ParamDate("Zakotwicz","2011-01-01",0);
Start1 = LastValue(ValueWhen(DateNum()>=start AND
Ref(DateNum(),-1)<start,BarIndex()));
Linia = 100;
End = LastValue(Linia,0 );
TOP_Line = LineArray(Start1,Linia,End,Linia,1);
Plot(Close,"C",colorBlack,styleCandle);
Plot(TOP_Line,"T",colorRed,styleLine);
Teraz chciałbym aby to "zakotwiczenie" nie działało w zależności od daty,
tylko w zależności od ilości świeczek. Tzn chciałbym aby poczatek tej lini
był rysowany od np. 500 lub np. 400 świeczek.
Czy ktoś jest mi w stanie pomóc ?.
--
Pozdrawiam
Endriu
Thread Navigation
This is a paginated view of messages in the thread with full content displayed inline.
Messages are displayed in chronological order, with the original post highlighted in green.
Use pagination controls to navigate through all messages in large threads.
Back to All Threads