Announcement
Collapse
Looking for a User App or Add-On built by the NinjaTrader community?
Visit NinjaTrader EcoSystem and our free User App Share!
Have a question for the NinjaScript developer community? Open a new thread in our NinjaScript File Sharing Discussion Forum!
Have a question for the NinjaScript developer community? Open a new thread in our NinjaScript File Sharing Discussion Forum!
See more
See less
Partner 728x90
Collapse
NinjaTrader
EnterLong Doubt...??
Collapse
X
-
Hi Deall, it would depend on your EntryHandling settings used, you can definitely scale into a position - http://www.ninjatrader.com/support/f...ead.php?t=3751
BertrandNinjaTrader Customer Service
-
If you need the individual execution prices of your orders making up the position I would suggest checking into the IOrder objects offered for more advanced programmers - http://www.ninjatrader.com/support/h...ightsub=IOrderBertrandNinjaTrader Customer Service
Comment
-
Would unfortunately not have a specific example for your case here handy, but generally for working with the IOrders and the advanced order management approach I consider this here to be ideal - http://www.ninjatrader.com/support/f...ead.php?t=7499BertrandNinjaTrader Customer Service
Comment
-
Originally posted by DealI View Posthi can u give syntax for that or any sample code to get value of the Longprice using IOrdrers
Comment
-
hi i have one doubt
#region Variables
private IOrder entryOrder = null;
protected override void OnBarUpdate()
{
.....
...
....
if( entryOrder == null && c <= b)
{
entryOrder = EnterLong();
Print("a=" + entryOrder.AvgFillPrice);
}
everything flows correctly and executes but
for a= entryOrder.AvgFillPrice as i mention in print commd .. its not printing the value just printing 0 y its not printing the price value
Comment
-
Originally posted by DealI View Posthi i have one doubt
#region Variables
private IOrder entryOrder = null;
protected override void OnBarUpdate()
{
.....
...
....
if( entryOrder == null && c <= b)
{
entryOrder = EnterLong();
Print("a=" + entryOrder.AvgFillPrice);
}
everything flows correctly and executes but
for a= entryOrder.AvgFillPrice as i mention in print commd .. its not printing the value just printing 0 y its not printing the price value
You probably want to check this when you have a position, so check for that first.
Code:if (Position.MarketPosition != MarketPosition.Flat) { //do stuff here; }
Comment
Latest Posts
Collapse
Topics | Statistics | Last Post | ||
---|---|---|---|---|
Started by WHICKED, Today, 12:56 PM
|
1 response
8 views
0 likes
|
Last Post Today, 01:17 PM | ||
Started by cre8able, Today, 01:16 PM
|
0 responses
2 views
0 likes
|
Last Post
by cre8able
Today, 01:16 PM
|
||
Started by chbruno, 04-24-2024, 04:10 PM
|
2 responses
47 views
0 likes
|
Last Post
by chbruno
Today, 01:15 PM
|
||
Started by WHICKED, Today, 12:45 PM
|
1 response
11 views
0 likes
|
Last Post Today, 01:08 PM | ||
Started by samish18, Today, 01:01 PM
|
0 responses
6 views
0 likes
|
Last Post
by samish18
Today, 01:01 PM
|
Comment