Joke Collection Website - Bulletin headlines - How to define variables in a straight flush (a stock trading software)?
How to define variables in a straight flush (a stock trading software)?
The variables defined in the flush are as follows (tested):
I:= 0;
WHILE (I < = 3)
{ a = CLOSE+a;
I = I+ 1; }
Too depressed => Still depressed? Have fun!
Supplement:
There are two ways to define variables:
1. Use: = symbol (define temporary variable)
2. Use the parameter table (i.e. index parameters)
Note: Both methods need to assign an initial value to the variable. Please note the difference between the ":=" symbol and the ":"symbol.
A and d can be like this:
-
//Define temporary variables
Me: =0
A: =0
d:=0
//operation
While (I < = 3)
{
If (b> 1)
a = close+a;
other
d = I;
I = I+ 1;
}
e:a;
f:d;
-
I hope it helps!
According to you, then every K-line period should be given a value of 0. IF the IF condition is not met, A is always 0, but the actual programming intention is that A keeps the value of the previous K-line period A when the IF condition is not met! = & gt
A always designs the "initial value", but if you don't want the initial value (your design has logical problems), you can do so.
I:= 0;
d:= 0;
a;
While (I < = 3)
{
If (b> 1)
a = close+a;
other
d = I;
I = I+ 1;
}
e:a;
f:d;
- Related articles
- Birthday blessing English
- What does the flight attendant major study?
- I need a class slogan, Grade One 15, the best science class in the school. There is momentum, thank you!
- Intellectual property speech
- What are the eight-character short sentences in party building?
- How to write a good process record of social practice report
- What is the epidemic rent reduction policy?
- Anniversary slogan (slogan)
- Say hello at the beginning of kindergarten class.
- Introduction to club activities