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 [email protected], "trfy1120" <trfy1...@...> 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 >
