[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




Dale 
have you tried lastvalue(tmpdelay)
<SPAN 
class=231285220-17032003> 
<FONT 
color=#282828 size=2> 
tmpDelay = IIf(<FONT 
size=2>Status("action"<FONT 
size=2>) == 5, <FONT 
size=2>1, 0<FONT color=#282828 
size=2>);<FONT color=#282828 face=Arial 
size=2>
tmpdelay=LastValue<FONT color=#282828 
face=Arial size=2><FONT 
color=#0000ff>(tmpdelay);
 
I 
think this needs to be a fixed number..
 Jayson 
<FONT face=Tahoma 
size=2>-----Original Message-----From: dingo 
[mailto:dingo@xxxxxxxxxx]Sent: Monday, March 17, 2003 3:41 
PMTo: _amibroker_yahooSubject: [amibroker] Code challenge 
- gurus on your toes!I'm trying to write some AFL code 
that will change the trade delays andtrade prices based solely on whether 
the code is being run in the backtester/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)dSend 
BUG REPORTS to bugs@xxxxxxxxxxxxxSend 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 <A 
href="">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.