Announcement
Collapse
Looking for a User App or Add-On built by the NinjaTrader community?
Visit NinjaTrader EcoSystem and our free User App Share!
Have a question for the NinjaScript developer community? Open a new thread in our NinjaScript File Sharing Discussion Forum!
Have a question for the NinjaScript developer community? Open a new thread in our NinjaScript File Sharing Discussion Forum!
See more
See less
Partner 728x90
Collapse
NinjaTrader
I Keep getting this error message when I try to backtest my strategy on Playback
Collapse
X
-
I Keep getting this error message when I try to backtest my strategy on Playback
The positions still stays but stop and profit disappear whenever this message occurs. I’m pretty sure there’s some kind of conflict. But i’m not sure how, where, or what to fix lol1 PhotoTags: None
-
-
Thanks for the feedback Chris....
Could you explain how I could change the Stop to Above or At the ask price?
Comment
-
Hi Rafael,
There can be many ways to set a stop. To set a stop to breakeven you can set the order using the prices: Position.AveragePrice or GetCurrentAsk() to set it at the closest possible market price. I attached a pre-made strategy builder example that implements a break even as well.
Kind regards,
-ChrisLAttached FilesLast edited by NinjaTrader_ChrisL; 08-11-2021, 03:13 PM.Chris L.NinjaTrader Customer Service
Comment
Latest Posts
Collapse
Topics | Statistics | Last Post | ||
---|---|---|---|---|
Started by mishhh, 05-25-2010, 08:54 AM
|
19 responses
6,189 views
0 likes
|
Last Post
by rene69851
Today, 09:29 AM
|
||
Started by gwenael, Today, 09:29 AM
|
0 responses
1 view
0 likes
|
Last Post
by gwenael
Today, 09:29 AM
|
||
Started by Karado58, 11-26-2012, 02:57 PM
|
8 responses
14,829 views
0 likes
|
Last Post Today, 09:09 AM | ||
Started by Option Whisperer, Today, 09:05 AM
|
0 responses
1 view
0 likes
|
Last Post Today, 09:05 AM | ||
Started by cre8able, Yesterday, 01:16 PM
|
3 responses
11 views
0 likes
|
Last Post
by cre8able
Today, 08:28 AM
|
Comment