Rank: Newbie
Groups: Registered, Registered Users Joined: 2/8/2009(UTC) Posts: 2
|
Hello, I am new to MS programming so I want to make something clear. I want to create to Expert Advisor some symbol signals. The problem is that I want to compare two different prices that verifiy the same condition. For example.. a:=if (condition,c,false) but when I want to compare A with B MS replaces the variable with the new price and forgets the old one. Is there any way to use arrays for my variable or maybe do you have any ideas to make this work? (sorry for my bad english)
|
|
|
|
Rank: Advanced Member
Groups: Registered, Registered Users, Unverified Users Joined: 9/13/2004(UTC) Posts: 673 Location: Salt Lake City, UT
|
You might be able to use the ValueWhen function (Which allows you to specify 1st most recent occurrence, 2nd most recent occurrence, etc) to accomplish this.
|
|
|
|
Rank: Newbie
Groups: Registered, Registered Users Joined: 2/8/2009(UTC) Posts: 2
|
Thank you very much Justin. It just works perfectly..!!
|
|
|
|
Users browsing this topic |
Guest (Hidden)
|
Forum Jump
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.