Rank:: Advanced Member
Groups: Registered, Registered Users, Subscribers Joined: 10/29/2004(UTC) Posts: 1,394 Location: Glastonbury, CT
Was thanked: 2 time(s) in 2 post(s)
|
A:=X+Y+Z; A becomes a variable that shows the total value of the 3 other variables, depending on what those variables are , it just becomes faster to compute by calling it A in future code. the curly brackets just make reading the code easier
A data array could be Open ,High, Low, Close, Volume, Variable, P,A formula call
here is a little test, plot this on a chart
Code:A:=Mov(C,10,S);AR:=Ref(Mov(C,10,S),-10);AF:=Ref(Mov(C,10,S),10);A;AR;AF;
The first line is a simple MAThe second line is the MA referenced back 10 bars The third line is forward referenced ahead by 10 bars
change the color of each line now go to the very end of the chart and see the results
The cum function counts the number of times an event has occurred on a chart
The sum function counts the number of times an event has occurred in a specific time period
|