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 Geovanny Suaza, 02-11-2026, 06:32 PM
|
0 responses
649 views
0 likes
|
Last Post
|
||
|
Started by Geovanny Suaza, 02-11-2026, 05:51 PM
|
0 responses
370 views
1 like
|
Last Post
|
||
|
Started by Mindset, 02-09-2026, 11:44 AM
|
0 responses
109 views
0 likes
|
Last Post
by Mindset
02-09-2026, 11:44 AM
|
||
|
Started by Geovanny Suaza, 02-02-2026, 12:30 PM
|
0 responses
573 views
1 like
|
Last Post
|
||
|
Started by RFrosty, 01-28-2026, 06:49 PM
|
0 responses
576 views
1 like
|
Last Post
by RFrosty
01-28-2026, 06:49 PM
|


Comment