Dukascopy
 
 
Wiki JStore Search Login

关于策略测试中Global Variables的问题
 Post subject: 关于策略测试中Global Variables的问题 Post rating: 0   New post Posted: Wed 15 Apr, 2015, 08:37 
User avatar

User rating: 0
Joined: Sun 12 Apr, 2015, 09:30
Posts: 27
Location: ChinaChina
1.策略测试中这个全局变量的设置与策略里面的变量是什么关系?
2.我在策略中设置了对Global Variables里面的参数都进行了设置,那么在策略测试中不管我怎么设置Global Variables,里面的参数都还是按照我策略中的具体设置进行运行吗?
3.是不是只有策略里面没有设置的参数,才遵循Global Variables的设置进行运行?
4.还有一种情况,我在具体策略中没有设置止盈止损,但是定义了完整了开关仓条件,这种时候Global Variables中的defaultStoploss和defaultTakeProfit设置是不是就不起作用了,而是按照我具体的关仓条件运行?
Image


Attachments:
2.png [17.94 KiB]
Downloaded 417 times
DISCLAIMER: Dukascopy Bank SA's waiver of responsability - Documents, data or information available on this webpage may be posted by third parties without Dukascopy Bank SA being obliged to make any control on their content. Anyone accessing this webpage and downloading or otherwise making use of any document, data or information found on this webpage shall do it on his/her own risks without any recourse against Dukascopy Bank SA in relation thereto or for any consequences arising to him/her or any third party from the use and/or reliance on any document, data or information found on this webpage.
 
 Post subject: Re: 关于策略测试中Global Variables的问题 Post rating: 0   New post Posted: Wed 22 Apr, 2015, 16:13 
Visual JForex expert at Dukascopy
User avatar

User rating: 1
Joined: Thu 29 Aug, 2013, 13:07
Posts: 88
Location: Ukraine, Kiev
Global Variables是针对策略里使用的默认值,包括Instrument,Trade Amount,Slippage,Stop Loss,Take Profit,和Period。如果策略里使用的是默认值,在测试时Global Variables的窗口可以调整,这样测试就会按Global Variables里的值测试。如果一些或全部默认值在策略里被修改,这样被修改的值会作为测试的条件,再Global Variables里再修改这些值就没有用了。


 

Jump to:  

cron
  © 1998-2025 Dukascopy® Bank SA
On-line Currency forex trading with Swiss Forex Broker - ECN Forex Brokerage,
Managed Forex Accounts, introducing forex brokers, Currency Forex Data Feed and News
Currency Forex Trading Platform provided on-line by Dukascopy.com