Use Printf instead of WriteVal.
On Sat, Oct 3, 2009 at 3:21 PM, Keith
McCombs
<kmccombs@xxxxxxxxxcom>
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@xxxxxxxxxcom>
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