PureBytes Links
Trading Reference Links
|
I am new to trading and am evaluating the demo version of Amibroker, so far like what I see.
I cut and pasted the code in this email and am getting zero results returned. Is there a problem with the code or is there something I might be doing wrong?
Thanks
Dave Robinson <robinson_dave@xxxxxxxxx> wrote:
Hi RR,
I added some components of the example to my prior posting...any
comments?
// -- EXPLORATION START --
/* #### INDICATOR AND PARAMETER DEFINITIONS ###################### */
/* parameters */
msp = Param( "MACD Short Period", 11, 8, 20, 1 );
mlp = Param( "MACD Long Period", 22, 20, 30, 1 );
bpp = Param( "Bull/Bear Period", 13, 10, 30, 1 );
/* weekly trend indicators */
TimeFrameSet( inWeekly );
whist = MACD( msp, mlp ) - Signal( msp, mlp, 9 );
wtrend = ROC( whist, 1 );
TimeFrameRestore();
wtrend = TimeFrameExpand( wtrend, inWeekly );
/* daily trend indicators */
dhist = MACD( msp, mlp ) - Signal( msp, mlp, 9 );
/* oscillators */
bullpower = High - EMA( Close, bpp );
bearpower = Low - EMA( Close, bpp );
/* #### SIMPLE TRIPLE SCREEN SYSTEM ############################## */
Buy =
bearpower < 0
AND
bearpower > Ref( bearpower, -1 )
AND
dhist < 0
AND
wtrend > 0
AND
High > Ref( High, -1 );
BuyPrice = Ref( High, -1 );
Sell =
bullpower > 0
AND
bullpower < Ref( bullpower, -1 )
AND
dhist > 0
AND
wtrend < 0
AND
High < Ref( High, -1 );
SellPrice = Ref( Low, -1 );
Short = Sell;
Cover = Buy;
Filter = Buy OR Sell OR Short OR Cover;
AddColumn( Close, "Close", 1.2);
// -- EXPLORATION END --
--- In amibroker@xxxxxxxxxxxxxxx, "RR" <stocks@xxxx> wrote:
> See Example 3 Amibroker 4.6 userguide page 134.
>
> -----Original Message-----
> From: Dave Robinson [mailto:robinson_dave@x...]
> Sent: Tuesday, August 24, 2004 6:09 PM
> To: amibroker@xxxxxxxxxxxxxxx
> Subject: [amibroker] Elder Triple Screen
>
>
> Has anyone created a system based on the Elder Triple Screen System?
>
> Using Elder's equations for BullPower and BearPower, I came up with
> the system below. I am planning on adding more oscillator
conditions
> and trend conditions.
>
> // -- INDICATOR START --
> /* #### INDICATOR AND PARAMETER DEFINITIONS ######################
*/
> /* parameters */
> msp = Param("MACD Short Period", 11, 8, 20, 1);
> mlp = Param("MACD Long Period", 22, 20, 30, 1);
> sp = Param("Short Period", 22, 1, 22, 1);
>
> /* trend indicators */
> dhist = MACD( msp, mlp ) - Signal( msp, mlp, 9 );
>
> /* oscillators */
> bullpower = High - EMA( Close, sp );
> bearpower = Low - EMA( Close, sp );
>
> /* #### SIMPLE TRIPLE SCREEN SYSTEM ##############################
*/
> Buy =
> bearpower < 0
> AND
> bearpower > Ref( bearpower, -1 )
> AND
> dhist < 0
> AND
> High > Ref( High, -1 );
>
> Sell =
> bullpower > 0
> AND
> bullpower < Ref( bullpower, -1 )
> AND
> dhist > 0
> AND
> High < Ref( High, -1 );
>
> Buy = ExRem(Buy,Sell);
> Sell = ExRem(Sell,Buy);
> // -- INDICATOR END --
>
>
> Any comments on this? Thanks...Dave
>
>
>
>
> Check AmiBroker web page at:
> http://www.amibroker.com/
>
> Check group FAQ at:
> http://groups.yahoo.com/group/amibroker/files/groupfaq.html
> Yahoo! Groups Links
Check AmiBroker web page at:
http://www.amibroker.com/
Check group FAQ at: http://groups.yahoo.com/group/amibroker/files/groupfaq.html
Yahoo! Groups SponsorADVERTISEMENT
---------------------------------
Yahoo! Groups Links
To visit your group on the web, go to:
http://groups.yahoo.com/group/amibroker/
To unsubscribe from this group, send an email to:
amibroker-unsubscribe@xxxxxxxxxxxxxxx
Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.
---------------------------------
Do you Yahoo!?
Win 1 of 4,000 free domain names from Yahoo! Enter now.
[Non-text portions of this message have been removed]
------------------------ Yahoo! Groups Sponsor --------------------~-->
Make a clean sweep of pop-up ads. Yahoo! Companion Toolbar.
Now with Pop-Up Blocker. Get it for free!
http://us.click.yahoo.com/L5YrjA/eSIIAA/yQLSAA/GHeqlB/TM
--------------------------------------------------------------------~->
Check AmiBroker web page at:
http://www.amibroker.com/
Check group FAQ at: http://groups.yahoo.com/group/amibroker/files/groupfaq.html
Yahoo! Groups Links
<*> To visit your group on the web, go to:
http://groups.yahoo.com/group/amibroker/
<*> 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/
|