Spread trading in Meta Trader - page 154

 
leonid553:

Yes, in a broco.

No, the #I tickers didn't get in the way here. I specifically tracked it - the tickers were almost identical to Last prices at that point, so - it's something else.

Let's see...

Here is what I had once (and last): B-co futures

 

The glitch was not there. The positions are still open and the glitch persists.

Maybe it is the different currencies of the indices - one in pounds (Futsi), the other (MC) in dollars.

But this does not clarify the situation much.

 

The values of MarketInfo(Symbol1.Name, MODE_TICKVALUE) and MarketInfo(Symbol1.Name, MODE_TICKSIZE)

that are used in indicators do not coincide with the values used by the real server!

It's not clear why.

 

Here's the thing:


 

So the estimated FTSE position size should now be divided by GBPUSD,

or the calculated position size of MCZ0 multiplied by GBPUSD.

and then, the "virtual" profit will equal roughly the real profit?

 

The only thing I don't understand now is how to set "this thing" programmatically in the code of the indicator in "general form"?

PS - closed positions now at total breakeven... (profit is gone...)

 
leonid553:

The only thing I don't understand is how to set "this thing" programmatically in the code of an indicator in a "general form"?

I'll think about it tomorrow... And how do I know the currency of quotation? I've just never worked with it before.
 

I am at a loss to say.

Maybe someone here knows ?

 
One and two.
 

well, probably by closing prices:

calculate the pips for the instruments and then:

for FTSE you should now multiply PIPS by GBPUSD, = 1.5853*43.5 = -68.96$

MCZ0 multiply PIPS by point price in USD = 92.0*0.8 = $73.60

Reason: