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

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



PureBytes Links

Trading Reference Links

The other area is if the QQQQ is already in a  long position whether
it takes a short depends on your AA settings. If short signal is set
to not exit a long position then QQQQ will not go short.
If you do not want QQQQ to take a long position then include condition
buy = buyconditions and Name()!="QQQQ";
If you only want the QQQQ to exit long for a short signal but not the
other stocks then add to sell
Short =shortConditions and Name()=="QQQQ";
Sell = sellConditions and ( Name()=="QQQQ" and Short);// the
additional anme== just to make certain other stocks not affected,
although they should not be

--
Cheers
Graham
AB-Write >< Professional AFL Writing Service
Yes, I write AFL code to your requirements
http://e-wire.net.au/~eb_kavan/ab_write.htm


On 12/24/05, Yuki Taga <yukitaga@xxxxxxxxxxxxx> wrote:
> Hi Terry,
>
> Good points, Terry.  Thanks.  It's an amazing program, that can do
> just about anything.  But one does indeed have to touch all the
> bases. ^_^
>
> Yuki
>
> Saturday, December 24, 2005, 8:52:47 AM, you wrote:
>
> T> Just to cover all the bases:
>
> T> Obviously "QQQQ" is in your database spelled the same AND you have
> T> selected "all symbols" or "use filter" and something containing QQQQ...
> T> or "current symbol" with QQQQ selected.
> T> --
> T> Terry
>
> T> -----Original Message-----
>
> T> You have to get the other parts of the formula down pat, too, of
> T> course.  But AND Name() == "QQQQ" as part of your short statement
> T> will prevent any other symbol from being shorted, AND it will never
> T> prevent QQQQ from being shorted.
>
> T> Yuki
>
>
>
>
>
>
>
> 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
>
>
>
>
>
>
>


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