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
--- 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.
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
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
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.
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,
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
--- 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
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
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
10 matches
Mail list logo