I believe MT4 recieves ticks valued at the bid price, the ask is calculated by adding the spread value to it, so every time a bid is recieved an ask is calculated.
nop, even when the ask himself is changing (without the bid) a tick is generated
i believe, the spread is calculated: "ask - bid"
nop, even when the ask himself is changing (without the bid) a tick is generated
i believe, the spread is calculated: "ask - bid"
I am looking for somebody who can help in the making of an indicator that resembles the one shown in the picture below:
This picture is a sample of what I am after, hence why I am posting here in asking for the help of being able to have one such as this developed.
Everytime the tick chart moves on MT4 the bid and ask move together. The indicator parameters I am after require something that can show:
total count =
total bid =
total ask =
difference =
If you are able to assist please let me know here as soon as possible.
Regards
I think you have to find
current spread
spread maximum
spread minimum
spread average
for the last XXX ticks
nop, even when the ask himself is changing (without the bid) a tick is generated
i believe, the spread is calculated: "ask - bid"
something like that: (didn't checked or tested)
static double BidTmpPrc = Bid, AskTmpPrc = Ask; static int BidCnt = 0, AskCnt = 0; if (Bid != BidTmpPrc) { BidTmpPrc = Bid; BidCnt++; } if (Ask != AskTmpPrc) { AskTmpPrc = Ask; AskCnt++; } Comment ("Ask Count =: ", AskCnt, " Bid Count =: ", BidCnt);
So you are saying the tick contains two values, both the ask and the bid price ?
not exactly
if the bid changes (even the ask stays) a tick is generated and if the ask changes (even the bid stays) also a tick is been generated
you can try it yourself, use the code above in section void OnTick() and see what happens
not exactly
if the bid changes (even the ask stays) a tick is generated and if the ask changes (even the bid stays) also a tick is been generated
Yes I knew that. My point was based on something I read somewhere before on the forum, that ticks recieved in the price feed do not contain the Ask price... It only contains bid price and spread. I thought you were telling me that is not correct.
Not that it really matters to the question asked by the OP, either way there are no separate Ask price ticks.
I guess what could be done is to log every time a change in the Ask happens without a change in the Bid and vice versa
Yes I knew that. My point was based on something I read somewhere before on the forum, that ticks recieved in the price feed do not contain the Ask price... It only contains bid price and spread. I thought you were telling me that is not correct.
both are true
what you have read is true for brokers who have a fix spread (or actually before ECN brokers were born ;-) )
what i had written is true for brokers who don't have a fix spread and use the bid and the ask separately
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
You agree to website policy and terms of use
Problem Resolved [Please Delete Thread]
Thank you