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

RE: [amibroker] API code socket port connection to TWS?



PureBytes Links

Trading Reference Links

Anthony,

Yes  I have - bit it has no effect because the buy condition still exists 
after the sell has been executed.

I only want to act once on each new generated buy signal - as my trading 
rule doesn't allow me to double dip on the same move.

I may be trading a counter trend - which is of short duration - and having 
traded it once - trading it the second time may be foolhardy - as the 
pullback is by nature of limited duration.

So, I guess I want the stochastics to cross down and back up - but the sell 
may not be on the actual cross day - as another condition also has to be 
fulfilled - else I could just tell it to execute on a cross, rather than 
stochk() > stochd().

Arthur




 >Arthur,
 >
 >Have you tried adding:
 >
 >Buy=exrem(buy,sell);
 >sell=exrem(sell,buy);
 >
 >Anthony
 >----- Original Message -----
 >From: "Arthur Sawilejskij" <arthur@xxxxxxxxxxxxxxx>
 >To: <amibroker@xxxxxxxxxxxxxxx>
 >Sent: Thursday, March 04, 2004 2:00 AM
 >Subject: [amibroker] ignore extra buy signals
 >
 >
 >>
 >> I have a script that checks for certain conditions for a buy and then
 >sells
 >> next day on close - I trade overnight options.
 >>
 >> For example........
 >>
 >> sttlong = StochK(5) > StochD(5);
 >> ccilong = cross(cci(13), -100);
 >> buy = sttlong and ccilong;
 >> sell = c;
 >>
 >> I sell the next day - but the buy condition still applies subsequent
 >days -
 >> but I don't want to do another trade till I get a new buy signal - not a
 >> succession of buy/sell signals till the next crossovers and buy signal.
 >>
 >> I need some way to only give me one buy/sell signal  - any suggestions
 >> would be appreciated.
 >>
 >> Arthur
 >>
 >>
 >>
 >>
 >>
 >>
 >>
 >>
 >>
 >>
 >>
 >> 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
 >> Yahoo! Groups Links
 >>
 >>
 >>
 >>
 >>
 >>
 >
 >
 >---
 >Outgoing mail is certified Virus Free.
 >Checked by AVG anti-virus system (http://www.grisoft.com).
 >Version: 6.0.583 / Virus Database: 369 - Release Date: 2/10/2004
 >
 >
 >
 >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
 >Yahoo! Groups Links
 >
 >
 >
 >



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