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

[amibroker] help with code



PureBytes Links

Trading Reference Links

Hi All

I use the code below to generate the buy signal for the system I am testing and need to limit the buy signals to one for each time the last part of the code is true ie:LLV(RSI(7),20) <= 30.  Can anyone suggest how I might achieve this.

EntrySignal = C > ( LLV( L, 20 ) + EntAtrFac * ATR( 10 ) ); 
ExitSignal = C < ( HHV( H, 20 ) - EntAtrFac * ATR( 10) ); 
Color = IIf( EntrySignal, colorBlue, IIf( ExitSignal, colorRed, colorRed ));

EntSigLng =  Color == colorBlue  AND Ref( Color,-1)== colorRed AND MA(C,EntSigMas) > MA(C,EntSigMaL)  AND LLV(RSI(7),20) <= 30;

Thank you to anyone who can help
Kind Regards
Austin Lawrence



------------------------------------

**** 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/