Рейтинг: Empty Star Empty Star Empty Star Empty Star Empty Star
Total different performance of exactly same EA on different brokers.
Предыдущий 1 2 3 Следующий
compuforexpamm

Пользователь с Aug 20, 2009  202 сообщений kennyhubbard (compuforexpamm) Jul 28 2010 at 15:52
Slavo,

I know what you mean.....there is very little by way of reading material on the internal mechanisms of a broker. I have learnt most of these things the hard way.

In my case I had a run-in with MB Trading. One morning I woke up to find a bunch of trades running on my account that did not come from my side. I did the obvious thing and closed them......and that is where the proverbial poo hit the fan.

It turns out they were 'ghost' trades that had been created by a corrupt file at one of their liquidity providers. The problem was the trades did not exist and by closing the ghost trades, I had now created real trades but in the opposite direction.

There is a lot of good reading material at forex factory in the MB Trading thread on how these brokers work. After thinking about it, I have come to realise that it is kind of obvious that they must open an opposite trade. You have bought AUD using EUR. You cannot profit until you sell those AUD that you are holding. You can't just give it back.......

The electronic terminal tends to mask the fact that there is still a real market place in which we operate.

Presumably you have dissected the Quick_Close script and noticed that it is a bit more complex to use than the normal Close_All script. Your challenge is going to be to match trades of equal volume into opposing tickets and then load that into an array.


Wealth Creation Through Technology
compuforexpamm

Пользователь с Aug 20, 2009  202 сообщений kennyhubbard (compuforexpamm) Jul 30 2010 at 19:10

salmas64 posted:
I really didn't notice OrderCloseBy() function. smiley Thanks for the examples, so far I used in closing routine similar way like in your Close_All script.
In my case I have mixed bag of BUYs and SELLs, but not always equal ratio, but I can use OrderCloseBy() for pairs and OrderClose() for leftovers.


Slavo,

Actually what I would do is match up the orders and then close the leftover orders first. Then you can take your time closing the opposing orders as you will be perfectly hedged. You could use a simple spread filter to reduce your cost, so only send the OrderCloseBy() instruction when the spread is below a certain value.

Wealth Creation Through Technology
salmas64

Пользователь с May 26, 2010  5 сообщений Slavo (salmas64) Aug 02 2010 at 02:50
yes Kenny good thinking!! Thanks and when I use OrderCloseBy() I don't have to worry about time... maybe I can wait for moment when spread is the lowest.

I know how to use indicators ( on my car ) ...... So far so good!
Чтобы оставить комментарий, необходимо войти в систему.
Fipe's IPC Inflation (19 min)
The Margin: Jericho the lion is alive an...(6 min ago)
EURUSD 1.09585 GBPUSD 1.55888
USDJPY 124.203 USDCAD 1.3158
FxPro

Tools

Сообщество

Обзоры

Брокеры

Платформа

Поддержка


Download Myfxbook iOS App Download Myfxbook Android App
Твиттер |  Facebook |  Карта сайта  |  Условия  |   Политика конфиденциальности
©2014 Myfxbook Ltd. All Rights Reserved.
HIGH RISK WARNING: Foreign exchange trading carries a high level of risk that may not be suitable for all investors. Leverage creates additional risk and loss exposure. Before you decide to trade foreign exchange, carefully consider your investment objectives, experience level, and risk tolerance. You could lose some or all of your initial investment; do not invest money that you cannot afford to lose. Educate yourself on the risks associated with foreign exchange trading, and seek advice from an independent financial or tax advisor if you have any questions. Any data and information is provided 'as is' solely for informational purposes, and is not intended for trading purposes or advice.