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

With VisualJforex, how to organize a logic for trailing stop loss
http://www.dukascopy.com/swiss/english/forex/jforex/forum/viewtopic.php?f=146&t=49522
Page 1 of 1

Author:  DEMO2pwnrr [ Tue 02 Jul, 2013, 17:38 ]
Post subject:  With VisualJforex, how to organize a logic for trailing stop loss

As the title.

With VisualJforex, how to organize a logic for trailing stop loss. Is it possible?

Author:  vadim_berezhnoj [ Tue 02 Jul, 2013, 17:42 ]
Post subject:  Re: With VisualJforex, how to organize a logic for trailing stop loss

Hello Guest.

Yes it is possible with one block.

Image

Attachments:
Pic1.png [113.18 KiB]
Downloaded 665 times

Author:  DEMO2pwnrr [ Tue 02 Jul, 2013, 19:31 ]
Post subject:  Re: With VisualJforex, how to organize a logic for trailing stop loss

vadim_berezhnoj wrote:
Hello Guest.

Yes it is possible with one block.

Image



Thanks very much for your answer. And I want to know more. How to connect this block to position or just connect this block to the block "on tick"?
And if I have 10 positions at the same time but different side and opened on different price, can I use only one "trailing" block to manage them all ? Or I need use ten "trailing" blocks for each one ?

Author:  Bruno_Grunberg [ Wed 03 Jul, 2013, 11:35 ]
Post subject:  Re: With VisualJforex, how to organize a logic for trailing stop loss

See the attached strategy.

It uses the Position viewer Block to check all open positions and set a trailing step of 10 to all of them.

Attachments:
colldown_2.vfs [28.43 KiB]
Downloaded 360 times

  Page 1 of 1