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

[amibroker] Re: Counting ALL entries. Hi Mark H. could u pls read.



PureBytes Links

Trading Reference Links

--- In amibroker@xxxxxxxxxxxxxxx, "Mark H" <amibroker@xxx> wrote:
>
> That's the nature of rotational mode, the following is from the
on-line doc for EnableRotationalTrading():
> Important:
> The rotational trading mode uses "buy price" and "buy delay" from
the Settings | Trade page as trade price and delay for both entries
and exits (long and short)
> 
> I don't why it was designed like that, but it is what it is now. To
workaround that, you can set the buy price as close so that the stop
uses the close, but in the bo.EnterTrade(..) function, use the actual
open price of that symbol instead of sig.Price.


Hi Mark, 
sorry if this is basic but I have no idea what the name/function for
the actual open price is, for bo.EnterTrade(....) function. 

(Btw: this goes over the entire portfolio right? not just a single
symbol?)

Is there an actual name for the open price for use in
bo.Entertrade(..) or do you have to write extra code and set it yourself?

If you could would you beable to provide an example of what im
supposed to write? 
I'm going almost crazy trying to figure this out.

I would really appreciate any help.






Content-Description: "AVG certification"
No virus found in this incoming message.
Checked by AVG Free Edition.
Version: 7.1.409 / Virus Database: 268.13.27/517 - Release Date: 11/3/2006