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

[amibroker] Re: How to keep a variable for longer then actual bar



PureBytes Links

Trading Reference Links

Use 
bullish=indicator>=level;
It will be true as long as the indicator is above the level.
Dimitris Tsokakis
--- In amibroker@xxxxxxxxxxxxxxx, "Thomas Schneider" <ts-
schneider@xxxx> wrote:
> Hi,
> I have an indicator which indicates oversold and overbought areas. 
> After the indicator crosses a specific level it's bullish. How can 
I 
> tell a variable untill the next cross to keep its state, lets say
> bullish=true;
> because if I say:
> bullish=iif(cross(indicator,level),true,false);
> it's only for the actual bar.
> So does anyone have an idea.
> Thanks
> Regards
> Thomas


------------------------ Yahoo! Groups Sponsor ---------------------~-->
Buy Ink Cartridges or Refill Kits for Your HP, Epson, Canon or Lexmark
Printer at Myinks.com. Free s/h on orders $50 or more to the US & Canada. http://www.c1tracking.com/l.asp?cid=5511
http://us.click.yahoo.com/l.m7sD/LIdGAA/qnsNAA/GHeqlB/TM
---------------------------------------------------------------------~->

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 http://docs.yahoo.com/info/terms/