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

Re: [amibroker] force sale/cover at end of day



PureBytes Links

Trading Reference Links

Please foregive my lack of ability in this area - but how do I use the command?

Do I combine it with my current sell/cover commands with an or statement?

Or do I have a separate sell command before by normal buy command - I am 
totally clueless when it comes to script writing.

My current lines are


Buy=(bull1 OR bull2) AND bull3 AND bull4 AND bull5;
Sell = (bear1 OR  bear2) AND bear3 ;

Short=(bear1 OR bear2) AND bear3 AND bear4 AND bull5;
Cover=(bull1 OR  bull2);



Arthur Sawilejskij



 >Hello,
 >
 >There are many ways to Rome :-)
 >You can also use >= instead of ==
 >
 >Best regards,
 >Tomasz Janeczko
 >amibroker.com
 >----- Original Message -----
 >From: "Graham" <gkavanagh@xxxxxxxxxxxxx>
 >To: <amibroker@xxxxxxxxxxxxxxx>
 >Sent: Thursday, June 05, 2003 3:08 PM
 >Subject: RE: [amibroker] force sale/cover at end of day
 >
 >
 >> Would it be better to use this in case your quote time was not exactly
 >> 160000 ?
 >> Sell = Sell OR Cross( TimeNum() , 160000 );
 >> Cover = Cover Or Cross( TimeNum() , 160000 );
 >>
 >> Cheers,
 >> Graham
 >> http://groups.msn.com/ASXShareTrading
 >> http://groups.msn.com/FMSAustralia
 >>
 >> -----Original Message-----
 >> From: Tomasz Janeczko [mailto:amibroker@xxxxxx]
 >> Sent: Thursday, 5 June 2003 8:54 PM
 >> To: amibroker@xxxxxxxxxxxxxxx
 >> Subject: Re: [amibroker] force sale/cover at end of day
 >>
 >> Hello,
 >>
 >> When using intraday data use this:
 >>
 >> Sell = Sell OR TimeNum() == 160000;
 >> Cover = Cover Or TimeNum() == 160000;
 >>
 >> Best regards,
 >> Tomasz Janeczko
 >> amibroker.com
 >> ----- Original Message -----
 >> From: "Arthur Sawilejskij" <arthur@xxxxxxxxxxxxxxx>
 >> To: <amibroker@xxxxxxxxxxxxxxx>
 >> Sent: Thursday, June 05, 2003 2:25 PM
 >> Subject: [amibroker] force sale/cover at end of day
 >>
 >>
 >> > I need to force a sell/cover signal at the end of the day - say any 
trade
 >> > after 1600hours - so that I can start each day fresh for intraday 
trading.
 >> >
 >> > If I don't do this - I can have buy/short signals running from the
 >> previous
 >> > day and not get an entry signal from my scans that day - hence missing
 >> > profitable trades.
 >> >
 >> > Searching through the message base I saw a message suggesting:
 >> >
 >> > Sell = Sell OR Status("lastbarintest");
 >> > Cover = Cover OR Status("lastbarintest");
 >> >
 >> > But when I insert that into AA it seemingly makes no difference to the
 >> scan.
 >> >
 >> >
 >> >
 >> >
 >> >
 >> >
 >> >
 >> > --
 >> > Arthur Sawilejskij
 >> >
 >> >
 >> >
 >> > Send BUG REPORTS to bugs@xxxxxxxxxxxxx
 >> > Send SUGGESTIONS to suggest@xxxxxxxxxxxxx
 >> > -----------------------------------------
 >> > Post AmiQuote-related messages ONLY to: amiquote@xxxxxxxxxxxxxxx
 >> > (Web page: http://groups.yahoo.com/group/amiquote/messages/)
 >> > --------------------------------------------
 >> > Check group FAQ at:
 >> http://groups.yahoo.com/group/amibroker/files/groupfaq.html
 >> >
 >> > Your use of Yahoo! Groups is subject to 
http://docs.yahoo.com/info/terms/
 >> >
 >> >
 >> >
 >>
 >>
 >> Send BUG REPORTS to bugs@xxxxxxxxxxxxx
 >> Send SUGGESTIONS to suggest@xxxxxxxxxxxxx
 >> -----------------------------------------
 >> Post AmiQuote-related messages ONLY to: amiquote@xxxxxxxxxxxxxxx
 >> (Web page: http://groups.yahoo.com/group/amiquote/messages/)
 >> --------------------------------------------
 >> Check group FAQ at:
 >> http://groups.yahoo.com/group/amibroker/files/groupfaq.html
 >>
 >> Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/
 >>
 >>
 >>
 >> Send BUG REPORTS to bugs@xxxxxxxxxxxxx
 >> Send SUGGESTIONS to suggest@xxxxxxxxxxxxx
 >> -----------------------------------------
 >> Post AmiQuote-related messages ONLY to: amiquote@xxxxxxxxxxxxxxx
 >> (Web page: http://groups.yahoo.com/group/amiquote/messages/)
 >> --------------------------------------------
 >> Check group FAQ at:
 >http://groups.yahoo.com/group/amibroker/files/groupfaq.html
 >>
 >> Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/
 >>
 >>
 >>
 >
 >
 >Send BUG REPORTS to bugs@xxxxxxxxxxxxx
 >Send SUGGESTIONS to suggest@xxxxxxxxxxxxx
 >-----------------------------------------
 >Post AmiQuote-related messages ONLY to: amiquote@xxxxxxxxxxxxxxx
 >(Web page: http://groups.yahoo.com/group/amiquote/messages/)
 >--------------------------------------------
 >Check group FAQ at:
 >http://groups.yahoo.com/group/amibroker/files/groupfaq.html
 >
 >Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/


------------------------ Yahoo! Groups Sponsor ---------------------~-->
Get A Free Psychic Reading! Your Online Answer To Life's Important Questions.
http://us.click.yahoo.com/Lj3uPC/Me7FAA/ySSFAA/GHeqlB/TM
---------------------------------------------------------------------~->

Send BUG REPORTS to bugs@xxxxxxxxxxxxx
Send SUGGESTIONS to suggest@xxxxxxxxxxxxx
-----------------------------------------
Post AmiQuote-related messages ONLY to: amiquote@xxxxxxxxxxxxxxx 
(Web page: http://groups.yahoo.com/group/amiquote/messages/)
--------------------------------------------
Check group FAQ at: http://groups.yahoo.com/group/amibroker/files/groupfaq.html 

Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/