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

Re: [amibroker] Re: Trading just "one" stock



PureBytes Links

Trading Reference Links

Hi Werner,

Saturday, December 24, 2005, 7:52:38 AM, you wrote:

W> Unfortuntely this does not work. NOTHING is shorted with the code below. 

W> Short = (your short rule) AND Name() == "QQQQ";

W> There must be some other trick to ONLY short the QQQQ (no other stock). 

W> Any suggestions?

W> Werner

You did make a short condition, right?  As written literally above,
nothing would short, and you'd probably get a error message saying
you have an undefined variable '(your short rule)'.

It will break my understanding of how to do anything if this doesn't
work:

Short = C > O and Name() == "QQQQ";

That should give you a short sale every day the close is higher than
the open, and no symbol except QQQQ would be allowed.

You have a SellPrice statement, too, right?

You are correct that there are other ways to do this.  I think Fred
showed one.  I think I showed a very easy one.

You have to get the other parts of the formula down pat, too, of
course.  But AND Name() == "QQQQ" as part of your short statement
will prevent any other symbol from being shorted, AND it will never
prevent QQQQ from being shorted.  There is something somewhere else
in your formula that is preventing that from happening.  Maybe you
have a position size of zero, or some odd thing like that.  But that
bit of code in a short statement cannot prevent QQQQ from being
shorted, and will prevent anything else.  But that's all it does.  It
doesn't short QQQQ unless you have a valid formula for shorting QQQQ,
or anything else, but particularly QQQQ.

Yuki



------------------------ Yahoo! Groups Sponsor --------------------~--> 
Try Online Currency Trading with GFT. Free 50K Demo. Trade 
24 Hours. Commission-Free. 
http://us.click.yahoo.com/RvFikB/9M2KAA/U1CZAA/GHeqlB/TM
--------------------------------------------------------------------~-> 

Please note that this group is for discussion between users only.

To get support from AmiBroker please send an e-mail directly to 
SUPPORT {at} amibroker.com

For other support material please check also:
http://www.amibroker.com/support.html

 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/amibroker/

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