I'm working on a strategy and I have two questions.
First, I'm trying to figure out how to compare two different strings.
As of now, I have:
string1 == string2
which results as a bool and works properly, but I would like to know if string1 is greater/less than string2. The values are converted into strings because I am looking to retrieve a number with 0.00 formatting and that was the only way I know how to. So maybe my problems could be solved with some kind of decimal formatting that I'm missing.
Secondly, I would like for string2 (if possible) to be a range of numbers. For instance, 0.00 - 0.20.
So ultimately, I would like to know if something like this:
string1 < (0.00 through 0.20)
is possible or even something like:
string1 > 0.00
&& string1 < 0.20
Here is the specific line, if it makes a difference:
((((((((Close[0] - Low[1])*4)+8)*RiskReward))/35).ToString("F2")) == 0.20.ToString("F2"))
I'm very much a beginner if you couldn't tell.
Thanks in advance.
.

Comment