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

How to limit the total position amount
http://www.dukascopy.com/swiss/english/forex/jforex/forum/viewtopic.php?f=146&t=56937
Page 1 of 1

Author:  PropTrader [ Fri 22 Feb, 2019, 19:08 ]
Post subject:  How to limit the total position amount

How to limit the total position amount opened per day (Time frame : Day) to one order.
if the current order hit SL or TP wait for Current candle close, than check Again if conditions meet to open new order.

Thank for support.

Author:  FranklinXiao [ Sat 23 Feb, 2019, 03:49 ]
Post subject:  Re: How to limit the total position amount

normally I used three ways:
1. Used "if" block to check if "open order amounts" equal to 0, then open new order.
2. Used "if" block to check if "used leverage" less than a risk target. The position amount is depends on your entry trigger and entry amount.
3. Used "assign" block to limit, for instance, set a boolean or inter variable "goto long" with true value, put a block "check if goto long equal to ture" before the path of open order , after open order you connect an assign block to set the variable "goto long" to false value. Used "on trade" feed to check if there's a message about position close, if yes then reset the "goto long" to true value.

If the description is not clear , you could search key words in forum to get the detailed pictures and strategies.

Author:  PropTrader [ Sat 23 Feb, 2019, 11:23 ]
Post subject:  Re: How to limit the total position amount

Thank you for your reply, but you forget to to set the condition : wait for Current candle close.

More explain : when order open, if hit SL or TP wait for candle to close than Strat Strat stragtey again.

Author:  vadim_berezhnoj [ Wed 27 Feb, 2019, 10:23 ]
Post subject:  Re: How to limit the total position amount

Hello

Please use Visual JForex Guide
https://www.dukascopy.com/vfhelper/docu ... _locale=EN

7.1. How to do a strategy subscription

  Page 1 of 1