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

RE: [amibroker] Code challenge - gurus on your toes!



PureBytes Links

Trading Reference Links










Have I tried it? NO but looks like that
is the magic answer!!!

 

I get totally wrapped around the axle to
this day on what is an array and what is not an array.

 

If you have the time could you explain
how this works at the individual bar level? If not I understand and really
appreciate this!! It just might help the little light go on in my head (yea,
right!).

 

One more thing: Do you use Amibroker to signal
trades with delay = 1 and Price = Open?  On the evening before the trade
do you use plots to tell you to trade the next morning or do you use some
formula in the AA and run a Scan or Explore to tell you?

 

Thanks Jason!  You are great to be
here help us as much as you do!  

 

d

 

<span
>-----Original Message-----
From: Jayson
[mailto:jcasavant@xxxxxxxxxxxx] 
Sent: Monday, March 17, 2003 3:56
PM
To: amibroker@xxxxxxxxxxxxxxx
Subject: RE: [amibroker] Code
challenge - gurus on your toes!

<span
> 



<span
>Dale have you tried
lastvalue(tmpdelay)





<span
> 





<font size=2 color="#282828"
face=Arial> 





<span
>tmpDelay = <font
size=2 color="#282828" face=Arial>IIf(Status("action") == 5, 1, 0<font
size=2 color=blue face=Arial>);





<span
>tmpdelay=<font
size=2 color="#282828" face=Arial>LastValue<span
>(tmpdelay);





<span
> 





<span
>I think this needs to be
a fixed number..





<span
> 



<span
>Jayson 

-----Original
Message-----
From: dingo [mailto:dingo@xxxxxxxxxx]
Sent: Monday, March 17, 2003 3:41
PM
To: _amibroker_yahoo
Subject: [amibroker] Code
challenge - gurus on your toes!

<span
>I'm trying to write some AFL code that will change the
trade delays and<span
>
trade prices based solely on whether the code is
being run in the back
tester/optimizer or not.

Here's a feeble attempt that doesn't work:

tmpDelay = IIf(Status("action") == 5, 1,
0);
tmpPrice = IIf(Status("action") == 5,
Open, Close);

SetTradeDelays(tmpDelay, tmpDelay, tmpDelay,
tmpDelay);
BuyPrice = SellPrice = ShortPrice = CoverPrice =
tmpPrice;

Lets see if you can solve this one!  (Use of
vbScript is permissable)

d



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


Your use of
Yahoo! Groups is subject to the Yahoo!
Terms of Service. 




<font size=2
face="Courier New">Send BUG REPORTS to
bugs@xxxxxxxxxxxxx<span
>
Send SUGGESTIONS to suggest@xxxxxxxxxxxxx
-----------------------------------------
Post AmiQuote-related messages ONLY to:
amiquote@xxxxxxxxxxxxxxx 
(Web page: <a
href="">http://groups.yahoo.com/group/amiquote/messages/)
--------------------------------------------
Check group FAQ at: <a
href="">http://groups.yahoo.com/group/amibroker/files/groupfaq.html


Your use of
Yahoo! Groups is subject to the Yahoo!
Terms of Service. 










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.