Re: [amibroker] Investigation Individual months

2010-06-20 Thread Inquisitive Voyager
try this in commentary- a=LastValue(Month())-2; b=Month()!=Ref(Month(),-1); bi=BarIndex(); d=LastValue(ValueWhen(Month()==a *AND* b,bi,1)); d=*BarCount*-d; e=LastValue(HHV(*C*,d)); WriteVal(e); On Mon, Jun 21, 2010 at 4:49 AM, Steve_Almond wrote: > > > I want to find the highest closing p

[amibroker] Re: afl coding required -- 2

2010-06-20 Thread prasantaroy36
--- In amibroker@yahoogroups.com, "prasantaroy36" wrote: > > Dear friends > > After fulfill buy & short condition, trade will be done after 2nd bar > closing price from signal bar if valid still signal generated condition. So, > what will be the afl logic for backtesting purpose? > Pl,guide.

[amibroker] Investigation Individual months

2010-06-20 Thread Steve_Almond
I want to find the highest closing price for a stock in the last month and the one before that (say highest for May and for April). I thought I could use something like: HHV(C,Ref(Month(),-1)) but it seems only to return a recent high value. Can someone point me in the right direction? Thanks

[amibroker] Re: Howto: Multiple fixed entry prices?

2010-06-20 Thread michaels_musings
Hi Mike, Thanks for the link. Not that I wanted to be writing at the low level custom backtest object, but if ya' gotta, ya' gotta... As a note (warning?), I tried the code on that page, "Appendix C - Lichello AIM Algorithm" and it seems to have wiped my database. After I reloaded the db fro

[amibroker] Re: Why is NinjaTrader Better at Backfilling IB Data?

2010-06-20 Thread michaels_musings
Hi Tomasz, I've seen this statement several places in regards to IB > Historical data requests can go back one full calendar year. and in my backfilling for 180 days of 1-minute bars through AB, I some times get data that is older than 180 days. Which is nice as it makes testing more valid.

Re: [amibroker] Re: Request Afl experts Can you please give MACD DOTS afl concept is as given

2010-06-20 Thread reinsley
Hi, A formula to start with. Best regards |//Macd Rising falling colors r1 = Param( "Fast avg", 12, 2, 200, 1 ); r2 = Param( "Slow avg", 26, 2, 200, 1 ); r3 = Param( "Signal avg", 9, 2, 200, 1 ); mm = MACD(r1, r2); ms = Signal(r1, r2, r3); mh = mm-ms; mcol= IIf(mh>Ref(mh,-1),IIf(mh > 0,27,

[amibroker] afl coding required -- 2

2010-06-20 Thread prasantaroy36
Dear friends After fulfill buy & short condition, trade will be done after 2nd bar closing price from signal bar if valid still signal generated condition. So, what will be the afl logic for backtesting purpose? Pl,guide. Thanks

[amibroker] Re: afl coding required

2010-06-20 Thread prasantaroy36
--- In amibroker@yahoogroups.com, "jollypollyanna" wrote: > > > > --- In amibroker@yahoogroups.com, "prasantaroy36" wrote: > > > > dear friends, > > > > After buy & short , my exit price will be buyprice+200 points &shortprice > > -200 > > points. For backtesting purpose with above criteria

[amibroker] Re: Request Afl experts Can you please give MACD DOTS afl concept is as given

2010-06-20 Thread ford7k
hi friend, here is the NAME OF formula for CCI20 DIVERGENCE INDICATOR THE BETTER afl IS PROBABLY MACD and histogram divergence detection-by Paul moore Some minor changes can bring the afl you desire The dots are basically turning points at peak or trough with conditions like x units move must

[amibroker] Re: Point of Control

2010-06-20 Thread Rob
You can set different session times for each instrument by putting them into 'groups'... get under the hood and start looking at how you set up groups. AB can already do what you want. --- In amibroker@yahoogroups.com, "bertieb_aus" wrote: > > I found the intraday filter settings. Thanks for p