I'm working with forex.com to get my ninja trader account setup with them, but as far as the api goes with making these kind of If Then OCO trades, I was hoping someone could point me in the right direction.
Announcement
Collapse
No announcement yet.
Partner 728x90
Collapse
NinjaTrader
Forex.com programmer here with a getting started question
Collapse
X
-
Forex.com programmer here with a getting started question
I already have a forex.com account and have been trading forex for a few months. I use a signal service that sends me emails of signals and I have a program to read the emails. The data they provide is the pair, if it's buy/sell, at what enter rate, and a stop/limit for the trade. I would then run my own code each day to figure out what pairs to trade based on my own strat and when I get those signals make the trades. It seems like I would be able to make those trades using ninja trader?
I'm working with forex.com to get my ninja trader account setup with them, but as far as the api goes with making these kind of If Then OCO trades, I was hoping someone could point me in the right direction.Tags: None
-
To clarify your asking on how you would go about coding NinjaTrader to submit OCO orders based on conditions?
Are you wanting OCO for your profit target or stop loss or for your entry orders or both?
Comment
-
You may be interested in Advanced Trade Management. This allows you to apply target and stop losses to orders that are automatically applied upon entry execution. These orders are OCO with no additional configuration needed.
See here for more information on Advanced Trade Management.
This is for discretionary entries and automatic exits.
If you want to fully automate your system, see here for the reference sample on reading from a file with NinjaScript:
Using StreamReader to read from a text file
Using System.IO File properties to write to and read from a text fileRyan M.NinjaTrader Customer Service
Comment
-
Cool, I'll take a look at reading a file.
Is there any other way to get external data into Ninja script? Maybe I could call a Ninja script function passing in some information from an outside source? The file thing works ok, just wondering what other options there are.
Comment
Latest Posts
Collapse
Topics | Statistics | Last Post | ||
---|---|---|---|---|
Started by CortexZenUSA, Today, 12:53 AM
|
0 responses
1 view
0 likes
|
Last Post
by CortexZenUSA
Today, 12:53 AM
|
||
Started by CortexZenUSA, Today, 12:46 AM
|
0 responses
1 view
0 likes
|
Last Post
by CortexZenUSA
Today, 12:46 AM
|
||
Started by usazencortex, Today, 12:43 AM
|
0 responses
5 views
0 likes
|
Last Post
by usazencortex
Today, 12:43 AM
|
||
Started by sidlercom80, 10-28-2023, 08:49 AM
|
168 responses
2,265 views
0 likes
|
Last Post
by sidlercom80
Today, 12:05 AM
|
||
Started by Barry Milan, Yesterday, 10:35 PM
|
3 responses
11 views
0 likes
|
Last Post Yesterday, 11:58 PM |
Comment