I want to round off the close position timing in SampleMACrossover strategy using DateTime object? how can achieve it ? and also verify it?
Announcement
Collapse
No announcement yet.
Partner 728x90
Collapse
NinjaTrader
Change and Check SampleMACrossover strategy
Collapse
X
-
Change and Check SampleMACrossover strategy
Hello,
I want to round off the close position timing in SampleMACrossover strategy using DateTime object? how can achieve it ? and also verify it? -
Hello Kathir,
Thank you for your post.
Do you want to convert the SampleMACrossover script to calculate on each tick? Currently the strategy runs on the close of every bar, so the signal execution will not occur until the close of the bar, even though the crossing signal could have occurred at any point during the bar formation. The Calculate property will control weather your script's OnBarupdate method runs on bar close, on each tick, or on every price change. See the help guide page below for more details on the Calculate property:
If this is not the case, please clarify exactly what behavior you wish to achieve.
Thanks in advance; I look forward to resolving this for you.
-
Hello 270027,
Thank you for your reply.
The built in Sample MA Crossover is an unlocked script and cannot be edited in the Strategy Builder.
This Strategy Builder 301 video demonstrates recreating the same logic in the Strategy Builder, however:
Strategy Builder 301
Please let us know if we may be of further assistance to you.
Comment
Latest Posts
Collapse
| Topics | Statistics | Last Post | ||
|---|---|---|---|---|
|
Started by CarlTrading, 03-31-2026, 09:41 PM
|
1 response
81 views
1 like
|
Last Post
|
||
|
Started by CarlTrading, 04-01-2026, 02:41 AM
|
0 responses
42 views
0 likes
|
Last Post
by CarlTrading
04-01-2026, 02:41 AM
|
||
|
Started by CaptainJack, 03-31-2026, 11:44 PM
|
0 responses
64 views
2 likes
|
Last Post
by CaptainJack
03-31-2026, 11:44 PM
|
||
|
Started by CarlTrading, 03-30-2026, 11:51 AM
|
0 responses
66 views
0 likes
|
Last Post
by CarlTrading
03-30-2026, 11:51 AM
|
||
|
Started by CarlTrading, 03-30-2026, 11:48 AM
|
0 responses
54 views
0 likes
|
Last Post
by CarlTrading
03-30-2026, 11:48 AM
|

Comment