I would like to use the Strategy Builder to create a strategy that says, "If Tuesday's close falls 4% from Monday's close, buy at the close."
Announcement
Collapse
No announcement yet.
Partner 728x90
Collapse
NinjaTrader
How to create a strategy
Collapse
X
-
Hello silver211,
Thanks for your post.
This would require using custom Series and saving the Close price to the custom Series when your Day of Week and Time condition becomes true.
First, you would create two custom Series variables named something like 'MondayClose' and 'TuesdayClose' in the Additional Data screen of the Strategy Builder.
Additional Data Screen: https://ninjatrader.com/support/help...onalDataScreen
In the Conditions and Actions screen of the Strategy Builder, you could create a condition that checks if the Date Series (Time folder > Date series) is equal to Monday (Time folder > Day of Week > Monday). Another condition would be made in the same Set that checks if the Time is a certain time, such as the Close time of the trading session.
Creating Time Comparisons: https://ninjatrader.com/support/help...imeComparisons
You would then assign the Close price to your MondayClose custom Series in the Actions section of the Conditions and Actions screen of the Builder (Misc folder > Set MondayClose > click 'set' in the 'MondayClose' field > open Price folder > select Close > click OK > click OK again).
In a separate Set, you would create a condition that checks if the Date Series is equal to Tuesday. You would also create a Time Comparison condition. Then, assign the Close price to the TuesdayClose custom Series variable.
In a third Set, you could create a condition comparing if the TuesdayClose custom Series (Misc folder > Custom series > set 'Custom series' field to 'TuesdayClose') is less than the MondayClose custom Series with an offset of -4 Percent (Misc folder > Custom series > set 'Custom series' field to 'MuesdayClose' > set the Offset dropdown menu to Percent > set the value to -4).
Then, call you Entry order method in the Action section of that Set, such as EnterLong().
Conditions: https://ninjatrader.com/support/help...on_builder.htm
Actions: https://ninjatrader.com/support/help...t8/actions.htm
Please let me know if I may further assist.
<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>
Latest Posts
Collapse
| Topics | Statistics | Last Post | ||
|---|---|---|---|---|
|
Started by argusthome, 03-08-2026, 10:06 AM
|
0 responses
80 views
0 likes
|
Last Post
by argusthome
03-08-2026, 10:06 AM
|
||
|
Started by NabilKhattabi, 03-06-2026, 11:18 AM
|
0 responses
46 views
0 likes
|
Last Post
|
||
|
Started by Deep42, 03-06-2026, 12:28 AM
|
0 responses
29 views
0 likes
|
Last Post
by Deep42
03-06-2026, 12:28 AM
|
||
|
Started by TheRealMorford, 03-05-2026, 06:15 PM
|
0 responses
32 views
0 likes
|
Last Post
|
||
|
Started by Mindset, 02-28-2026, 06:16 AM
|
0 responses
66 views
0 likes
|
Last Post
by Mindset
02-28-2026, 06:16 AM
|

Comment