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 aligator, 01-06-2022, 12:14 PM
|
4 responses
233 views
0 likes
|
Last Post
by john_44573
Today, 06:11 PM
|
||
Started by reynoldsn, Today, 05:56 PM
|
0 responses
4 views
0 likes
|
Last Post
by reynoldsn
Today, 05:56 PM
|
||
Started by bortz, 11-06-2023, 08:04 AM
|
51 responses
1,988 views
0 likes
|
Last Post
by aligator
Today, 05:50 PM
|
||
Started by dmking, 11-12-2019, 12:31 PM
|
4 responses
4,148 views
0 likes
|
Last Post
by jasonw
Today, 04:32 PM
|
||
Started by roblogic, Today, 04:31 PM
|
0 responses
10 views
0 likes
|
Last Post
by roblogic
Today, 04:31 PM
|
Comment