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

[amibroker] Valuewhen



PureBytes Links

Trading Reference Links

Hi,

Following is the code which I hv problem :

sig=valuewhen(x,H,1); //(when x is true, sig has the value of H)

(some other codes)

sig=valuewhen(y,L,1); // when y is true, sig has the value of L

My problem is the sig value still remain as H in the next bar even x 
is false and y is true in the previous bar which sig has been 
assigned the value L ??? Isn't sig should be L ?

TIA
kk









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/