Announcement
Collapse
No announcement yet.
Partner 728x90
Collapse
NinjaTrader
How to setprofittarget based on candle open
Collapse
X
-
So a trade triggers long. The trade markets in but there is slippage of like 2 pts. The candle open is we'll say 18000 and entry is 18002. I want the target to be in ticks (we'll say 20 ticks) but to be from the candle open of 18000 not the entry of 18002. So the target should be 18005 here. Right now it is going based on the entry of 18002 with a target of 18007.
Comment
-
I think you're going to need some more conditions to filter if you're trying to build a strategy. Last candle was green? x distance form previous low, Rsi level, Rsi rising, etc. Any time you set a strategy in motion, it will execute, Something like this would put on a ton of trades and likely lose on commissions.
Comment
-
There are other conditions but the one I want to change is the setprofittarget. I tried this
SetProfitTarget(CalculationMode.Price, Open[0] + (Profit * TickSize)) for long entry and SetProfitTarget(CalculationMode.Price, Open[0] - (Profit * TickSize)) for short entry
But it enters and exits instantly
Comment
-
<span class="name">Brandon H.</span><span class="title">NinjaTrader Customer Service</span><iframe name="sig" id="sigFrame" src="/support/forum/core/clientscript/Signature/signature.php" frameborder="0" border="0" cellspacing="0" style="border-style: none;width: 100%; height: 120px;"></iframe>
Comment
Latest Posts
Collapse
| Topics | Statistics | Last Post | ||
|---|---|---|---|---|
|
Started by Mindset, 04-21-2026, 06:46 AM
|
0 responses
88 views
0 likes
|
Last Post
by Mindset
04-21-2026, 06:46 AM
|
||
|
Started by M4ndoo, 04-20-2026, 05:21 PM
|
0 responses
134 views
0 likes
|
Last Post
by M4ndoo
04-20-2026, 05:21 PM
|
||
|
Started by M4ndoo, 04-19-2026, 05:54 PM
|
0 responses
68 views
0 likes
|
Last Post
by M4ndoo
04-19-2026, 05:54 PM
|
||
|
Started by cmoran13, 04-16-2026, 01:02 PM
|
0 responses
119 views
0 likes
|
Last Post
by cmoran13
04-16-2026, 01:02 PM
|
||
|
Started by PaulMohn, 04-10-2026, 11:11 AM
|
0 responses
67 views
0 likes
|
Last Post
by PaulMohn
04-10-2026, 11:11 AM
|

Comment