PureBytes Links
Trading Reference Links
|
Hello,
I am trying to code in my exit the first profitable exit after entry.
My entry is simple close < bbandbot(c,10,s,2) (buy on close). I want
to exit on the first profitable open after that entry so I use :
open > valuewhen(1,close < bbandbot(c,10,s,2),close)
and this works most of the time. However, when there are 2
consecutive closes below the lower bollinger band and it opens below
the entry then it exits on the open if the close of the 2nd bar is
below the lower bollinger band. Which obviously isn't a profitable
opening.
I tried to use a simple if() statement but it will only let me put
data arrays in it and not functions.
Help
Thanks
Eric
------------------------ 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/zMEolB/TM
--------------------------------------------------------------------~->
Yahoo! Groups Links
<*> To visit your group on the web, go to:
http://groups.yahoo.com/group/Metastockusers/
<*> To unsubscribe from this group, send an email to:
Metastockusers-unsubscribe@xxxxxxxxxxxxxxx
<*> Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/
|