Dukascopy
 
 
Wiki JStore Search Login

Calculating exponential lot
 Post subject: Calculating exponential lot Post rating: 0   New post Posted: Sat 03 May, 2014, 17:49 

User rating: 0
Joined: Wed 16 Apr, 2014, 13:43
Posts: 4
Location: Russian Federation,
HI people!
Could nyone help me create a block which would change the Lot value depending on the %change of balance.
thanks a lot.


 
 Post subject: Re: Calculating exponential lot Post rating: 0   New post Posted: Wed 07 May, 2014, 09:30 
Visual JForex expert at Dukascopy
User avatar

User rating: 27
Joined: Fri 03 May, 2013, 18:25
Posts: 366
Location: GermanyGermany
Greetings!

Basically, "Balance" is a snapshot of the equity at midnight. The variable itself does not exist in VJF but you can calculate it on your own:

Either you can do it on tick (getTimeUnit) or onCandle. If daily candle is filled then take the equity (current) for my calculations.

(NewEquity - OldEquity (previous day) ) / OldEquity*100

Then you get the change of the balance in percent. Take this variable to make further calculations on your lotsize.


 

Jump to:  

cron
  © 1998-2025 Dukascopy® Bank SA
On-line Currency forex trading with Swiss Forex Broker - ECN Forex Brokerage,
Managed Forex Accounts, introducing forex brokers, Currency Forex Data Feed and News
Currency Forex Trading Platform provided on-line by Dukascopy.com