Thank you
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
limit price (bid ask) in a strategy
Collapse
X
-
limit price (bid ask) in a strategy
Hallo, I have build a strategy with NT Wizard and I prefer insert a limit order for long entry with "getcurrentbid(0)" and not a "market order" (I trade emini midcap and spread, sometime, is too big). For close a long position I had use "exit long position" and for a short position I had use "Enter short position by a limit order" and in limit price "Get Current Ask()". Strategy made correctly a long order but not filled a short order. How is the problem?
Thank youTags: None
-
Hello DenisF,
Thanks for your inquiry.
To troubleshoot the strategy and understand why an order submission did not occur, debugging steps will have to be taken.
I would suggest to print the price that you are submitting the order at along side your order methods, and then to print the variables used for your entry/exit conditions in the actions field of an empty condition set.
I have created a video describing how you can add prints to a strategy in the Strategy Builder to debug the NinjaScript code.
Demo: https://www.screencast.com/t/8uvjfM8h
Additional publicly available tips on debugging can be found below:
Debugging: http://ninjatrader.com/support/forum...ead.php?t=3418
TraceOrders: http://ninjatrader.com/support/forum...ead.php?t=3627
Please let me know if I may be of further assistance.JimNinjaTrader Customer Service
-
Hello DenisF,
I am not aware of a "Reverse Order" method available in the Strategy Builder or the Strategy Wizard. If you would like to reverse your position, you will need to submit an entry order in the opposite direction of the position that you are in without calling an exit method.
For example, calling EnterLong() when you are in a short position or calling EnterShort() while in a long position. The SampleMACrossover strategy can be used as an example.
If the information above does not resolve your inquiry, could you provide a screenshot to clarify the matter for me?JimNinjaTrader Customer Service
Comment
Latest Posts
Collapse
Topics | Statistics | Last Post | ||
---|---|---|---|---|
Started by andrewtrades, Today, 04:57 PM
|
1 response
5 views
0 likes
|
Last Post Today, 05:02 PM | ||
Started by chbruno, Today, 04:10 PM
|
0 responses
3 views
0 likes
|
Last Post
by chbruno
Today, 04:10 PM
|
||
Started by josh18955, 03-25-2023, 11:16 AM
|
6 responses
436 views
0 likes
|
Last Post
by Delerium
Today, 03:42 PM
|
||
Started by FAQtrader, Today, 03:35 PM
|
0 responses
7 views
0 likes
|
Last Post
by FAQtrader
Today, 03:35 PM
|
||
Started by rocketman7, Today, 09:41 AM
|
5 responses
19 views
0 likes
|
Last Post Today, 03:33 PM |
Comment