NexusFi: Find Your Edge


Home Menu

 





Connected function returns -1


Discussion in NinjaTrader

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




 
Search this Thread

Connected function returns -1

  #1 (permalink)
Aziz
delhi india
 
Posts: 13 since Aug 2017
Thanks Given: 2
Thanks Received: 1



Why is it giving me -1?

Reply With Quote

Can you help answer these questions
from other members on NexusFi?
The space time continuum and the dynamics of a financial …
Emini and Emicro Index
NT7 Indicator Script Troubleshooting - Camarilla Pivots
NinjaTrader
Deepmoney LLM
Elite Quantitative GenAI/LLM
My NT8 Volume Profile Split by Asian/Euro/Open
NinjaTrader
Online prop firm The Funded Trader (TFT) going under?
Traders Hideout
 
  #3 (permalink)
 
rleplae's Avatar
 rleplae 
Gits (Hooglede) Belgium
Legendary Market Wizard
 
Experience: Master
Platform: NinjaTrader, Proprietary,
Broker: Ninjabrokerage/IQfeed + Synthetic datafeed
Trading: 6A, 6B, 6C, 6E, 6J, 6S, ES, NQ, YM, AEX, CL, NG, ZB, ZN, ZC, ZS, GC
Posts: 3,003 since Sep 2013
Thanks Given: 2,442
Thanks Received: 5,863


Few questions :
  • Is your Ninjatrader up and running on the same machine ?
  • Did you enable the ATI in Ninjatrader ?
  • Did you leave the settings as standard (port number)
  • Did you allow the port to be accessed in your local firewall ?

Follow me on Twitter Visit my NexusFi Trade Journal Reply With Quote
  #4 (permalink)
Aziz
delhi india
 
Posts: 13 since Aug 2017
Thanks Given: 2
Thanks Received: 1

Is your Ninjatrader up and running on the same machine ?
>> yes

Did you enable the ATI in Ninjatrader ?
>> What does this mean? How should I enable it? I have downloaded the Ninja Trader 8 and I have got the demo username and password to connect to futures. I have added those connection details in control center and got connected with the new connection.

Did you leave the settings as standard (port number)
>> I have not changed anything anywhere

Did you allow the port to be accessed in your local firewall ?
>> I have created a Inbound Rule and added the port 36973. Is that all I have to do?

Reply With Quote
  #5 (permalink)
 
rleplae's Avatar
 rleplae 
Gits (Hooglede) Belgium
Legendary Market Wizard
 
Experience: Master
Platform: NinjaTrader, Proprietary,
Broker: Ninjabrokerage/IQfeed + Synthetic datafeed
Trading: 6A, 6B, 6C, 6E, 6J, 6S, ES, NQ, YM, AEX, CL, NG, ZB, ZN, ZC, ZS, GC
Posts: 3,003 since Sep 2013
Thanks Given: 2,442
Thanks Received: 5,863


Aziz View Post
Is your Ninjatrader up and running on the same machine ?
>> yes

Did you enable the ATI in Ninjatrader ?
>> What does this mean? How should I enable it? I have downloaded the Ninja Trader 8 and I have got the demo username and password to connect to futures. I have added those connection details in control center and got connected with the new connection.

Did you leave the settings as standard (port number)
>> I have not changed anything anywhere

Did you allow the port to be accessed in your local firewall ?
>> I have created a Inbound Rule and added the port 36973. Is that all I have to do?

The way that the ATI interface is working "under the hood", is that the DLL you added to your
project, will open a TCP/IP socket communication to NinjaTrader.

You need to enable NinjaTrader to 'listen' on the incomcing port, this is done by wiking the ATI
under the file menu :




By default this is 'off'.

The default port is 36973,
You can verify that ninjatrader is listening as follows :


Follow me on Twitter Visit my NexusFi Trade Journal Reply With Quote
Thanked by:
  #6 (permalink)
Aziz
delhi india
 
Posts: 13 since Aug 2017
Thanks Given: 2
Thanks Received: 1

Thanks a lot rleplae!! You are just a maestro.

Reply With Quote
Thanked by:
  #7 (permalink)
 
rleplae's Avatar
 rleplae 
Gits (Hooglede) Belgium
Legendary Market Wizard
 
Experience: Master
Platform: NinjaTrader, Proprietary,
Broker: Ninjabrokerage/IQfeed + Synthetic datafeed
Trading: 6A, 6B, 6C, 6E, 6J, 6S, ES, NQ, YM, AEX, CL, NG, ZB, ZN, ZC, ZS, GC
Posts: 3,003 since Sep 2013
Thanks Given: 2,442
Thanks Received: 5,863

You're welcome...

Follow me on Twitter Visit my NexusFi Trade Journal Reply With Quote




Last Updated on August 10, 2017


© 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