Announcement
Collapse
No announcement yet.
Partner 728x90
Collapse
NinjaTrader
Timing of trading order
Collapse
X
-
Timing of trading order
Hi friends,
please, it is possible in NT7 to put order for time f.e. 14:00 before this time?
F.e.:
I want buy in time 2:00 PM and I want put this order at 10:00 AM, it is possible?
thank you
Jiri -
Hello jiri_barta,
Thank you for your reply.
If this was a live trade, the order would also be subject to FIFO. It is possible that the order is not filled on this bar as there may be other orders which need to fill before your order comes up for a fill. If your order needed to wait for its turn it could end up filling after the timestamp of the bar which you noted. When your order gets submitted it gets put in last place for execution. A first-in, first-out basis means that if 10 people all submit orders at 2640.5, and then you place an order for one contract at the same price, all contracts ahead of you would need to be filled before yours gets filled which may equate to a later time.
Are you seeing this will all limit orders submitted always or have you only found this one example? The images provided so far are all the same so I am unsure if this would just be FIFO or something else in contrast to the details provided.
I look forward to being of further assistance.
-
-
Hello jiri_barta,
Thank you for your reply.
Was this a realtime trade in live data or a historical trade? From the image, it appears the trade still likely filled correctly, however you can see differences between realtime and historical trades. If this was a historical trade, it would be subject to the historical fill algorithm.
For simulated trades, you can also experiment with Enforce immediate fill option which affects limit orders: https://ninjatrader.com/support/help...ghtsub=enforce
I look forward to being of further assistance.
Leave a comment:
-
Thank you, I did but it doesn´t work, no position is open in the set time.
This is what I want:
1) open position in special time (it is fast ok now)
2) close position when is open+4 tick
3) if is open+4 reached out and close is not filled do close immediately as is possible (open+3).
If you look at the first picture (once again in attachment) you will see I bought price 2639,5 and PT was 2640,5 which was filled at 18:41 but it should was at 18:40 whned was the PT reached. So I want when is PT reached immediately close position I don´t want to wait because it may change the trend.
Leave a comment:
-
Hello jiri_barta,
Thank you for the image that helps.
Based on the settings in the image, it would appear the target worked successfully. At the time the entry order filled the target was submitted 4 ticks from that price. The chart also reflects the target filling 4 ticks from the entry.
You noted in your last message:
I have set up the profit target OPEN+1 tick, but the order was filled after some time not immediately
To use the open price, you could do that however this would require using Price mode instead of Ticks for the target, you will also need to use a Variable.
Modifying your current script, you would need to add a second action in the actions where you currently have EnterLong
In the action builder select the following:- Misc -> Set User defined variable - > Variable0
- Click the ... button in the Value field
- Select Price Data -> Open
- Select Offset Type -> Ticks
- Enter the offset of 1
The end result looks like the following:
https://www.screencast.com/t/ysqk8Mp3l- Now in another set, you can utilize the variable for an exit order or an exit order of your choice.
- An example condition would be the following checking for position and then exiting based on the price variable
The end result looks like the following:
https://www.screencast.com/t/yvTx3NJUWFa
I look forward to being of further assistance.Last edited by NinjaTrader_Jesse; 01-30-2019, 07:42 AM.
Leave a comment:
-
-
Hello jiri_barta,
Can you tell me how you are currently setting the price for the target? Are you doing this only once when you enter or is this being called for each bar? If you can provide a sample of the syntax being used that would help me to better understand what should be happening to compare that with your image.
I look forward to being of further assistance.
Leave a comment:
-
Hello, please look at the prtsc from my trading. I have set up the profit target OPEN+1 tick, but the order was filled after some time not immediately. I understand that it will be filled up when someone else will buy it only. But how to set up the profit target- for example OPEN+1,... than the price will reach it out and I want to close immediately the trade? Thank you.
Leave a comment:
-
Hi Jesse, thank you for your reply. I´ve tried set equals but still do the same. In setting I´ve only one amout (contract). In hisytory of this topis I´ve disccus this with your colleague and he send there ninjascript with his setting. I´ve tried to open it in NT7 but the format .cs is propably not available for NT7 now...
My only condition is to do order in one specific time, I haven´t other conditions.
Jiri
Leave a comment:
-
Hello jiri_barta,
Thank you for the post.
In this case, the condition will be true for every bar after the specified time. You are using Greater than for the condition so as long as the bars time is after that point, it will place a trade.
You would need to add more to your condition to prevent it from happening on every bar after that time. Did you want this to trade only once or did you want some other price condition in addition to time?
I look forward to being of further assistance.
Leave a comment:
-
The strategy is working, but it is making orders every second (?!). I´m doing it from Wizard. I made prt sc so you can check it.
I only want to set up this condition:
At the specific time to put order (short, long). PT with SL is set up in the second step so I suppose it will be ok.
For activating strategy I do enabling in the list of strategy in the control window.
Leave a comment:
-
Hello jiri_barta,
Where are you getting stuck?
Are you still using the Strategy Wizard?
Is the time filter the same?
Is the condition not evaluating as true?
Is the limit order still filling immediately?
Leave a comment:
-
Hi, after long period I´m coming back to trading, but I have the same problem with programing my strategy "timestap". I don´t remeber how to set up the ninjascript to do this:
put order at the specific time by ATM
I´ve tried it in many ways but stil not working correctly, may I ask you for advice? Thank you
Jiri
Leave a comment:
Latest Posts
Collapse
Topics | Statistics | Last Post | |
---|---|---|---|
Started by frankduc, Today, 07:02 AM
|
0 responses
0 views
0 likes
|
Last Post
![]()
by frankduc
Today, 07:02 AM
|
|
Started by i2w8am9ii2, Today, 06:57 AM
|
0 responses
1 view
0 likes
|
Last Post
![]()
by i2w8am9ii2
Today, 06:57 AM
|
|
Started by sidviciousX, Today, 06:47 AM
|
0 responses
1 view
0 likes
|
Last Post
![]()
by sidviciousX
Today, 06:47 AM
|
|
Started by buzzripper, Today, 06:14 AM
|
0 responses
1 view
0 likes
|
Last Post
![]()
by buzzripper
Today, 06:14 AM
|
|
Started by NinjaCustomer, Today, 06:04 AM
|
0 responses
5 views
0 likes
|
Last Post
![]() |
Leave a comment: