|
Calculating exponential lot |
aslanaliev
|
Post subject: Calculating exponential lot |
Post rating: 0
|
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.
|
|
|
|
 |
dirk_r1
|
Post subject: Re: Calculating exponential lot |
Post rating: 0
|
Posted: Wed 07 May, 2014, 09:30
|
|
Visual JForex expert at Dukascopy |  |
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.
|
|
|
|
 |
|
Pages: [
1
]
|
|
|
|
|