Announcement
Collapse
No announcement yet.
Partner 728x90
Collapse
NinjaTrader
BarsInProgress-exitorder
Collapse
X
-
Originally posted by tonynt View Postkoganam,
I had some trades today and I allow to show in the attached screenshot one current trade where you can see the entershort (the black line) and at about 13:26 the touch with the Donchian (red colored). But there is no exit with
if(GetCurrentAsk(5) == Instrument.MasterInstrument.Round2TickSize(Donchia nChannel(BarsArray[5],21).Lower[1]))
I have no idea what I have done wrong.
Thank you in advance for your reply.
Best regards
Tony
If, as it seems that you must, you have a multi series script, you have to use some BarsInProgress and Print() statements to see on which bar series your tick is coming in, and whether your exit block is being entered at all on the relevant tick.
Comment
-
koganam,
thank you for your posting. I have several different dataseries in my strategies - depending from instrument and depending from strategy I use some of them.
Everything works fine with BarsInProgress. And with your hint here in this thread I can now do the exit when touching the Donchian. Changed all to Bid price now also referring to NT-support.
Thank you again for your help.
Have a great weekend!
Best
Tony
Originally posted by koganam View PostSo you are using at least 4 additional barSeries? I do not know how you have gated your processing, so there is little that I can say from a picture, which essentially lacks any further context.
If, as it seems that you must, you have a multi series script, you have to use some BarsInProgress and Print() statements to see on which bar series your tick is coming in, and whether your exit block is being entered at all on the relevant tick.
Comment
Latest Posts
Collapse
Topics | Statistics | Last Post | ||
---|---|---|---|---|
Started by ninza33, Today, 07:16 AM
|
0 responses
1 view
0 likes
|
Last Post
by ninza33
Today, 07:16 AM
|
||
Started by linkcou, Today, 07:01 AM
|
0 responses
3 views
0 likes
|
Last Post
by linkcou
Today, 07:01 AM
|
||
Started by brunoviveiros, 02-17-2020, 05:31 AM
|
4 responses
63 views
0 likes
|
Last Post Today, 06:25 AM | ||
Started by volIQ, 03-27-2024, 04:28 PM
|
3 responses
21 views
0 likes
|
Last Post
by RJay
Today, 05:41 AM
|
||
Started by Nickgiaco, 02-26-2024, 10:23 AM
|
2 responses
72 views
0 likes
|
Last Post Today, 05:12 AM |
Comment