Forex
Google
New signals service!

Go Back   Forex Trading > Discussion Areas > General Discussion


Register in Forex TSD!
Trading Systems Leaders in this forum (automated trading systems) are winning more than 3000 pips in a month (30000$ investing one lot every time).
Click here to register and get more information

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 01-08-2007, 11:20 PM
Senior Member
 
Join Date: Jan 2006
Posts: 1,119
omelette is on a distinguished road
Last Trade - Buy or Sell?

Hi. Does anyone know if it's possible to determine if the last trade was a Buy or a Sell? I thought that comparing the Ask or Bid to the Close[0] was the answer but Close[0] always returns the Bid price.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 01-08-2007, 11:53 PM
mqldev's Avatar
Member
 
Join Date: Dec 2006
Posts: 59
mqldev is on a distinguished road
Question

Quote:
Originally Posted by omelette
Hi. Does anyone know if it's possible to determine if the last trade was a Buy or a Sell? I thought that comparing the Ask or Bid to the Close[0] was the answer but Close[0] always returns the Bid price.
Why don't you check OrderType() which is working with opened and closed orders!

OP_BUY - buying position,
OP_SELL - selling position,
OP_BUYLIMIT - buy limit pending position,
OP_BUYSTOP - buy stop pending position,
OP_SELLLIMIT - sell limit pending position,
OP_SELLSTOP - sell stop pending position.
__________________
Online Expert Advisor Builder
http://www.mqldev.com
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3 (permalink)  
Old 01-09-2007, 08:23 AM
Senior Member
 
Join Date: Jan 2006
Posts: 1,119
omelette is on a distinguished road
Quote:
Originally Posted by mqldev
Why don't you check OrderType() which is working with opened and closed orders!...
OK, this was not a well though-out post
I was not referring to orders that I might have placed - the price data streamed from the broker is a result of someone either placing Buy or Sell orders. For instance, say price dropped 100 pips in 1 minute, it is reasonable to assume that this was the result of lots of Selling. What I was asking was is there any way to say definitively from the last tick received that, 'Yes, that was a Sell order'? What I failed to consider was that for every Buy order there must be a Sell order, and any imbalance will just result in price change - it's all clear to me now I was actually thinking that a Buy/Sell ratio might have made a good scalping tool. Back to the drawingboard........
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
To sell or trade your own signals jgerousis General Discussion 7 11-16-2007 02:53 PM
Don't SELL, just BUY it indratime Suggestions for Trading Systems 24 06-19-2007 12:23 AM
EAs that sell the ask and buy the bid... forextrades Expert Advisors - Metatrader 4 2 08-23-2006 02:58 AM


All times are GMT. The time now is 09:57 AM.



Search Engine Friendly URLs by vBSEO 3.2.0 ©2008, Crawlability, Inc.