Announcement
Collapse
No announcement yet.
Partner 728x90
Collapse
NinjaTrader
Timing of trading order
Collapse
X
-
Dear Bertrand,
I have this conditions:
1) place order only in specific time (f.e. from 3:00 PM to 5:00 PM)
2) if actual price > (open+2 ticks) make enter to the trade.
First condition I can apply without problem, but the second I can´t and my tests are bad. Do you have some help? Thank.
Comment
-
Thank you, but this not to my problem.
I want to programm that in f.e. 60 min bar will increase price above the open (f.e. 2 ticks) than I want make order. So I want to make it on 1 bar so I have no bars ago and I can´t say before price for limit order. My price for order is: open+2 ticks in some specificed period.
Jiri
Comment
-
Jiri, this would be a classical setup for the mentioned stop order type, i.e.
EnterLongStop(Open[0] + 2 * TickSize)
The challenging part here is that the open would only be known at or after the FirstTickOfBar and that you would need to check for the current price to be lower than this order price to not get a rejected order.BertrandNinjaTrader Customer Service
Comment
-
Dear Bertrand,
it is running very well, thank you. Please, the order "when is price increase" is ok it is "open + 2 ticks"- I can set it, but how set up order when is price decrease "open - 2 ticks"? Thank you.
Comment
-
thank you for reply, I have tried this setting, but order is placed immediately on open position. When is this setting actual in settings I can see there is no "...Open[0] - 2 * TickSize....." but this" EnterLongLimit(DefaultQuantity, 0, "").
I set it in the same settings:
enter long limit order
price data
open
-2 ticks
OK
Thank you,
Jiri
Comment
-
Dear PatrickH,
I´m sending to you screenshot of settings. In this case is order immediately in position (immediately is execution). Thank you for help.
Originally posted by NinjaTrader_PatrickH View PostHello jiri_barta,
Thank you for your response.
Is this in the Strategy Wizard? If so please provide a screenshot of how you set this up.
If this is directly coded in the NinjaScript Editor please provide the full line of code used for the EnterLongLimit().
Comment
-
Jiri, the order would immediately execute if it was marketable, meaning if the current price would get you a better price. So for the buy if you submit this order while price is below the limit price, this would happen. In this case the Stop order option would be better to prepare an order, it just depends where price currently is in relation to your order entry value when you want to submit the order in.BertrandNinjaTrader Customer Service
Comment
-
Thank Bertrand I will test order with stop limit. But it is interesting that for increase price is running very well and for decrease price not in the same settings.
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
Comment
Latest Posts
Collapse
Topics | Statistics | Last Post | ||
---|---|---|---|---|
Started by Lele2k24, Yesterday, 11:24 AM
|
8 responses
27 views
0 likes
|
Last Post
by Lele2k24
Today, 11:00 AM
|
||
Started by Padan, Today, 02:02 AM
|
4 responses
16 views
0 likes
|
Last Post
by Padan
Today, 10:46 AM
|
||
Started by kramnor2001, Yesterday, 02:30 PM
|
4 responses
24 views
0 likes
|
Last Post
by bltdavid
Today, 10:44 AM
|
||
Started by eduardodipp7, Today, 10:29 AM
|
0 responses
2 views
0 likes
|
Last Post
by eduardodipp7
Today, 10:29 AM
|
||
Started by AgriTrdr, 07-16-2023, 12:54 PM
|
39 responses
272 views
0 likes
|
Last Post
by f.saeidi
Today, 10:23 AM
|
Comment