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

[amibroker] Re: Is this possible? Its doing my head in.



PureBytes Links

Trading Reference Links




 OOps sent the wrong reply.
 
 
 
 Exactly, thats why its doing my head in.
 
 I tried various type of counters, 
 And even tried it using only the exrem on the buy, and thought i could work it out from there.
 
  So are you saying this is impossible. 
 
 Peter.
 
--- In amibroker@xxxxxxxxxxxxxxx, "Bob Jagow" <bjagow@x...> wrote:> <<     If buy==1 and sell ==1 and the previous buy has had a sell signal> before today, then buy and sell on the same bar. >>> > Don't you have to know which came first?>   -----Original Message----->   From: peter j [mailto:amiabilityy@xxxx]>   Sent: Wednesday, May 07, 2003 6:01 PM>   To: amibroker@xxxxxxxxxxxxxxx>   Subject: [amibroker] Is this possible? Its doing my head in.> > >   Is it possible to create a trade flag for this.>      With out using exrem,>      If buy==1 and sell ==0, and the previous trade has been closed ,>   then buy.>       If buy==0 and sell==1 and in a trade which has not had a sell signal,>   then sell.> >        If buy==1 and sell ==1 and the previous buy has had a>   sell signal before today, then buy and sell on the same bar.> >       If buy ==1 and sell==1 and the previous buy has not had>   a sell signal  before today, then  sell.  (dont place a new buy  on the>   same bar that has a sell).> >      I guess this needs a loop.> >    Basically i am trying to bypass using exrem, to allow an entry and exit> on the same bar,> >    I dont want an a new entry placed  when already in a trade, on the day of> the sell, as the trade was not closed.>     2 entries before a sell would not be realistic.>     This happens when using exrem.> >     The attached files shows a sample from a backtest using exrem.>      I am trying to avoid the same result as in the attachment.> > >     Peter.> > > > > > ----------------------------------------------------------------------------> -->   Do you Yahoo!?>   The New Yahoo! Search - Faster. Easier. Bingo.>         Yahoo! Groups Sponsor> > > > > >   Send BUG REPORTS to bugs@x...>   Send SUGGESTIONS to suggest@x...>   ----------------------------------------->   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 the Yahoo! Terms of Service.
Do you Yahoo!?
The New Yahoo! Search - Faster. Easier. Bingo.






Yahoo! Groups Sponsor












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 the Yahoo! Terms of Service.