MetaTrader 5 trading platform is now available for AMP Futures clients wanting to trade futures - page 4

 
Jim Hunt:

Thanks Alain, but my question was intended to be rhetorical. Thanks also for your good wishes. I feel sure I will need all the luck I can muster!

The trouble is the multiplier differs from one instrument to another. Hard coding the numbers will prove to be a right pain in the proverbial posterior :(

Adding an appropriate "input setting" is probably the least of several evils.

Beside asking to AMP to fix it or do it manually, you can also :

Grab the margin html webpage from AMP site, and parse it to collect the data you need.

Get the data directly from the exchange somehow.

 
Alain Verleyen:

Beside asking to AMP to fix it or do it manually, you can also :

Grab the margin html webpage from AMP site, and parse it to collect the data you need.

Get the data directly from the exchange somehow.

Thanks again Alain,

I will ask AMP to ask MetaQuotes to fix it. Based on recent experience I don't have high hopes though!

I wrote an HTML parser for "news" many moons ago, before such things were readily available over an API. I don't particularly want to go through that again though!

I'll let you know if I get anywhere.

I'm not getting lots of slippage on my stops thus far, so that's some small comfort at least!

 

Dear MetaQuotes

I use MT5 for trading futures in AMP Futures but I can't run multiple EA well, so I ask for help in this article.

https://www.mql5.com/en/forum/364768

I find there is not a good way to resolve this problem.

So, I have a little suggestion can resolve it.

The Virtual Trading position folder.

Set a Virtual Trading position folder to control the order in this folder first.

After that if people turn on the real trading it will calculate the net position into the real markets.

For example:

I use 2 EA in MT5 to trade the same symbol "Micro Nasdaq" futures.

When the entry signal is true, those 2 EA will send order to the virtual trading folder in the toolbox like this:

So, we know there are 2 position in the same symbol "mnq.hot". After that we also know the netting position was 2 lots in mnq.hot.

At this moment, if user turn on the real trading option, MT5 will send 2 lots with mnq.hot to the real futures markets. like this:

If one of EA close its own position in "Virtual Trading" below:

It will get the netting position of mnq.hot 1 lots, the real account trading will close 1 lots to match the "Virtual Trading"

How can I trading multi-strategies independent at the same "futures symbol" by FIFO?
How can I trading multi-strategies independent at the same "futures symbol" by FIFO?
  • 2021.03.12
  • www.mql5.com
Dear ALL I find that if I use MT5 for trading the futures, I can't separate multi-strategies independent in the futures symbol...
 
Yang Chih Chou:

Dear MetaQuotes

I use MT5 for trading futures in AMP Futures but I can't run multiple EA well, so I ask for help in this article.

https://www.mql5.com/en/forum/364768

I find there is not a good way to resolve this problem.

So, I have a little suggestion can resolve it.

The Virtual Trading position folder.

Set a Virtual Trading position folder to control the order in this folder first.

After that if people turn on the real trading it will calculate the net position into the real markets.

For example:

I use 2 EA in MT5 to trade the same symbol "Micro Nasdaq" futures.

When the entry signal is true, those 2 EA will send order to the virtual trading folder in the toolbox like this:

So, we know there are 2 position in the same symbol "mnq.hot". After that we also know the netting position was 2 lots in mnq.hot.

At this moment, if user turn on the real trading option, MT5 will send 2 lots with mnq.hot to the real futures markets. like this:

If one of EA close its own position in "Virtual Trading" below:

It will get the netting position of mnq.hot 1 lots, the real account trading will close 1 lots to match the "Virtual Trading"

You are losing your time hoping Metaquotes will do that. They provide all what is needed to do it your self if you want. They will never provide anything like that. mql5 is some kind of "low level" API which allow coders to build almost anything "high level", like your request.
 
Yang Chih Chou: I use MT5 for trading futures in AMP Futures but I can't run multiple EA well, so I ask for help in this article. https://www.mql5.com/en/forum/364768

I find there is not a good way to resolve this problem. So, I have a little suggestion can resolve it. The Virtual Trading position folder. Set a Virtual Trading position folder to control the order in this folder first. After that if people turn on the real trading it will calculate the net position into the real markets.

That already exists had you taken the time to do a search ... https://www.mql5.com/en/articles/88
A Virtual Order Manager to track orders within the position-centric MetaTrader 5 environment
A Virtual Order Manager to track orders within the position-centric MetaTrader 5 environment
  • www.mql5.com
This class library can be added to an MetaTrader 5 Expert Advisor to enable it to be written with an order-centric approach broadly similar to MetaTrader 4, in comparison to the position-based approach of MetaTrader 5. It does this by keeping track of virtual orders at the MetaTrader 5 client terminal, while maintaining a protective broker stop for each position for disaster protection.
Reason: