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

Re: [amibroker] Counting bars



PureBytes Links

Trading Reference Links

hi,

try out the barssince function.
probably   buy = mycondition and barssince (sell>3);

Regards

Thomas
http://www.tradingbasis.com



Andrew Z wrote:

>G'day all,
>
>In my system I check that the preceding 3 bars meet certain criteria 
>prior to executing my buy or sell. Using exrem I ignore all buy/sell 
>signals generated once I've taken a position. However, once I'm out of a 
>trade the preceeding 3 bars (last 3 bars of the previous trade) are 
>still checked against my criteria. I want to ignore these 3 bars and 
>start my check from the 4th bar after I exit a position.
>
>Any ideas??
>
>Thanks,
>Andrew.
>
>
>
>
>Please note that this group is for discussion between users only.
>
>To get support from AmiBroker please send an e-mail directly to 
>SUPPORT {at} amibroker.com
>
>For other support material please check also:
>http://www.amibroker.com/support.html
>
> 
>Yahoo! Groups Links
>
>
>
> 
>
>
>
>
>
>  
>



------------------------ Yahoo! Groups Sponsor --------------------~--> 
Help Sudanese refugees rebuild their lives through GlobalGiving.
http://us.click.yahoo.com/hjNroD/EbOLAA/cosFAA/GHeqlB/TM
--------------------------------------------------------------------~-> 

Please note that this group is for discussion between users only.

To get support from AmiBroker please send an e-mail directly to 
SUPPORT {at} amibroker.com

For other support material please check also:
http://www.amibroker.com/support.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/