Announcement
Collapse
No announcement yet.
Partner 728x90
Collapse
NinjaTrader
Problem with Order Price
Collapse
X
-
Problem with Order Price
I have an automated strategy that is trading some currency pairs, and am running into an issue where the price generated by the strategy is invalid - basically the price does not meet the right step size for the broker. In other words, the price should be 105.545, and is getting rejected with a price of 105.544 (not a .005 increment). Is there an easy way to set this?Tags: None
-
Ok, now i have set the settings from 1pip to half pip like in the connection guide.
But now i have a new problem. If i run a backtest with my strategy i can see that the stops are not calculatet correct.
I use SetStopLooss.
SetStopLoss("ForexC", CalculationMode.Ticks,Instrument.MasterInstrument. Round2TickSize(35), false);
What could be the problem? If i user 1pip in the settings, it calculates correct.
Comment
Latest Posts
Collapse
Topics | Statistics | Last Post | ||
---|---|---|---|---|
Started by martini, Yesterday, 04:45 PM
|
4 responses
30 views
0 likes
|
Last Post
by martini
Today, 04:48 PM
|
||
Started by catinabag, 04-13-2023, 05:46 AM
|
34 responses
1,458 views
0 likes
|
Last Post
by mcosta72
Today, 04:44 PM
|
||
Started by adeelshahzad, Today, 11:49 AM
|
6 responses
23 views
0 likes
|
Last Post
by mcosta72
Today, 04:35 PM
|
||
Started by sidlercom80, 05-05-2020, 07:20 AM
|
4 responses
304 views
0 likes
|
Last Post
by Bidder
Today, 04:35 PM
|
||
Started by andrew56, 11-21-2017, 11:57 AM
|
6 responses
954 views
0 likes
|
Last Post
by Bidder
Today, 04:34 PM
|
Comment