Tony Crabels Intraday Signal

amibroker afl formula files

Code created by Pete Hahn, Phoneix Arizona, USA Updated 7/5/09
Notice: The contents of this code are intended to be purely
educational in nature. Trade at your own risk. Nothing in this
code is intended to guarantee profits or losses of any size.
Past results are not indicative of future performance. Consult
your registered financial planner before applying any of these
techniques to your live trading account. Errors may be present
in the code of which the author is not aware.
Inquiries may be sent to: onedryheat@yahoo.com

Version Notes:
VVVVVVVVVVVVVVVVVV   1.3  VVVVVVVVVVVVVVVVVVVVVVVVV
v1.3 adds rounding feature with adjustable parameters to work
with stocks, futures and forex. Also added to V1.3 is an exploration
with two modes. One for quick scans run just after the market opens
and can be run multiple securities with an output of the basic levels.
The other is a more thorough exploration intended to be used with one
security at a time, and then output to a spread sheet for further analysis.
Search in this docutment for the word 'Exploration' as the instructions
or it's use are contained within that section.
VVVVVVVVVVVVVVVVVV   1.4  VVVVVVVVVVVVVVVVVVVVVVVVV
## Added user selectable stop amount. Stop amount is selected in the
parameters dialog and is used as a multiplier to position the stop loss
in between the breakout and the open. Lower values move the stop loss
closer to the brekout, higher values move the stop loss closer to the
open. Greater than 1 places the stop on the opposite side of the open.
## Fixed a bug in the FirstBOL and First BOL statements which prevented
an entry Signal from being recorded on the opening bar.
##Modified start and end time for market hours so the user can select whether
to adjust for daylight savings. User may chage the date ranges used for the
daylight savings adjustment in the Parameters as well. Your data may not
need to be adjusted for daylight savings so you should check your database
to determine if this parameter should be on or off.
## Cleaned up the code to reduce processor usage.
## Fixed some problems with the way the exploration was calculating the
various levels AND recording entries/exits.
## Modified various price patterns so they can adjust for shortened
holiday trading days, (mostly used for futures and forex). User can select
whether to filter out holidays or not. Your data may not contain data from
shortened holiday market hours. This is mainly found in Futures and Forex data.
You should examine your data to determine the best seeting to use.
## Added parameter to allow adjustment of the profit target line
## IMPORTANT NOTICE: I used a section of VBScript in order to calculate some
of the time values related to the market open and close times. VBScript host
is required in order to run this AFL, and it is included in Windows 2000 and XP.
I don't know if this is compatible with Windows Vista. More information is
available in the AB help files. Search "AFL Scripting Host" to locate the
Amibroker support information.

Required settings:
Tools --> Preferences | go to Intraday tab and select "START time of interval"
View --> Intraday --> "Show 24 Hours Trading"
View --> Intraday --> "Filter Weekends"


Download Now

No comments:

Post a Comment