Dukascopy Support Board
http://www.dukascopy.com/swiss/english/forex/jforex/forum/

Modularisation in Visual JForex
http://www.dukascopy.com/swiss/english/forex/jforex/forum/viewtopic.php?f=146&t=51784
Page 1 of 1

Author:  liamroche [ Sat 18 Oct, 2014, 17:13 ]
Post subject:  Modularisation in Visual JForex

I think it's fair to say that modularisation is considered a key aspect of programming languages. Otherwise if a non-trivial block of code gets used in more than one place, it needs to be rewritten or copied. For example, a standard calculation with a certain number of inputs that is used with different data.

In Visual JForex, it is easy to imagine how a combination of elements with some inputs and outputs could be stored as a block and reused, but I am not sure how to do this. Strategies can be stored, but they only output signals and are restricted to certain types of input if I understand correctly. It must not have been much simpler to implement this than to have implemented a completely general user-definable block.

If it isn't part of the current functionality, it would high on my list of requests, because it provides such a lot of power for one modification.

Author:  amine_chourou [ Mon 20 Oct, 2014, 10:11 ]
Post subject:  Re: Modularisation in Visual JForex

Hi

Thanks for your post,
One of VJForex goals is provide such aspect of modular programming or at least try to cover some of it and improve it in ad hoc basis. The use of a whole set of blocks that represents a given strategyu of a function is indeed possible and you already noticed that a strategy used a single block could either generate signal or run independently (ie normal run). It is also possible to define a certain number of variables as "Global variables" that will be available later for a quick modification inside your strategy block:

Image

Please try this and let us know your thoughts/feedback.

Thanks

Attachments:
StrategyAsBlock.JPG [51.66 KiB]
Downloaded 337 times

Author:  Delindari [ Mon 08 Dec, 2014, 09:29 ]
Post subject:  Re: Modularisation in Visual JForex

The Last Good development posts I ask you again to you.

  Page 1 of 1