NexusFi: Find Your Edge


Home Menu

 





MarketPosition Matching


Discussion in MultiCharts

Updated
    1. trending_up 2,111 views
    2. thumb_up 2 thanks given
    3. group 3 followers
    1. forum 9 posts
    2. attach_file 1 attachments




 
 

MarketPosition Matching

 
no erocla
turin italy
 
Posts: 96 since May 2013
Thanks Given: 43
Thanks Received: 4

Hello guys,

i have 2 EURUSD Charts on my MC, with 2 indipendent trading system.

If they both enter on the market, position matching on broker (interactive broker) turn FALSE because:
  • Trading System 1 ---> StrategyPosition = 100k
  • Trading System 2 ---> StrategyPosition = 120k
  • BrokerPosition (EURUSD)= 100 + 120 = 220k

So the question is: my trading system will works correctly at market ? they will sell correctly and separately 100k and 200k ?

Thank you for any answer

Regards
No Erocla


Can you help answer these questions
from other members on NexusFi?
NT7 Indicator Script Troubleshooting - Camarilla Pivots
NinjaTrader
Better Renko Gaps
The Elite Circle
Cheap historycal L1 data for stocks
Stocks and ETFs
What broker to use for trading palladium futures
Commodities
Quant vue
Trading Reviews and Vendors
 
 
 ABCTG   is a Vendor
 
Posts: 2,436 since Apr 2013
Thanks Given: 482
Thanks Received: 1,629

No Erocla,

yes, it will work correctly, the charts are independent from each other. This is give that the systems are totally independent from each other, too.
My advise would be to always test something like that in a simulated environment or with very little money, so you know how it behaves before trading regular lot sizes with it.

Regards,
ABCTG

Follow me on Twitter
Thanked by:
 
no erocla
turin italy
 
Posts: 96 since May 2013
Thanks Given: 43
Thanks Received: 4


Thank you very much for reply,

today i tested it, i had 2 long orders on eurusd with 2 different stoploss/takeprofit.

Interactive Brokers MP is a mean of this 2 orders, and oco seems works correctly on broker, but not in mc !
On MC i still have 2 opened orders and 4 limit order, why this ? i rebooted mc and this doesn t change.

thank you again

Daniel

 
 ABCTG   is a Vendor
 
Posts: 2,436 since Apr 2013
Thanks Given: 482
Thanks Received: 1,629

Daniel,

I am not sure if I correctly understand the situation in MC. Is the position still open at IB? If so you should see two entries and 4 orders (two limit and two stop for each OCO bracket) in my opinion.
What would you expect at MC?

Can you post screenshots of the situation in IB and MC?

Regards,
ABCTG

Follow me on Twitter
 
no erocla
turin italy
 
Posts: 96 since May 2013
Thanks Given: 43
Thanks Received: 4

Yes ABC, see what happen in paper trading:

This is on MC: Gyazo - a51ed9365a9f02880b7a5c8a5827b678.png
And this on IB: Gyazo - b24032bfc66f4467cc1ea73ae3a9c3ef.png

Thank you again
No Erocla

 
 ABCTG   is a Vendor
 
Posts: 2,436 since Apr 2013
Thanks Given: 482
Thanks Received: 1,629

No Erocla,

so you have entered two short trades via MC and they have both a different stop and target. That's what MC shows. This is something that I would expect the program to do. It will just display all orders for the same instrument on every chart you set the orders to be visible. The odd thing with that is that you can't seem to cancel the closer stop and target as the "X" is greyed out.

In IB it seems you only have one stop and one target, correct? It's hard to say from the screenshot what happened to the other two orders and what the total size of the position in IB is.

The Order & Position Tracker is useful to see what happened, maybe it can give you a clue. I have seen something similar before on my end. The order was still shown on the chart, but cancelled at the broker. However in the order and position tracker it was still shown as "cancel pending". A restart didn't help either, but the order was gone the next day.

Regards,
ABCTG

Follow me on Twitter
Thanked by:
 
no erocla
turin italy
 
Posts: 96 since May 2013
Thanks Given: 43
Thanks Received: 4

Hi guys, i write here because the question is correlated.

Anyone know how IB/MC works when receive an opposite signal order on the same instrument ? For example:

Chart A: i'm Long EUR.USD At 1.37000 with 100k
Chart B: short - 150k EUR.USD At market (1.38000)

In this case MC closes old buy signal opening a new short position of -250k. This isn't correct for me, because i would like (and i think that is more correct) that my exposure on market is -50K.

Anyway my question is different.

When my short order (chart B) will be closed, my old 100k buy position will be restored at the current market price:
so, what happen if my new short position go above/belove stoploss/takeprofit of my old buy position ?


Thank you for any answer

Regards
No erocla

 
nivi
Madrid, Spain
 
Posts: 30 since Feb 2017
Thanks Given: 4
Thanks Received: 6

Hi, i am using Multicharts 11, a strategy on a EUR/USD future. The strategy is applied 2 times with different levels.

System 1:
 
Code
if MarketPosition = 0 then begin
    buy 1 contract next bar 1.15 limit;
end;
System 2:
 
Code
if MarketPosition = 0 then begin
    buy 1 contract next bar 1.14 limit;
end;
The problem appears when the price is 1.145, system 1 is a long position, system 2 is flat. Then system 2 read MarketPosition <> 0 and does not place the order at the new level.

I have tried with MarketPosition_at_Broker_for_The_Strategy but the problem continues.

I need 2 different systems to have independent knowledge of their position in the market. The global position on that product does not matter to me. They are independent and I want to treat them separately.

Attached Thumbnails
Click image for larger version

Name:	autotrading.png
Views:	137
Size:	172.5 KB
ID:	256689  
 
 ABCTG   is a Vendor
 
Posts: 2,436 since Apr 2013
Thanks Given: 482
Thanks Received: 1,629

nivi,

it sounds like you are applying them to the same chart, in which case MC would treat them as one strategy. The simplest approach might be to use two charts, it this is possible. Otherwise you would need to keep track of each strategies entries and exits within your code yourself in order to compute each strategies position.

Regards,

ABCTG


nivi View Post
Hi, i am using Multicharts 11, a strategy on a EUR/USD future. The strategy is applied 2 times with different levels.

System 1:
 
Code
if MarketPosition = 0 then begin
    buy 1 contract next bar 1.15 limit;
end;
System 2:
 
Code
if MarketPosition = 0 then begin
    buy 1 contract next bar 1.14 limit;
end;
The problem appears when the price is 1.145, system 1 is a long position, system 2 is flat. Then system 2 read MarketPosition <> 0 and does not place the order at the new level.

I have tried with MarketPosition_at_Broker_for_The_Strategy but the problem continues.

I need 2 different systems to have independent knowledge of their position in the market. The global position on that product does not matter to me. They are independent and I want to treat them separately.


Follow me on Twitter
 
nivi
Madrid, Spain
 
Posts: 30 since Feb 2017
Thanks Given: 4
Thanks Received: 6


After placing the system in 2 different charts and doing some tests, I confirm that the problem has been solved. Thank you very much ABCTG


 



Last Updated on October 20, 2018


© 2024 NexusFi™, s.a., All Rights Reserved.
Av Ricardo J. Alfaro, Century Tower, Panama City, Panama, Ph: +507 833-9432 (Panama and Intl), +1 888-312-3001 (USA and Canada)
All information is for educational use only and is not investment advice. There is a substantial risk of loss in trading commodity futures, stocks, options and foreign exchange products. Past performance is not indicative of future results.
About Us - Contact Us - Site Rules, Acceptable Use, and Terms and Conditions - Privacy Policy - Downloads - Top
no new posts