logo
Welcome Guest! To enable all features please Login or Register.

Notification

Icon
Error

Options
Go to last post Go to first unread
barcode  
#1 Posted : Thursday, February 12, 2009 10:54:16 AM(UTC)
barcode

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)
UserPostedImage

Justin  
#2 Posted : Thursday, February 12, 2009 1:08:21 PM(UTC)
Justin

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.
barcode  
#3 Posted : Thursday, February 12, 2009 1:50:59 PM(UTC)
barcode

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.