PureBytes Links
Trading Reference Links
|
You can either add the exploration code to the existing strategy code, or #include_once the strategy file into a new exploration file.
http://www.amibroker.com/guide/afl/afl_view.php?name=%23include_once
One way to determine whether or not you are in a position is to use the Flip function.
http://www.amibroker.com/guide/afl/afl_view.php?id=51
Example;
Buy = ...
Sell = ...
Short = ...
Cover = ...
AmLong = Flip(Buy, Sell);
AmShort = Flip(Short, Cover);
// Output "L" when long, "S" when short, "F" when flat.
Filter = 1;
AddColumn(IIf(AmLong, Asc("L"), IIf(AmShort, Asc("S"), Asc("F"))), "Position", formatChar);
Mike
--- In amibroker@xxxxxxxxxxxxxxx, "lucianomt" <lucianomt@xxx> wrote:
>
> I want to use the Exploration function to screen a watch list for Buy/Sell signals generated by a strategy I already have. The Exploration list should show the symbols and whether I am long, short or flat that symbol according to the strategy.
>
> Do I have to replicate the strategy code on the exploration code or can I just refer to that strategy? If so, how?
>
------------------------------------
**** IMPORTANT PLEASE READ ****
This group is for the discussion between users only.
This is *NOT* technical support channel.
TO GET TECHNICAL SUPPORT send an e-mail directly to
SUPPORT {at} amibroker.com
TO SUBMIT SUGGESTIONS please use FEEDBACK CENTER at
http://www.amibroker.com/feedback/
(submissions sent via other channels won't be considered)
For NEW RELEASE ANNOUNCEMENTS and other news always check DEVLOG:
http://www.amibroker.com/devlog/
Yahoo! Groups Links
<*> To visit your group on the web, go to:
http://groups.yahoo.com/group/amibroker/
<*> Your email settings:
Individual Email | Traditional
<*> To change settings online go to:
http://groups.yahoo.com/group/amibroker/join
(Yahoo! ID required)
<*> To change settings via email:
mailto:amibroker-digest@xxxxxxxxxxxxxxx
mailto:amibroker-fullfeatured@xxxxxxxxxxxxxxx
<*> To unsubscribe from this group, send an email to:
amibroker-unsubscribe@xxxxxxxxxxxxxxx
<*> Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/
|