Dukascopy
 
 
Wiki JStore Search Login

我制作了一个策略但无法开仓请帮忙看一下
 Post subject: 我制作了一个策略但无法开仓请帮忙看一下 Post rating: 0   New post Posted: Mon 13 Apr, 2015, 08:57 
User avatar

User rating: 0
Joined: Sun 12 Apr, 2015, 09:30
Posts: 27
Location: ChinaChina
先说一下制作这个策略的背景,我看中文的网络视频讨论,其中有一期讲解了如何在VJF上建立一个简单的策略SMA。我发现这个策略存在一个问题,只要一启动策略,就会马上开仓,这是因为这个SMA策略没有设置


Attachments:
mystrategySMA2.vfs [52.86 KiB]
Downloaded 149 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: 我制作了一个策略但无法开仓请帮忙看一下 Post rating: 0   New post Posted: Mon 13 Apr, 2015, 12:22 
User avatar

User rating: 0
Joined: Sun 12 Apr, 2015, 09:30
Posts: 27
Location: ChinaChina
上面没有说完,这个新的策略的目的是实现当前一天的close向上穿越SMA的时候开多仓,当前一天的close向下穿越SMA的时候开空仓,但不知道为什么我在测试这个策略的时候,显示一笔交易都没有,没有任何开仓,请问是怎么回事?


 
 Post subject: Re: 我制作了一个策略但无法开仓请帮忙看一下 Post rating: 0   New post Posted: Mon 13 Apr, 2015, 15:47 
Visual JForex expert at Dukascopy
User avatar

User rating: 1
Joined: Thu 29 Aug, 2013, 13:07
Posts: 88
Location: Ukraine, Kiev
您好,

您的策略If模仿里开始运用Last Bid Candle.Candle Close,之后运用can1.CandleClose,不清楚can1.CandleClose的用意,应该使用Last Bid Candle.Candle Close。请看截图。
Image


Attachments:
screenshot.JPG [103.61 KiB]
Downloaded 357 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.
 

Jump to:  

  © 1998-2024 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