|
Need help to build a SMA and Fib system |
grammy
|
Post subject: Need help to build a SMA and Fib system |
Post rating: 0
|
Posted: Tue 08 Oct, 2013, 09:25
|
|
User rating: 0
Joined: Sun 06 Oct, 2013, 12:22 Posts: 11 Location: FinlandFinland
|
I am new to automated trading and i need help how how i can build a SMA system that enters a buy when the candlestick crosses the SMA upward and sells when the candlestick crosses SMA downward.
Also i need this system to include Fib expansion (or fib retreatment levels), where it can close half of the profit at 61.8% level and second profit at the 100% level.
Can anyone show me how i can do this or show me if it has been built already.
|
|
|
|
 |
vadim_berezhnoj
|
Post subject: Re: Need help to build a SMA and Fib system |
Post rating: 0
|
Posted: Tue 08 Oct, 2013, 11:22
|
|
Visual JForex expert at Dukascopy |  |
User rating: ∞
Joined: Mon 22 Apr, 2013, 11:30 Posts: 604 Location: UkraineUkraine
|
Greetings.
Sorry, but support team is not freelance programmers. Try to program it by yourself, use video tutorials and previous forum posts. Then if you have specific question, we will be glad to answer.
|
|
|
|
 |
grammy
|
Post subject: Re: Need help to build a SMA and Fib system |
Post rating: 0
|
Posted: Tue 08 Oct, 2013, 22:27
|
|
User rating: 0
Joined: Sun 06 Oct, 2013, 12:22 Posts: 11 Location: FinlandFinland
|
I have tried to build this strategy but i tried to run it but it wont work. Can someone please tell me why this strategy wont run on the historical tester.
Attachments: |
SMA.vfs [25.24 KiB]
Downloaded 320 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.
|
|
|
|
|
 |
Fusion
|
Post subject: Re: Need help to build a SMA and Fib system |
Post rating: 0
|
Posted: Wed 09 Oct, 2013, 01:05
|
|
User rating: 3
Joined: Tue 09 Oct, 2012, 11:59 Posts: 20 Location: Finland, Turku
|
Good you made it here. Nice start, I told you its easy to learn. Just to get you started ponder on the below, its not built by the book and not how i would do it for myself, just flow example. I was wrong there was no Fibonacci retracement, but try to do it with some math and a few if's, my retractment percentages calculator is about 15 blocks with all I need.
|
|
|
|
 |
Fusion
|
Post subject: Re: Need help to build a SMA and Fib system |
Post rating: 0
|
Posted: Wed 09 Oct, 2013, 01:16
|
|
User rating: 3
Joined: Tue 09 Oct, 2012, 11:59 Posts: 20 Location: Finland, Turku
|
PS your works also if you leave out the 2 first blocks. I got the below running your version with them removed (1W) Balance Statistics : Start Balance: 50000.0 Final Balance: 51053.31 Account Statistics : Total Profit/Loss: 1053.31 Total Profit of all Trades: 1061.41 Total Loss of all Trades: 0.0 Commissions in USD: : 8.1 Turnover in Millions: 0.162 Profit Factor: 0.0 Expected Payoff: 6.55 Attachment:
SMA_Turku_01.vfs [34.02 KiB]
Downloaded 288 times
|
|
|
|
 |
grammy
|
Post subject: Re: Need help to build a SMA and Fib system |
Post rating: 0
|
Posted: Wed 09 Oct, 2013, 04:52
|
|
User rating: 0
Joined: Sun 06 Oct, 2013, 12:22 Posts: 11 Location: FinlandFinland
|
This strategy still do not run on the historical tester. I think there is a problem with it but i cannot find it, it is confusing now. How did you run it. I try to run it on the historical tester but it will not trade at all
|
|
|
|
 |
grammy
|
Post subject: Re: Need help to build a SMA and Fib system |
Post rating: 0
|
Posted: Wed 09 Oct, 2013, 05:04
|
|
User rating: 0
Joined: Sun 06 Oct, 2013, 12:22 Posts: 11 Location: FinlandFinland
|
Which 2 blocks did you leave out. Also your version did not work?
|
|
|
|
 |
Fusion
|
Post subject: Re: Need help to build a SMA and Fib system |
Post rating: 0
|
Posted: Wed 09 Oct, 2013, 16:14
|
|
User rating: 3
Joined: Tue 09 Oct, 2012, 11:59 Posts: 20 Location: Finland, Turku
|
grammy wrote: This strategy still do not run on the historical tester. I think there is a problem with it but i cannot find it, it is confusing now. How did you run it. I try to run it on the historical tester but it will not trade at all Have you tried running it on the "Visual Jforex" tester? That is the easiest way to get the bugs out of it and examine the variables before taking it to the JForex platform. Both above .vfs files work and trade on the "Visual Jforex" tester.
|
|
|
|
 |
grammy
|
Post subject: Re: Need help to build a SMA and Fib system |
Post rating: 0
|
Posted: Wed 09 Oct, 2013, 16:22
|
|
User rating: 0
Joined: Sun 06 Oct, 2013, 12:22 Posts: 11 Location: FinlandFinland
|
Yes i am trying to test it on Visual tester. This system do not run on the visual tester. Did you make any adjustment before you test it on VJF.
|
|
|
|
 |
Fusion
|
Post subject: Re: Need help to build a SMA and Fib system |
Post rating: 0
|
Posted: Wed 09 Oct, 2013, 18:49
|
|
User rating: 3
Joined: Tue 09 Oct, 2012, 11:59 Posts: 20 Location: Finland, Turku
|
grammy wrote: Yes i am trying to test it on Visual tester. This system do not run on the visual tester. Did you make any adjustment before you test it on VJF. No adjustments, just took out the first 2 blocks as i said above. Here is your original with the blocks taken out. Also included is an extra block you might want to link in, so it docent take so many trades, for testing put it right before the buy block, later you can move it up to save processing time (calculations and what not), somewhere after money management and other essentials so it wont stop them.
Attachments: |
SMA_G.vfs [25.02 KiB]
Downloaded 298 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.
|
|
|
|
|
 |
grammy
|
Post subject: Re: Need help to build a SMA and Fib system |
Post rating: 0
|
Posted: Thu 10 Oct, 2013, 04:02
|
|
User rating: 0
Joined: Sun 06 Oct, 2013, 12:22 Posts: 11 Location: FinlandFinland
|
Thanks.
I added the block. Is there a quick i can create the sell order or i have to build everything again but in the opposite logic?
|
|
|
|
 |
|
Pages: [
1
]
|
|
|
|
|