[amibroker] AFL - buys at bar low even when my buyprice is not hit

2010-06-30 Thread Siva
My AFL basically buys when MA(20)starts trending up. The system should buy only when my buyprice is hit. var1 = MA( Close, 20 ); Cond1 = Ref( var1, -4 ) < Ref( var1, -5 ) ; Cond2 = Ref( var1, -3 ) < Ref( var1, -4 ); Cond3 = Ref( var1, -2 ) > Ref( var1, -3 ) ; Cond4 = Ref( var1, -1 ) > Ref( var1, -

Re: [amibroker] Re: New 3rd party toolset for AmiBroker

2010-06-30 Thread Rick Osborn
Appreciate the response. Speed is not the problem. Understanding why is. Perhaps someone can enlighten me? Best Regards Rick Osborn From: Rob To: amibroker@yahoogroups.com Sent: Wed, June 30, 2010 2:41:18 AM Subject: [amibroker] Re: New 3rd party toolset for

[amibroker] Re: New 3rd party toolset for AmiBroker

2010-06-30 Thread Rob
Rick, Most things can be done in 'pure' AFL... i.e. array operations. However, not everything can be done simply by operating on arrays. Some array functions allow for recursive operations to be carried out, namely AMA() and AMA2()... However, some recursive algorithm's (for example those where

[amibroker] Re: AFL - buys at bar low even when my buyprice is not hit

2010-06-30 Thread j0etr4der
Buy does not depend on the BuyPrice. If Buy is True and the BuyPrice you set is below the Low, then AB sets the BuyPrice at the Low. See "PriceBoundChecking" in Help. Assuming you are sending a limit buy at the BuyPrice to your broker for a trade tomorrow: . . . BuyPrice = Close - ATR(10) * 0

[amibroker] Re: How to mix systems

2010-06-30 Thread Ronen
Hi Tomasz If I looked at the documentation and couldn't find a coding example. I might be overlooking it. If not, can you point us in the right direction with a simple example. If I'm understanding this topic correctly, we need two different sets of position score. One for each system. Sys

Re: [amibroker] Re: New 3rd party toolset for AmiBroker

2010-06-30 Thread Rick Osborn
Aha Thanks Rob Best Regards Rick Osborn From: Rob To: amibroker@yahoogroups.com Sent: Wed, June 30, 2010 7:38:49 AM Subject: [amibroker] Re: New 3rd party toolset for AmiBroker Rick, Most things can be done in 'pure' AFL... i.e. array operations. However

[amibroker] How to make stops trigger as CLOSE +1

2010-06-30 Thread graphman27
Question: When stops are coded afl instead of setup under settings, do they disregard the system settings for Buy Price and Buy Delay? Currently, I have the latter set to Buy Price = Close+1 Day Buy Delay. For a new strategy I am working on, I notice that during live testing something doesn'

[amibroker] Re: How to make stops trigger as CLOSE +1

2010-06-30 Thread Mike
Hi, Since you are trading the Close, you could simplify your life by following one of the well defined scenarios from the ApplyStop documentation: http://www.amibroker.com/guide/afl/afl_view.php?id=20 In your case, follow scenario 2 and take your trades based on yesterday's signal. e.g. SetT

[amibroker] Add labels without study!

2010-06-30 Thread infynhome
Hello members, How do we add only the label / value of a particular indicator / average in the price pane of the chart... but do not wish to plot the study??? What I want is... to add 5 period EMA of Highs and Lows on the price chart... but only need its values as a label and want to avoid plot

Re: [amibroker] Add labels without study!

2010-06-30 Thread Inquisitive Voyager
_SECTION_BEGIN("Price"); SetChartOptions(0,*chartShowArrows*|*chartShowDates*); _N(*Title* = StrFormat("{{NAME}} - {{INTERVAL}} {{DATE}} Open %g, Hi %g, Lo %g, Close %g (%.1f%%) {{VALUES}}", *O*, *H*, *L*, *C*, SelectedValue( ROC( * C*, 1 ) ) )); Plot( *C*, "Close", ParamColor("Color", *colorBla