Thanks
Announcement
Collapse
No announcement yet.
Partner 728x90
Collapse
NinjaTrader
Changing base currency
Collapse
X
-
Changing base currency
I am aware of the problem with the base currency conversion and am curious to know if a fix is planned for this, in the meantime could you explain the process of changing the base currency value on any particular pair for the strategy analyzer...
ThanksTags: None
-
"Special Circumstances with GAIN Forex
During a backtest, order quantity is an absolute value which is in most cases different than in a real-time brokerage account. As an example, 1 traded FX lot at a live brokerage account might be the equivalent to 100,000 of notional value (check with your broker) however, in backtest a value of 1 is a literal value of 1 and not 100,000. Thus, if you want to trade 100,000 in a backtest you need to put in a value of 100,000. Just remember that if you convert your strategy from backtest to live you will need to amend the order quantities appropriately."
"It is important to understand how order quantities behave when running a real-time FX strategy in a live brokerage account. This is relevant for:- Currency and point based performance calculations
- Actual order size being submitted to your live brokerage account
Running FX NinjaSript Strategies in the Strategy Analyzer, Simulated Data Feed Connection or Market Replay
Running an FX strategy in the Strategy Analyzer for a historical backtest, in real-time connected to either the Simulated Data Feed or Market Replay order quantities will always represent the total units of the base currency being traded. A lot size of one equals a base currency unit of one and DOES NOT equal a typical "standard" lot size of 100,000. Therefore, if you want to trade a standard lot you would use an order quantity of 100,000.
Running FX NinjaScript Strategies on a Live Brokerage Connection
Running an FX strategy on a live brokerage connection either in a live funded account or a simulation (Sim101) account order quantities will reflect the lot size convention that your brokerage trades in. For example, if your brokerage has a lot size of 1 that equals 100,000 units of the base currency (a "standard" lot) then use a value of 1 to trade 100,000 base units.
CRITICAL
Based on the above information, if you are backtesting in the Strategy Analyzer using order quantities of 100,000 and you now wish to trade live in your brokerage account where 1 lot is equal to 100,000 MAKE SURE that you adjust your strategy's order quantity from 100,000 to 1 to ensure you are trading the correct quantity."
Comment
-
There is no fix planned since there is nothing broken. This is a limitation based on the nature of having to support multiple FX brokers. I have seen others include a true/false user defined input to switch between live and backtest which changes the order quantity used internally etc...RayNinjaTrader Customer Service
Comment
-
Thanks for the help, i would not have figured that one out on my own, now my next problem...
How would you input multiple profit targets in the strategy analyzer, for instance,... say I wanted to enter 4 minis with a 40 pip SL and sell 2 with a profit target 20 pips from my entry and the remaining 2 at 40 pips from my entry? averaging out of the position.
Comment
Latest Posts
Collapse
Topics | Statistics | Last Post | ||
---|---|---|---|---|
Started by WHICKED, Today, 12:56 PM
|
1 response
8 views
0 likes
|
Last Post Today, 01:17 PM | ||
Started by cre8able, Today, 01:16 PM
|
0 responses
1 view
0 likes
|
Last Post
by cre8able
Today, 01:16 PM
|
||
Started by chbruno, 04-24-2024, 04:10 PM
|
2 responses
47 views
0 likes
|
Last Post
by chbruno
Today, 01:15 PM
|
||
Started by WHICKED, Today, 12:45 PM
|
1 response
11 views
0 likes
|
Last Post Today, 01:08 PM | ||
Started by samish18, Today, 01:01 PM
|
0 responses
5 views
0 likes
|
Last Post
by samish18
Today, 01:01 PM
|
Comment