NexusFi: Find Your Edge


Home Menu

 





Trade Copier from NT7/8 to MT5


Discussion in NinjaTrader

Updated
      Top Posters
    1. looks_one TheSwede with 4 posts (1 thanks)
    2. looks_two jeronymite with 4 posts (0 thanks)
    3. looks_3 sam028 with 2 posts (1 thanks)
    4. looks_4 ycomp with 2 posts (2 thanks)
      Best Posters
    1. looks_one ycomp with 1 thanks per post
    2. looks_two Mtype with 1 thanks per post
    3. looks_3 sam028 with 0.5 thanks per post
    4. looks_4 TheSwede with 0.3 thanks per post
    1. trending_up 8,396 views
    2. thumb_up 5 thanks given
    3. group 8 followers
    1. forum 13 posts
    2. attach_file 1 attachments




 
Search this Thread

Trade Copier from NT7/8 to MT5

  #11 (permalink)
 
sam028's Avatar
 sam028 
Site Moderator
 
Posts: 3,765 since Jun 2009
Thanks Given: 3,825
Thanks Received: 4,629


TheSwede View Post
...
edit
Now I see what you meant, you open the trades on MT5 manually and let NT8 manage them. That can be tricky to do since one will need to be the master and the other the slave.

Yes, this is tricky on a logical point of view:
- Ninja send an order -> MT4 replicate the order
- MT4 send an order -> Ninja replicate the order
and so on, so you have an order loop which only ends when there's no margin left

Success requires no deodorant! (Sun Tzu)
Follow me on Twitter Reply With Quote

Can you help answer these questions
from other members on NexusFi?
REcommedations for programming help
Sierra Chart
Quantum physics & Trading dynamics
The Elite Circle
Cheap historycal L1 data for stocks
Stocks and ETFs
Trade idea based off three indicators.
Traders Hideout
Pivot Indicator like the old SwingTemp by Big Mike
NinjaTrader
 
  #12 (permalink)
TheSwede
Jönköping Sweden
 
Posts: 30 since Feb 2023
Thanks Given: 12
Thanks Received: 15


sam028 View Post
Yes, this is tricky on a logical point of view:
- Ninja send an order -> MT4 replicate the order
- MT4 send an order -> Ninja replicate the order
and so on, so you have an order loop which only ends when there's no margin left

I had that thought too sam028.

I still think its better to use a demo account on NT8 and send the trades to MT5. That way NT8 will be the master account without taking real trades since its a demo.
jeronymite didn't say why he needed MT5 to do the executions first though.

Reply With Quote
  #13 (permalink)
TheSwede
Jönköping Sweden
 
Posts: 30 since Feb 2023
Thanks Given: 12
Thanks Received: 15



jeronymite View Post
Actually, what I need is to be able to "Connect" to an MT5 instance (or instances) and for all Orders to be created, submitted and managed within NinjaTrader, and for all Orders to be executed in the relevant MT5 instance with real-time monitoring of all MT5 positions so that the NinjaTrader Trade Manager can manage those positions as if directly connected to the relevant broker.

The process would look a bit like:
  1. NinjaTrader "Connects" to one or more MT5 instances, and receives the MT5 market data as its data source
  2. In a NinjaTrader AddOn, Orders are created
  3. From the NinjaTrader AddOn, the Orders are submitted directly to the relevant MT5 instance
  4. MT5 receives the Orders and executes them as appropriate
  5. Within MT5, Orders are placed, filled, cancelled, etc as normal within the relevant MT5 instance, and as expected by normal market behaviour, and as commanded by the NinjaTrader AddOn
  6. All market events for all Orders within MT5 are relayed in real-time back to NinjaTrader
  7. The NinjaTrader AddOn manages all Orders in real-time, sending relevant actions to MT5 for immediate action
  8. The "trade" is fully managed in real-time by the NinjaTrader AddOn, including all stoploss and profit target actions through to all Orders exited and trade closed
Essentially, it is NinjaTrader as master/server, MT5 as slave/client in real-time. MT5 is never directly used for any action, and so has no function other than as a slave/client Order execution platform and relayer of associated market data and events.

If you are wondering what the NinjaTrader AddOn looks like, you can read about it on my website. (Admin/Moderator, please remove this link if it violates any site policy. Not wanting to cause issues.)

Thanks.


What you need is an api bridge, like jigsaw daytradr uses with mt5. I would check on some freelance programming sites and see if anybody there can make it for you.

Reply With Quote
  #14 (permalink)
 jeronymite   is a Vendor
 
Posts: 21 since Jul 2013
Thanks Given: 6
Thanks Received: 22

REPOST. As anticipated might be the case, including a link to my website in the last post violated a policy of "no self-advertising", basically. Was not intended as such, but I fully understand, and my comment at the time said I was ready to accept any such policy. So, here is what was there in the deleted post, minus the link to my website:

Actually, what I need is to be able to "Connect" to an MT5 instance (or instances) and for all Orders to be created, submitted and managed within NinjaTrader, and for all Orders to be executed in the relevant MT5 instance with real-time monitoring of all MT5 positions so that the NinjaTrader Trade Manager can manage those positions as if directly connected to the relevant broker.

The process would look a bit like:
  1. NinjaTrader "Connects" to one or more MT5 instances, and receives the MT5 market data as its data source
  2. In a NinjaTrader AddOn, Orders are created
  3. From the NinjaTrader AddOn, the Orders are submitted directly to the relevant MT5 instance
  4. MT5 receives the Orders and executes them as appropriate
  5. Within MT5, Orders are placed, filled, cancelled, etc as normal within the relevant MT5 instance, and as expected by normal market behaviour, and as commanded by the NinjaTrader AddOn
  6. All market events for all Orders within MT5 are relayed in real-time back to NinjaTrader
  7. The NinjaTrader AddOn manages all Orders in real-time, sending relevant actions to MT5 for immediate action
  8. The "trade" is fully managed in real-time by the NinjaTrader AddOn, including all stoploss and profit target actions through to all Orders exited and trade closed
Essentially, it is NinjaTrader as master/server, MT5 as slave/client in real-time. MT5 is never directly used for any action, and so has no function other than as a slave/client Order execution platform and relayer of associated market data and events.

If you are wondering what the NinjaTrader AddOn looks like, feel free to contact me privately and I can point you to more information.

Thanks.

Reply With Quote




Last Updated on April 17, 2023


© 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