If VOL < 350k in the time frame 09:30AM to 10:30AM, use plan A. if not, Plan B.
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
Using Strategy Builder to Filter Days by First Hours activity
Collapse
X
-
Using Strategy Builder to Filter Days by First Hours activity
Based on the activity of the first hour of the day, I would like to sort out which approach is used that day. Basically how do I code:
If VOL < 350k in the time frame 09:30AM to 10:30AM, use plan A. if not, Plan B.Tags: None
-
Hello Raginpower,
Measuring the volume between two specific times would mean adding it together. The only math available in the strategy builder is with offsets on series. Any further math would require unlocking the script and coding by hand.
This may work with series.
Try adding a custom series. Then in a time filter from 9:30 AM to 10:30 AM set the value of the series to the previous bars value with an offset adding the Volume of the current bar.
Below is a link to a video of saving volume using offsets in the Strategy Builder.
Also, below is a link to the Strategy Builder 301 training video on time filters.
NinjaTrader's Strategy Builder empowers traders of all levels with point-and-click automated trading strategy development. Create your own advanced automated...
From there you could set a bool in a condition after 9:30 that checks what was collected, and in each condition set that has the logic to place orders, require this bool to be true.Chelsea B.NinjaTrader Customer Service
Latest Posts
Collapse
Topics | Statistics | Last Post | ||
---|---|---|---|---|
Started by ninza33, Today, 09:10 AM
|
1 response
8 views
0 likes
|
Last Post Today, 09:46 AM | ||
Started by goodknight777, Today, 08:43 AM
|
1 response
5 views
0 likes
|
Last Post Today, 09:25 AM | ||
Started by kramnor2001, Yesterday, 02:30 PM
|
3 responses
21 views
0 likes
|
Last Post
by kramnor2001
Today, 09:20 AM
|
||
Started by Padan, Today, 02:02 AM
|
3 responses
11 views
0 likes
|
Last Post Today, 08:54 AM | ||
Started by Tim-c, Today, 08:36 AM
|
1 response
3 views
0 likes
|
Last Post Today, 08:45 AM |
Comment