[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [amibroker] Intraday entries



PureBytes Links

Trading Reference Links

Hello,

>(snip)
> I think just about every kind of intraday entry would be affected :-((
Take for example
> ATR breakout entries, where the system buys when price crosses above the
Open +
> ref((ATR(X)*y),-1) and sells when it goes below Open-Ref((ATR(X)*y),-1),
if there is a
> pair of these signals there would always be the problem which came first
:-((
>
> So no way to test intraday entries, just something "fixed for good" like
the Open or the
> Close?

No I don't think so. You only get problems when BOTH enter short and enter
long signals
appear on the very same bar.
But... this is really a problem with your trading system.
The system SHOULD NOT give you simultaneous signals in OPPOSITE directions.
This is equivalent to car driver that wants to turn left and right at the
same time.
Frankly speaking you should filter OUT such signals (be out of the market).

If you really want to have MUTLIPLE TRADES during SINGLE day you have to run
your tests
on intraday data.

>
> In this case. Assuming I pull up an intraday chart, how do I test a system
referring to
> previous _day_ high or low?

/* in intraday mode */

prev_day_low = ValueWhen( Day() != Ref( Day(), 1 ), LowestSince( Day() !=
Ref( Day(), -1 ), Low ) );
prev_day_high = ValueWhen( Day() != Ref( Day(), 1 ), HighestSince( Day() !=
Ref( Day(), -1 ), Low ) );


> And, - this would be the top of dreams ;-)) - does AmiBroker have a way -
testing intraday
> system - to refer to previous _day_ value of an indicator? Lets say
Monday's ATR(5) is 20,
> would this information be available to Automatic Analysis when it tests
intraday for
> Tuesday? Metastock would in this situation spit out something like:
"Please choose a
> security with compatible periodicity" :-((
This is a little bit complicated. For some indicators like moving averages
you can just multiply
the number of periods by the number of bars per day to get the approximate.
Then you can refer to previous day value by:
ValueWhen( Day() != Ref( Day(), -1 ), your_indicator_here );

Note that multiplying periods does not work well in many cases.

I am aware that this is a problem (previously known for those of you trying
to mix weekly & daily signals)
and I am going to address this issue soon (but not in 4.0).

Best regards,
Tomasz Janeczko
amibroker.com