PureBytes Links
Trading Reference Links
|
Hi, I am back - with a new identity, hidden email, but still the same
person behind it (and still the same Swiss bank account number).
With
buy = formula
something like
BarsSince( formula = 0)
will return the number of bars since the formula last was zero. Just
check this first, but this should give you the number of days since
you went long, so change your buy formula to
buy = formula * ( BarsSince( formula = 0 ) <= 10 )
to exit after ten bars long, and the same idea applies to the short
formula.
Regards
MG Ferreira
TsaTsa EOD Programmer and trading model builder
http://www.ferra4models.com
http://fun.ferra4models.com
--- In equismetastock@xxxxxxxxxxxxxxx, "macm2205" <macm2205@xxxx> wrote:
> How can I close my position after 10 or more bars?
>
> Example
>
> buy = formula
> sell = after 10 bars
> sell short = formula
> buy to cover = after 10 bars
>
> Sorry if it is fool question but I didn`t find the answer.
>
> Thanks
>
> Mario
------------------------ Yahoo! Groups Sponsor --------------------~-->
In low income neighborhoods, 84% do not own computers.
At Network for Good, help bridge the Digital Divide!
http://us.click.yahoo.com/EpW3eD/3MnJAA/cosFAA/BefplB/TM
--------------------------------------------------------------------~->
Yahoo! Groups Links
<*> To visit your group on the web, go to:
http://groups.yahoo.com/group/equismetastock/
<*> To unsubscribe from this group, send an email to:
equismetastock-unsubscribe@xxxxxxxxxxxxxxx
<*> Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/
|