PureBytes Links
Trading Reference Links
|
g'day Chris,
thanks again for your help,,,code for dummy's will be for me if i continue down this track,,extremely unlikely at this stage.
i do thank you for the examples you gave too,
cheers Chris,,
all the best with your trading,
Paul
off to join amway and a few other networking advisory's that use trading as the tool to leverage cash from those interested in the way of trading.
Paul
The gartley indicator really runs slow on my PC.
it also says
// A port of the Wealth-Lab code posted by Mark Conway to the Wealth-Lab
// forums. It has been adapted to an AFL indicator, but with a little work it
// could be made into a scan or even a trading system.
The code in the library is for use as an indicator for plotting.
You would need to convert it into code for scanning and backtesting.
When AFL finds a variable that has not been assigned you will get an "initializing error" message. This means it has found a word/assigment that it does not understand because it still needs defining (initiallizing).
So if you enter;
Buy = condition1;
AFL looks for where condition1 was defined. If it has not been defined (initiallized) it tells you so. Then you add a Condition1 line in the code....
Condition1 = dayofweek() == 1; // it must be a monday.
Buy = condition1;
You can have more than one condition...
Condition2 = Open > ref(h,-1);// the Open is higher than previous bar's high.
Buy = condition1 AND condition2;
// then means you want to have a buy signal on a Monday when the open is higher than the previous close.
You then need to define other things in your backtest:
What delays you want.
Do you buy OHLC?
What exits do you define.
Position sizing etc.
etc.
Also, have a look at "Back-testing your trading ideas" in the help file.
As a non programmer I found AFL tough.
Reading C for Dummies, C++ for Dummies gave me some grounding.
Basic stuff eventually gets into my skull.
More advanced stuff needs serious study and time.
A huge of amount of assistance, tips, ideas and code snippets can be found in this massively helpful group. I find there is too much to follow for my simple needs.
Second option is to present your *exact* entries/exits/position sizing etc and to a programmer for a fee, and get on with trading. Depends on how you want to approach this.
Regards
ChrisB
paulradge <paulradge@xxxxxxxxxxxxxxx> wrote:
Hi Chris,
thanks for your feedback and info ,,i've started reading the tutorial but this stuff is complex compared to what i've been using ie ezyanalyser,,,
i have a big interest in Gartley's and would really like to get this into a scan/exploration ,,
i have tried your advice of buy = mycondition unsure where to place it though,,,there's a few theory's on where to buy a Gartley so i thought your advice of mycondition is great ,,so i placed it at the end of the entire script buy = mycondition;
i get error 29 ,,needs inititialzing ,,,,i've found the list of errors within help file which shows an example that makes sense but i don't see how i can apply it to this situation ,,??
Paul
Paul
The code in the library is plotting an indicator to be drawn in a chart.
Scan is used for
Addtocomposite ( see help file)
or for
Scanning for buy/sell/short/cover signals.
Therefore it wants a Buy or sell condition added to the code, like so
Buy =1;
or Buy = Mycondition;
Exploration can use the same code but expects to output data into columns for you to look at, hence it needs
a filter statement,
e.g. filter = close > 3 AND volume > whateveryoulike;
or filter = buy; // if you already have a buy statement in the code.
and needs you to tell it what to output into columns and how to format those columns with
Addcolumn(close, " header for column", etc,...)
Addtextcolumn();
Search Help for
Addcolumn
and do try the User's guide, Tutorial, Amibroker formula language, How to create your own exploration for more complete info.
Regards
ChrisB
paulradge <paulradge@xxxxxxxxxxxxxxx> wrote:
Hi,
i have found a code in the library on the Gartley222 that i'd like to use,
i downloaded file code and copied and pasted it into the Formula editor and saved it in the custom folder named gartley222,,,if i then click apply indicator from within the editor i get a new pane very similar to the chart i'm looking at ,,,i copied and pasted everything i downloaded.
what i'd like to do is scan a watch list for gartley's,, so next i used the auto-analyser ,,
and picked the file name that i saved in afl format in the custom folder, gartley222 and then within "apply to" i used "use filter -define" and selected the asx300 watchlist,,and pressed scan,,,i then see and error ,,missing buy/sell variable assignments,,
with the advice of check the tutorial,,,which i have looked at ,,i assumed that the gartley222 code written would have all that information,,,
i was going to ask for someone to check that code in the library and are there any garley use'rs out there,,i've tried a few other filters from the library and have the same error ,,,
so the common denominator is me,,,now looking to read up on the difference between scan and explore,but any advise is welcome.
Paul
--------------------------------------------------------------------------
Yahoo! Messenger with Voice. Make PC-to-Phone Calls to the US (and 30+ countries) for 2¢/min or less.
------------------------------------------------------------------------------
Get your email and more, right on the new Yahoo.com
Content-Description: "AVG certification"
No virus found in this incoming message.
Checked by AVG Free Edition.
Version: 7.1.409 / Virus Database: 268.13.27/517 - Release Date: 11/3/2006
|