Previously displayed bid or ask prices
            
                 17 Dec 2012, 22:40
            
                    
Probably a silly question, but new here...
reading all posts... but not finding...
How can I get the Bid or Ask that was displayed prior to the current Bid or Ask?
THANKS!
Replies
                     admin
                     19 Dec 2012, 17:56
                                    
RE: RE:
Balena said:Probably a silly question, but new here...
reading all posts... but not finding...
How can I get the Bid or Ask that was displayed prior to the current Bid or Ask?
THANKS!
Help Please...
Hello,
Do you want this for an indicator or a robot? Can you please clarify what exactly you want to do? It will help us develop it for you faster!
Thank you in advance
@admin
                     admin
                     04 Jan 2013, 11:05
                                    
Hello,
The example here is using the OnTick event but you may also use the OnBar instead.
        protected override void OnTick()
        {
            
            if(X < previousBid)
            {
                //...
            }
            else if (X > previousOffer)
            {
                //...
            }
            previousBid = Symbol.Bid;
        }
X and previousOffer are declared as fields and will be set according to your algorithm.
@admin

Balena
18 Dec 2012, 17:29
RE:
Help Please...
@Balena