Dukascopy
 
 
Wiki JStore Search Login

What is wrong with my strategy?
 Post subject: What is wrong with my strategy? Post rating: 0   New post Posted: Sun 29 Sep, 2013, 18:47 
User avatar

User rating: 0
Joined: Mon 11 Mar, 2013, 00:00
Posts: 47
Location: Colombia, manizales
Hello, I am trying to build my first strategy. It is based on two moving averages, the first one is a 50 SMA, the second one is a 50 SMA (shift 15). I am trying to create an order when one SMA cross the other one, and viceversa, but there are not orders when I test the strategy. I am using this video-tutorial to build my strategy: https://www.dukascopy.com/swiss/english/ ... tutorials/


Image


Attachments:
2.png [211.44 KiB]
Downloaded 189 times
1.png [48.79 KiB]
Downloaded 448 times
File comment: This is the code.
myfirststrategy.txt [17.1 KiB]
Downloaded 208 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: What is wrong with my strategy? Post rating: 0   New post Posted: Sun 29 Sep, 2013, 18:54 
User avatar

User rating: 0
Joined: Mon 11 Mar, 2013, 00:00
Posts: 47
Location: Colombia, manizales
Image


Attachments:
2.png [226.85 KiB]
Downloaded 409 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: What is wrong with my strategy? Post rating: 0   New post Posted: Mon 30 Sep, 2013, 09:31 
User avatar

User rating: 3
Joined: Tue 09 Oct, 2012, 11:59
Posts: 20
Location: Finland, Turku
To start, block 3 and 5, what do they calculate different from 2 and 4?
After that, depending on what you want maybe 6, 7 and 8.


 
 Post subject: Re: What is wrong with my strategy? Post rating: 0   New post Posted: Tue 01 Oct, 2013, 11:48 
Visual JForex expert at Dukascopy
User avatar

User rating:
Joined: Mon 22 Apr, 2013, 11:30
Posts: 604
Location: UkraineUkraine
To get SMA on previous candle - set Shift =1


 

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