Dukascopy
 
 
Wiki JStore Search Login

Simple SMA strategy
 Post subject: Simple SMA strategy Post rating: 0   New post Posted: Wed 28 Aug, 2013, 17:26 
User avatar

User rating: 0
Joined: Mon 27 May, 2013, 14:23
Posts: 1
Location: Belgium, Ramskapelle/Nieuwpoort
Hi,
I'm new here on the forum.
Jforex is a great tool, but as a young trader ;) , this is heavy stuff :shock: .
I have read the Wiki Jforex but i don't get the clou...
Can someone help me with a simple strategy SMA? I'm sure by doing it i will learn it faster.

I just want if the candle close above the SMA (for example period 10), Jforex place a BUY position.
If in this trade the candle close below the SMA, Jforex close this position and place at same time a sell the position.

Thx
Davidovic


 
 Post subject: Re: Simple SMA strategy Post rating: 0   New post Posted: Fri 30 Aug, 2013, 17:03 

User rating: 2
Joined: Thu 25 Jul, 2013, 08:40
Posts: 58
Location: ItalyItaly
Hi!!
I hope that is what you need!


Attachments:
smastrategy.vfs [36.22 KiB]
Downloaded 312 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: Simple SMA strategy Post rating: 0   New post Posted: Fri 16 May, 2014, 10:06 

User rating: 0
Joined: Mon 27 Jan, 2014, 16:40
Posts: 10
Location: LithuaniaLithuania
Hi, just tried to run this strategy on demo account historical tester to understand how everything works :) Unfortunately strategy keeps stopping with message
"java.lang.NullPointerException @ com.dukascopy.visualforex.robepo.smastrategy.CloseandCancelPosition_block_24(smastrategy.java:439)"
So what is wrong with this strategy?
Thank you.


 
 Post subject: Re: Simple SMA strategy Post rating: 0   New post Posted: Fri 16 May, 2014, 14:28 
Visual JForex expert at Dukascopy
User avatar

User rating: 288
Joined: Thu 18 Apr, 2013, 09:26
Posts: 1496
Location: Switzerland, Geneva
Greetings,

Well the way this strategy is built has several inconsistencies in terms of structure and redundancy of the used variables.

I've rebuilt this strategy and added some comments so that you can get a clear picture on how Visual Jforex works and how to implement your trading ideas.

Cheers


Attachments:
smastrategy_commented.vfs [43.66 KiB]
Downloaded 129 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: Simple SMA strategy Post rating: 0   New post Posted: Fri 16 May, 2014, 16:52 

User rating: 0
Joined: Mon 27 Jan, 2014, 16:40
Posts: 10
Location: LithuaniaLithuania
Thanks a lot :)


 

Jump to:  

  © 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