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

[amibroker] PlotShapes at specific Time



PureBytes Links

Trading Reference Links

Hi,

try this,

Condition1 = RSI() < 30;

Condition2 = RSI() > 32;

Condition3 = barssince( Condition1 );
Condition4 = barssince( Condition2 );

Buy = Condition4 > Condition3;


or shorter as;

Condition1 = barssince( RSI() < 30 );
Condition2 = barssince( RSI() > 32 );

Buy = Condition2 > Condition1;

Don

-----Original Message-----
From: allenfwtx [mailto:allenfwtx@xxxxxxxxx]
Sent: Friday, 2 July 2004 3:23 PM
To: amibroker@xxxxxxxxxxxxxxx
Subject: [amibroker] Need programming help


Using Cross(), I know how to trigger a Buy when an indicator exceeds
some value; however I don't know how to wait until the indicator dips
to some predetermined value, then rises back above that threshold.
For example, if I want to trigger a Buy once the RSI(n) falls below
30, but not until it then rises above 32, how would I program that?

thanks to all for your time and help.






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







------------------------ Yahoo! Groups Sponsor --------------------~--> 
Yahoo! Domains - Claim yours for only $14.70
http://us.click.yahoo.com/Z1wmxD/DREIAA/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/