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

[amibroker] Re: Exrem - Buy Only



PureBytes Links

Trading Reference Links

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
> http://groups.msn.com/asxsharetrading
> http://groups.msn.com/fmsaustralia 
> 
> -----Original Message-----
> From: Ed [mailto:reach1136@x...] 
> 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 for 
a 
> long trade strategy only - 
> 
> When I try to use it, as in the AFL referenc, on a Buy/Long 
scenario 
> 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 ---------------------
~--> Buy
> Ink Cartridges or Refill Kits for your HP, Epson, Canon or Lexmark 
Printer
> at MyInks.com. Free s/h on orders $50 or more to the US & Canada.
> http://www.c1tracking.com/l.asp?cid=5511
> http://us.click.yahoo.com/mOAaAA/3exGAA/qnsNAA/GHeqlB/TM
> --------------------------------------------------------------------
-~->
> 
> Send BUG REPORTS to bugs@xxxx
> Send SUGGESTIONS to suggest@xxxx
> -----------------------------------------
> 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 ---------------------~-->
Buy Ink Cartridges or Refill Kits for your HP, Epson, Canon or Lexmark
Printer at MyInks.com. Free s/h on orders $50 or more to the US & Canada.
http://www.c1tracking.com/l.asp?cid=5511
http://us.click.yahoo.com/mOAaAA/3exGAA/qnsNAA/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/