Announcement
Collapse
No announcement yet.
Partner 728x90
Collapse
NinjaTrader
How to check condition and execute trade at strategy startup
Collapse
X
-
How to check condition and execute trade at strategy startup
I have a strategy to place long trade if price cross above 13 MA and go short if price cross below 13 MA and it works perfectly. What I would like to do is to have the strategy check the position of price and place a trade immediately at the time I start the strategy. So if at the time of strategy startup, price is above the 13 MA and enter a long trade and if it is below 13 MA then enter short position and I want this to be only a one time check/execution and then want the strategy to follow the script of cross above and below on bar updates. Can someone please help?
Tags: None
Latest Posts
Collapse
| Topics | Statistics | Last Post | ||
|---|---|---|---|---|
|
Started by charlesugo_1, 05-26-2026, 05:03 PM
|
0 responses
60 views
0 likes
|
Last Post
by charlesugo_1
05-26-2026, 05:03 PM
|
||
|
Started by DannyP96, 05-18-2026, 02:38 PM
|
1 response
147 views
0 likes
|
Last Post
|
||
|
Started by CarlTrading, 05-11-2026, 05:56 AM
|
0 responses
162 views
0 likes
|
Last Post
by CarlTrading
05-11-2026, 05:56 AM
|
||
|
Started by CarlTrading, 05-10-2026, 08:12 PM
|
0 responses
97 views
0 likes
|
Last Post
by CarlTrading
05-10-2026, 08:12 PM
|
||
|
Started by Hwop38, 05-04-2026, 07:02 PM
|
0 responses
284 views
0 likes
|
Last Post
by Hwop38
05-04-2026, 07:02 PM
|

Comment