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

[amibroker] Re: Bollinger Band and Timing of Buy or Short



PureBytes Links

Trading Reference Links

I believe that the answer is a qualified yes.

Generally, if you are using Close in your calculations, then your Buy logic should either use Ref(MyCalculation, -1), or you need to use SetTradeDelays(...), but not both.

I say a "qualified" yes because you could potentially trade using conditional orders with Market On Close, in which case you would want to use the current Close for your Buy. In such a scenario, you would need to be able to calculate a value at which your condition would be true, and use a conditional order based on that value.

Mike

--- In amibroker@xxxxxxxxxxxxxxx, "trfy1120" <trfy1120@xxx> wrote:
>
> Is it accurate to say that, if you use bbandbot( close, 10, 2 ) in your BUY statement, then you must set Buy Delay to a number greater than zero to avoid peaking because bbandbot refers to the closing value of the current period?  That is, if, for example, I wanted to use that indicator to determine whether to buy at the open of a given period, I should refer to ref(bbandbot(close,10,2),-1).
> 
> Thanks for any help.
> 
> TRFY1120
>




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

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