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

Re: [amibroker] Re: A simlpe question



PureBytes Links

Trading Reference Links







Dimitri,
 
This may be what you are trying to do, It is a first attempt....having the bar on today will also return the
value for yesterday....:
 
Load into Guru Commentary.
 

" StochD value Current bar = "+WriteVal(StochD(),1);
"";
" StochD value yesterday was = "+WriteVal(Ref(StochD(),-1),1);
"";
s=WriteIf(StochD()<30,WriteVal(DateTime(),formatDateTime)+" o/s",WriteIf(StochD()>=30 AND StochD()<70,WriteVal(DateTime(),formatDateTime)+" congestive",WriteVal(DateTime(),formatDateTime)+" o/b"));
WriteIf(Ref(DateTime(),-1) AND Ref(StochD(),-1)<30,WriteVal(Ref(DateTime(),-1),formatDateTime)+
" o/s","");
WriteIf(Ref(DateTime(),-1) AND Ref(StochD(),-1)>=30 AND Ref(StochD(),-1)<70,WriteVal(Ref(DateTime(),-1),formatDateTime)+" congestive","");
WriteIf(Ref(DateTime(),-1) AND Ref(StochD(),-1) >70 ,WriteVal(Ref(DateTime(),-1),formatDateTime)+" o/b","");

Anthony 







____________________________________________________  IncrediMail - Email has finally evolved - Click Here






Yahoo! Groups Sponsor












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.

Attachment: Description: ""