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

RE: [amibroker] Re: Exrem - Buy Only



PureBytes Links

Trading Reference Links




<SPAN 
class=660034505-14122003>Ed, I'd suggest thinking through what you intend ExRem 
to do for you. All it does is remove duplicate signals in the same direction, 
which the backtester does automatically anyway. Typically it's only needed when 
you want to plot your own buy/sell arrows in an indicator.
<SPAN 
class=660034505-14122003> 
<SPAN 
class=660034505-14122003>In any case, "duplicate" signals means ones without a 
signal in the opposite direction between them, like two buys in a row without a 
sell in between. That's why it takes two parameters -- it's about the 
relationship between the signals in the two passed arrays. 
<SPAN 
class=660034505-14122003> 
<SPAN 
class=660034505-14122003>That's why Sell has to be defined in the code you sent. 
For useful results, not just defined, as in set to zero, but set to something 
that alternates in a meaningful way with Buy. If Sell is always zero, once a Buy 
happens, there won't ever be a Sell to alternate with, and your output will 
contain only that one first Buy.
<SPAN 
class=660034505-14122003> 
<SPAN 
class=660034505-14122003>Make any sense?
<SPAN 
class=660034505-14122003> 
<SPAN 
class=660034505-14122003>What was the original problem you were trying to solve 
with ExRem? Were you plotting shapes or running a backtest? How were you 
thinking you'd exit your buys?
<SPAN 
class=660034505-14122003> 
<SPAN 
class=660034505-14122003>Dave
<BLOCKQUOTE 
>You 
  just need to define the sell condition, otherwise exrem is open endedand 
  undefineableYou could try using something that is impossible (normally) 
  like Sell = C<0;//close < zeroCheers,Graham<A 
  href="">http://groups.msn.com/asxsharetrading<A 
  href="">http://groups.msn.com/fmsaustralia 
  Hi Graham.. Here's the code - Settings are Long.The error 
  message is 
  :++++++++++++++++++++++++++++++++++++++++++++++++++++++++Buy=ExRem(Buy,Sell);-------------------^Variable 
  'sell' used without having been initialized.Line 5, Column 
  20:++++++++++++++++++++++++++++++++++++++++++++++++++++++Code:++++++++++++++++++++++++++++++++++++++++++++++++Buy 
  = L <= Ref(LLV(L,y),-1);y=10;Buy = L <= 
  Ref(LLV(L,y),-1);Buy=ExRem(Buy,Sell);Filter= Close > 2 AND 
  ( Buy);AddTextColumn( FullName(), "Full name", 77 , colorDefault, IIf( 
  Close < 10, colorLightBlue, colorDefault ) );AddColumn (Close, 
  "Close");AddColumn (Buy, 
  "Buy");+++++++++++++++++++++++++++++Thanks, Ed--- In 
  amibroker@xxxxxxxxxxxxxxx, "Graham" <gkavanagh@xxxx> wrote:> 
  Ed> You should be able to just use it for longs only, I do.> Can 
  you describe the error message, and provide the relevant code. > 
  > Buy = ExRem(Buy,Sell);> > Cheers,> 
  Graham> <A 
  href="">http://groups.msn.com/asxsharetrading> 
  <A 
  href="">http://groups.msn.com/fmsaustralia> 
  > -----Original Message-----> From: Ed 
  [mailto:reach1136@xxxx]> Sent: Sunday, 14 December 2003 7:36 AM> 
  To: amibroker@xxxxxxxxxxxxxxx> Subject: [amibroker] Exrem - Buy 
  Only> > > Somewhere I think I saw an example of using the 
  ExRem function fora > long trade strategy only -> > 
  When I try to use it, as in the AFL referenc, on a Buy/Longscenario 
  > only, it gives me error messages.> > I did a search, 
  but can't seem to find it.  Can anyone help?> > Thanks 
  Ed






Yahoo! Groups Sponsor


  ADVERTISEMENT 









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.