Add some indicator in the alert window
Author: techtrader007
Creation Date: 12/16/2010 8:47 AM
profile picture

techtrader007

#1
How can I add an indicator in the alert window?
Thanks
profile picture

Eugene

#2
What is the "alert window" (no such window in WL6)? If you mean Strategy Monitor or Quotes, because they both have an Alerts box, then you can't.
profile picture

techtrader007

#3
in the Strategy Monitor
profile picture

Cone

#4
You can put your indicator value(s) in the entry or exit SignalName.
profile picture

techtrader007

#5
any example because I don´t find any. Thanks.
profile picture

Eugene

#6
QuickRef (hit F11) > Position object > EntrySignal and ExitSignal properties.
profile picture

techtrader007

#7
but again there is no example how I put in the string an indicator like
if( BuyAtLimit(bar + 1,limitPrice,asstring "rsi.[bar]").
In wl4 is was
BuyAtLimit(Bar + 1, limitPrice, 'RSI= ' + FormatFloat('0.00', rsi(bar,#close,30) )
profile picture

techtrader007

#8
if( BuyAtLimit(bar + 1,limitPrice,Convert.ToString(rsi[bar]))
ok I find it but how can I cut to two decimal for example 14.33 anstatt 14.32123344555
profile picture

Eugene

#9
Working with strings is one of the basic "building blocks" of C#.

C# String Overview

There are tons of free sources like that out there, some of them linked in our Wiki FAQ:

[LINK=http://www2.wealth-lab.com/WL5Wiki/kbFAQStrategy.ashx]How do I start with C# ?
I'm a Wealth-Lab 3/4 user, how to learn C# ?[/LINK]
profile picture

Eugene

#10
QUOTE:
how can I cut to two decimal

Again a question answered in our Wiki FAQ (link above):

"How to reduce the number of decimal places for display/debug?"
profile picture

techtrader007

#11
Thanks. I understand. This is not the forum to ask simple questions. You have to go at first to Wiki, but in this case if I go to Wiki and found Bar instead of bar to get mistakes there than for a beginner is always tough to find the right way. I know in the meantime why the many traders give up here or you have to spend hours for a result of 5000 systems which 10 systems are ok to trade.
Thanks but sometimes to feel real alone, except you work in a company where you get support.
profile picture

Eugene

#12
QUOTE:
this case if I go to Wiki and found Bar instead of bar to get mistakes there

This is not a mistake. This is an example of a variable that can be named Bar, or bar, or even BAR etc. For sure, you could blame that we made a glaring mistake in example if the variable was defined as "int bar" but later would be referred to as "Bar".

I "fixed" the "mistake" but even if it's not the case here, in some programming books authors intentionally introduce slight errors in their code to keep the reader's attention.
QUOTE:
This is not the forum to ask simple questions.

Who said that? We've been answering basic questions routinely for years.

However, please consider reading the Wiki FAQ before asking because those questions were discussed numerous times and triggered the creation of a FAQ with helpful links for those Version 4 users who were migrating to Version 5 (then):

An equivalent WealthScript function can't be found.
profile picture

techtrader007

#13
Got you.
This website uses cookies to improve your experience. We'll assume you're ok with that, but you can opt-out if you wish (Read more).