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

RE: [amibroker] programming 101



PureBytes Links

Trading Reference Links


 I stepped in it on that one.  ValueWhen is probably your best bet, but I am starting to get myself confused.  It's best to look at something tangible.--- On Fri 05/16, Sidney Kaiser < s9kaiser@xxxxxxxxxxx > wrote:
From: Sidney Kaiser [mailto: s9kaiser@xxxxxxxxxxx]To: amibroker@xxxxxxxxxxxxxxxDate: Fri, 16 May 2003 17:01:24 -0700Subject: RE: [amibroker] programming 101At 02:59 PM 5/16/2003 -0400, you wrote:>(2) Iif cond1 Then a=c.... where "a" must persist until, I assume, some >other condition is true. If my assumption is correct and we call this >other condition "cond2," then the following code would work:>a = Iif(cond1,c,0);>Flip(a,cond2);Flip is a boolean function which works only if "a" is a 1 or 0.  In the case here "a" is a real value that needs to be stored away until it is used some bars later.  That is why I was thinking perhaps Valuewhen might be needed?????Sid Send BUG REPORTS to bugs@xxxxxxxxxxxxxSend 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. 
---Outgoing mail is certified Virus Free.Checked by AVG anti-virus system (http://www.grisoft.com).Version: 6.0.481 / Virus Database: 277 - Release Date: 5/13/2003Join Excite! - http://www.excite.comThe most personalized portal on the Web!







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.