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 charlesugo_1, 05-26-2026, 05:03 PM
|
0 responses
65 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
149 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
99 views
0 likes
|
Last Post
by CarlTrading
05-10-2026, 08:12 PM
|
||
|
Started by Hwop38, 05-04-2026, 07:02 PM
|
0 responses
286 views
0 likes
|
Last Post
by Hwop38
05-04-2026, 07:02 PM
|


Comment