I'm new to ninja trader and am working on a simple strategy so long when the candle goes from bullish to bearish and vice versa and prints arrows, but after trying and trying, I'm not sure what I'm doing wrong. Any pointers would be greatly appreciated.
Announcement
Collapse
No announcement yet.
Partner 728x90
Collapse
NinjaTrader
cant seem to get simple strategy to work
Collapse
X
-
cant seem to get simple strategy to work
Hi Guys,
I'm new to ninja trader and am working on a simple strategy so long when the candle goes from bullish to bearish and vice versa and prints arrows, but after trying and trying, I'm not sure what I'm doing wrong. Any pointers would be greatly appreciated.Tags: None
-
Hello sh484,
When you mention "when the candle goes from bullish to bearish", you are meaning the open of the current bar is greater than the close of the current bar and the open of the previous bar is less than the close of the previous bar?
When you mention "after trying and trying, I'm not sure what I'm doing wrong", what is the behavior you are seeing that is wrong?
With the arrows, are you expecting these on every occurrence or just the most recent occurrence?
Chelsea B.NinjaTrader Customer Service
-
Hi Chelsea,
thank you for your reply.
What I'm trying to do if the previous candle is positive (open is above close) and the current candle closes negative (open is below the close) to go short and vice versa. please see attached the screenshot.
I'm trying to do every occurrence.
the problem I'm having is when i put the strategy on the chart, no arrows are drawn and when testing it in the strategy tester nothing happens.
Comment
-
Hello sh484,
A green bar, or up bar, would have the close above the open.
if (Close[0] > Open[0] && Close[1] < Open[1])
May I have a screenshot of the Drawing Objects window to confirm a single drawing object has not been drawn?- To send a screenshot with Windows 10 or newer I would recommend using the Windows Snipping Tool.
- Alternatively to send a screenshot press Alt + PRINT SCREEN to take a screenshot of the selected window. Then go to Start--> Accessories--> Paint, and press CTRL + V to paste the image. Lastly, save as a jpeg file and send the file as an attachment.
Chelsea B.NinjaTrader Customer Service
Comment
-
Hello sh484,
The (D) means the strategy is not enabled. On the Strategies tab of the Control Center, the strategy must have the Enabled checkbox checked.
The script must be enabled to take any actions.
Below is a link to a video on how to enable a strategy.
Chelsea B.NinjaTrader Customer Service
Comment
Latest Posts
Collapse
| Topics | Statistics | Last Post | ||
|---|---|---|---|---|
|
Started by NullPointStrategies, Today, 05:17 AM
|
0 responses
51 views
0 likes
|
Last Post
|
||
|
Started by argusthome, 03-08-2026, 10:06 AM
|
0 responses
128 views
0 likes
|
Last Post
by argusthome
03-08-2026, 10:06 AM
|
||
|
Started by NabilKhattabi, 03-06-2026, 11:18 AM
|
0 responses
69 views
0 likes
|
Last Post
|
||
|
Started by Deep42, 03-06-2026, 12:28 AM
|
0 responses
42 views
0 likes
|
Last Post
by Deep42
03-06-2026, 12:28 AM
|
||
|
Started by TheRealMorford, 03-05-2026, 06:15 PM
|
0 responses
46 views
0 likes
|
Last Post
|

Comment