Announcement
Collapse
No announcement yet.
Partner 728x90
Collapse
NinjaTrader
Where to start if I want to create a strategy on a trading set-up?
Collapse
X
-
Hello! This question will certainly make you "laugh"!
I used the above to fix my scary strategy (based on a NinjaTrader sample). Would be great if you can enlighten me the role of High[0]/Low[0]. What does the script tell the system to do??Code:EnterLongStopLimit(highestHigh+TickSize,High[0],""); EnterShortStopLimit(lowestLow-TickSize,Low[0],"");
Thank you. Have a relaxing weekend.
Beth
Comment
-
Originally posted by belecona View PostHello! This question will certainly make you "laugh"!
I used the above to fix my scary strategy (based on a NinjaTrader sample). Would be great if you can enlighten me the role of High[0]/Low[0]. What does the script tell the system to do??Code:EnterLongStopLimit(highestHigh+TickSize,High[0],""); EnterShortStopLimit(lowestLow-TickSize,Low[0],"");
Thank you. Have a relaxing weekend.
Beth
Comment
-
Thanks Sledge. Is my code asking the system to enter a StopLimit order @HH+1 tick (or LL-1 tick) + displaying the current H/L? I noticed from the Orders tab a Stop section with price corresponded to the H/L. Please confirm my understanding. Thank you.
Beth
Comment
-
I hope this helps answer your question.Originally posted by belecona View PostThanks Sledge. Is my code asking the system to enter a StopLimit order @HH+1 tick (or LL-1 tick) + displaying the current H/L? I noticed from the Orders tab a Stop section with price corresponded to the H/L. Please confirm my understanding. Thank you.
Beth
Definition
Generates a buy stop limit order to enter a long position.
Code:EnterLongStopLimit(double limitPrice, double stopPrice, string signalName)
Code:EnterLongStopLimit(highestHigh+TickSize,High[0],"");
limitPrice is highestHigh+TickSize -- The limit price of the order.
stopPrice is High[0] -- The stop price of the order.
signalName is ""
Comment
Latest Posts
Collapse
| Topics | Statistics | Last Post | ||
|---|---|---|---|---|
|
Started by CarlTrading, 03-31-2026, 09:41 PM
|
1 response
68 views
0 likes
|
Last Post
|
||
|
Started by CarlTrading, 04-01-2026, 02:41 AM
|
0 responses
38 views
0 likes
|
Last Post
by CarlTrading
04-01-2026, 02:41 AM
|
||
|
Started by CaptainJack, 03-31-2026, 11:44 PM
|
0 responses
63 views
1 like
|
Last Post
by CaptainJack
03-31-2026, 11:44 PM
|
||
|
Started by CarlTrading, 03-30-2026, 11:51 AM
|
0 responses
62 views
0 likes
|
Last Post
by CarlTrading
03-30-2026, 11:51 AM
|
||
|
Started by CarlTrading, 03-30-2026, 11:48 AM
|
0 responses
53 views
0 likes
|
Last Post
by CarlTrading
03-30-2026, 11:48 AM
|


Comment