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

Re: [amibroker] Problem with Status("actionEx")



PureBytes Links

Trading Reference Links



Use Printf instead of WriteVal.


On Sat, Oct 3, 2009 at 3:21 PM, Keith McCombs <kmccombs@xxxxxxxxxxxx> wrote:
 

Graham --
Thank you for your suggestion.  However, I know I don't need it for just the snippet displayed.

This is from a much larger program where I wish to disable the display in Indicator, Commentary, etc., if/when some other actions are performed. 

When I post a question, rather than post my entire code, I try to break my code down first to just that part that I do not understand, and post it.

So my question remains.
-- Keith


Graham wrote:
 

remove the if line altogether, you should not need it


--
Cheers
Graham Kav
AFL Writing Service
http://www.aflwriting.com

2009/10/3 Keith McCombs <kmccombs@xxxxxxxxxxxx>


Without the 'if()' restriction below, all of the text and WriteVal(), etc. is displayed in the Interpretation Window as it should be.  However, when include the 'if()' restriction it is no longer visible.  I believe it should still be visible because of the "Stat == aInterpret" inclusion in the 'if()'.  If all plot() statements a within the 'if()' restriction, the charts are drawn as expected.

What's wrong?

Indicator = 1; Commentary = 2; aToolTip = 16; aInterpret = 17;
Stat =
Status("actionEx");
if(Stat == Indicator OR Stat == Commentary OR Stat == aToolTip OR Stat == aInterpret){

"Lowbody = " + WriteVal(Lowbody, 1.3);
"Highbody = " + WriteVal(Highbody, 1.3);
"risk = " + WriteVal(risk, 1.3);
"ATRcond = " + WriteVal(ATRcond, 1.3);
"%risk/Equity = " + WriteVal(100*risk/myE);
}


Would appreciate any help I can get.
Thanks.
-- Keith








__._,_.___


**** IMPORTANT PLEASE READ ****
This group is for the discussion between users only.
This is *NOT* technical support channel.

TO GET TECHNICAL SUPPORT send an e-mail directly to
SUPPORT {at} amibroker.com

TO SUBMIT SUGGESTIONS please use FEEDBACK CENTER at
http://www.amibroker.com/feedback/
(submissions sent via other channels won't be considered)

For NEW RELEASE ANNOUNCEMENTS and other news always check DEVLOG:
http://www.amibroker.com/devlog/





Your email settings: Individual Email|Traditional
Change settings via the Web (Yahoo! ID required)
Change settings via email: Switch delivery to Daily Digest | Switch to Fully Featured
Visit Your Group | Yahoo! Groups Terms of Use | Unsubscribe

__,_._,___