I am trying to execute a long order with a limit order which is equal to the median of previous bar in Renko bar. First of it does not work or Probably I am doing something wrong. Even sometimes, it giving error massage. I am attaching screenshot for your reference. Please advise.
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
Place Limit order
Collapse
X
-
Place Limit order
Hi,
I am trying to execute a long order with a limit order which is equal to the median of previous bar in Renko bar. First of it does not work or Probably I am doing something wrong. Even sometimes, it giving error massage. I am attaching screenshot for your reference. Please advise.Tags: None
-
-
For further info, I am attaching a screenshot for what actually I am trying to do.
When green bar changes into red, then I am trying to set a sell limit order equal to open price of the last green bar. please advise. I have already posted the screen shot for median price. It's not working, but if you could advise on this please, what should be the execution combination. I am kind of lost trying all the options now. Nothing is working.
Comment
-
Hello asmmbillah,
Thanks for your reply.
The issue here is that the strategy cannot know that the bar trend has changed from Green to Red until the first Red bar has closed. So you have to think of the first Red bar as the trigger bar that meets the conditions of Green bar followed by Red bar, Close[1] > Open[1] (green bar) and Close[0] < Open[0] (red bar). Once that condition is true you are now in a downtrend, your options are to place a stop Limit (or stop market) below the expected close price of the next bar or place a limit price above the bar assuming it pulls back to fill.Paul H.NinjaTrader Customer Service
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