Article Library

1/33
Ranking
As I mentioned in my last article, I will now illustrate step by step how to create the strategy defined, with the new tool Visual JForex. If you no longer remember the parameters of the strategy here is the link to my previous article: Visual Jforex - Building Strategies (part-I)Simple summary of the strategy:Indicators RSI and Bollinger Bands. Our strategy will open a short position if the current price is above the upper band and RSI> 70. On the other side will open a long position if the current price is below the lower band and RSI <30. Strategy will open only one order at a time with the TP and SL defined. Strategy will work on 5 minute chart.So to begin, you must start Visual JForex interface, with your DFC credentials.I will assume that you have already explored some aspect of this tool and we'll direct to action. Once you are logged within the workspace, you're going to start by click FILE in the top menu, then NEW. A box will open, here you write the name of our strategy: BB_scalp1, click Save, done. The workspace is ready to receive all the necessary information. Insert the first indicator that our strategy needs. As I mentioned in the previous article, Indicators Block, is on the right side, inside the Repositorium. After you open the tab and you find the indicator BollingerBands, drag it to the workspace, as you can see in the picture below. Then change the values ​​according to the parameters defined: Period 5 mins, MA type: EMA.Image1 - Exemple how to drag BBands Indicator into Workspace of Visual JForexWell, now that we have our first indicator BBands in the workspace and configured with the correct parameters, we will do the same for RSI indicator and set it too. Then we will connect them together. The next step in the development of our strategy is the logical part of the algorithm. Here begin the doubts and problems since the beginning is not easy to chain the logic blocks easily. The solution I've found has a high number of IF statements, but can be improved in the future. So to interconnect all the logic of our strategy we will follow step by step the values ​​we need to compare each other. Thus we have:If the RSI is higher than 70, check if the current price is greater than the upper band of BBands. If these two conditions are true then check if there is no open order.If the RSI is not more than 70, we have to check if it's below 30. If it is true, we check if the current price is less than the lower band of BBands. If the last conditions are true then check again if there is no open order.Now that we have all the logic that our strategy needs built, we will drag into the workspace the blocks needed for opening orders. So, we need 2 blocks to open orders at the market price. If our strategy uses pending orders, there are also blocks for such orders.Sometimes it is not easy to explain certain procedures simply through words. To better understand these steps see the following pictures:Image2 - After drag the IF block that was in the Repositorium, right side of workspace. Go to left side, Variables and in User's Variables I have RSI_9. If you do not rename your RSI output variable it will be in Auto Created Variables, with name Outnumber. In my case I do not rename BBands variables. Drag RSI output variable into IF block and set second value to 70 manually. Repeat this step many times, how many IF Statements you see in next picture.Image3 - Drag all IF blocks you need and finally drag the Open at Market blocks. Make all connections between IF statements and at the end connect them with the blocks that will trigger the orders.And you're done, we built our first strategy step by step. Now that the strategy is completed, we need compile our algorithm, for the strategy to be transformed into code and can be used on JForex platform . To do this click COMPILER and then Build in Top Menu.Now comes the testing process and to make sure that it all works as it was intended. For this Visual JForex also owned a connector that connects itself to the trading platform and runs our algorithm. The tests can be made ​​with passed data (back-test) or with current data (forward testing). Set all settings of our strategy and start the final TEST. For that you need to go again Top Menu, click COMPILER and RUN. If you received a box with an ERROR, click Download and then follow all the steps and see the "magic happen". Our strategy start Running in Jforex Platform... Image4 - These message boxes will appear during the beginning of the TEST process, only Strategy Report appear at the end. Follow the steps until the strategy start running on JForex Platform as you can see on next picture.Image5 - See our first strategy Running on Back TestFinal Words:This was my first strategy developed in Visual JForex. It's a simple strategy, but we should always start with something easier. The tool is actually very good, but for more complex strategies may be more complicated develops them in this environment than in a text editor with access to the API. At least for me that I'm used to it. For those who are just starting out and did not notice anything about programming, then is the ideal tool...
Read article
Translate to English Show original
SpecialFX avatar

I have yet to fully look to Visual Jforex, but great article, this will surely help me :)

Metal_Mind avatar

i like your articale ver much. I can't give it i like since the contest period is over....but thank you for your effort. I personaly learned alot reading part 1 and part 2. BIG LIKE :)

Henrix avatar
Henrix 9 Aug.

very useful tnx you LinnuxFx

genius710 avatar

this is the stupidest article I have ever read!

krisfx avatar
krisfx 28 Oct.

Hi there, thank you for the article. I have a question? did you include TP and SL and lot size parameters? There is no mention of this and how to do it? thank you

orto leave comments
20/33
Ranking
As everyone knows, the latest version of the Visual JForex (build 1.1.224) was launched last May 1. In this new version, several bugs have been fixed on Interface, Processor and Server Side. CDLDOJI pattern indicator was added to the Indicators Library. So with this tool brand new, there is no better time to begin writing an article about the potential and somehow also a help to those who want to start but are still a bit lost. Even myself, I am a little used to this kind of tools I had some difficulty in building my first strategy. So in addition to all the help that is now available on DFC about Visual JForex, I will write a series of articles that may help overcome some difficulties that I also had._____________________________________________________________________________Firstly what is Visual JForex, and it's for?Visual JForex is a Drag and Drop tool that allows all members of DFC, to create automatic trading strategies. This tool has effective and intuitive GUI functionality. With is drag and drop technology, most of the work is done with a couple of mouse clicks. On this page you can see the main features of this tool: http://www.dukascopy.com/swiss/english/forex/Visual/fe…
Read article
Translate to English Show original
Likerty avatar
Likerty 21 May

This VisualForex thing is really inovative - 10 points to Dukas for that!:)

tcanuto avatar
tcanuto 29 May

Very good this JForex Visual! It was what was missing!

egidijus avatar
egidijus 29 May

Nice article!

Metal_Mind avatar

like, like , like

ericksegura avatar

Excellent!

orto leave comments
18/46
Ranking
Yes, it is true, for those who do not know or do not remember the Strategy Contest makes this April Three Years, since its first edition was launched, in 2010. In May 2012 I wrote an article about the Second Birthday of the competition and after a year I am back with the same theme as I think there is a need to do something to restore the credibility of the contest as well as the motivation of contestants.The Strategy Contest has always been somewhat controversial as to compliance with the rules by the participants, which further implies in the final results. As in last months, this contest has again been the subject of debate in our Community Forum, my purpose is to bring an article to debate this matter further so we can definitely have a fair contest according to the rules. The problem here are not just participants that break some rules, but we also have to put some weight on the Dukascopy Team for not enforcing the rules strictly. The issue of non-compliance with the rules is not a new issue regarding this contest, perhaps because the rules are far from be the best, perhaps because some participants do not worry whatsoever fulfill them or simply because Dukascopy forgotten how…
Read article
Translate to English Show original
LinnuxFX avatar
LinnuxFX 11 Apr.

I the past I submit my idea to Dukascopy Team, why do not have same rules like annual EA contest from MT4 / MT5. Provided strategies are filtered before they could participate in the contest...

sircris avatar
sircris 16 Apr.

I agree with you, LinnuxFX. I sent a complaint about the issues that You cite here: http://www.dukascopy.com/swiss/english/forex/jforex/forum/viewtopic.php?f=21&t=47610. the contestant involved did not fix their strategy, and he responded with an arrogant attitude, when I gave him the chance to fix his strategy before contacting Dukascopy. But Dukascopy response was no better than that of Pontius Pilate. The rules are, it is necessary to enforce them! I am waiting the Dukascopy response to the clear violations of the last month.

Brasileiro avatar
Brasileiro 17 Apr.

+ like

alifari avatar
alifari 28 Apr.

Some very important points raised which could be useful, if implemented in future strategy contest rules.

xiaozuwei avatar
xiaozuwei 28 June

Excellent point, strategy contest is like a gambling! Sooner or later will hit the prize.

orto leave comments
1/43
Ranking
In my last month article I described the general ideas of how I decided to automate the strategy presented by the member BlueDragon, as I mentioned I saw a great potential in it. In this article, the last of this year, I want to show you the practical part as regards the implementation of the code. Just picking up on what was described in the previous article, we will analyze step by step the generated code to build the strategy. I'm not going to show how a strategy is made from scratch, as it is already well explained in previous articles from other community members.Let us start analyzing the code for each point described in the previous article:1 - Pivots Calculation:I will start by presenting the main piece of code of the strategy, it is here that the pivots are calculated according to the periods used : H4 - Daily - Weekly and Monthly. What this piece of code does is get the history of the last candle of each period and then calculate the (H+L+C)/3. Then it checks the difference between the closing price of the candle and the pivot calculated. If the difference is greater than or equal to the defined, the conditions are set to open trades at the beginning of the next candle in…
Read article
Translate to English Show original
scramble avatar
scramble 21 Dec.

interesting setups, well done! thanks for sharing!

OneGoodTrade avatar

You can't ask more from such a well written article.

LinnuxFX avatar
LinnuxFX 24 Dec.

Merry Christmas to ALL....

fullmoon avatar
fullmoon 25 Dec.

Merry XMA$ to all. LinnuxFX, I couldnt find your java code anywhere - did you make it public to so users can collaborate? I am missing for example the activeOrder and setStopLoss functions and can not verify your results. Thanks.

elvy avatar
elvy 31 Dec.

My favorite widgets, build strategies and their way of me getting drunk, enjoys strategies.
Thanks for this article, it's worth every word.

orto leave comments