forex software

Create and Test Forex Strategies

forex software

Skip to forum content

Forex Forum

Forex Software, Forex Strategies, Expert Advisors Generator

You are not logged in. Please login or register.


Forex Forum → Forex Strategy Builder Professional → Small bug in the percent entry units

Pages 1

You must login or register to post a reply

RSS topic feed

Posts: 8

Topic: Small bug in the percent entry units

Hello

I think I found a small bug.
If you want to but an asset valued 8000 USD with a 50 times leverage you need 160 euros. If you have 1000 USD in your account, this corresponds to 16% of your account.

However, even if you insert 0,01% as entry "unit for trading amount", FSB pro will still buy 1 unit of the asset, even if it is clearly insufficient.

Cheers
Nuno

Re: Small bug in the percent entry units

If you have initial account of $1000 and 1/50 leverage, and you want to buy $8000, you'll need $160 Free Margin (not 160 Eur). It is exactly 16% as you said.

We can test it easily on USDCHF market. The following screens shows that FSB Pro acts exactly as expected.

http://s29.postimg.org/m3t01y08j/screenshot_684.jpg

http://s29.postimg.org/g458yafg3/screenshot_685.jpg

http://s29.postimg.org/e0utqmfn7/screenshot_686.jpg

......

If you set 0.01% Entry units, this corresponds to 0.01% of the account = 0.01 * 1000 / 100 = 0.1$ Margin.
$0.1 covers $5 of the asset you want to buy. However, FSB Pro cannot buy less than 0.01 of the LotSize set in Control Panel => Symbols. If you have lot size of 10000, the minimum quantity FSB Pro will buy is  0.01 * 10000 = 100 units.

http://s29.postimg.org/kftunamcz/screenshot_687.jpg

http://s29.postimg.org/a71dhgyb7/screenshot_688.jpg

http://s29.postimg.org/ma6p519df/screenshot_689.jpg

Can you explain why you think that there is a bug here?

3 (edited by nquental 2014-10-16 00:23:11)

Re: Small bug in the percent entry units

In my opinion FSB should not buy any assets if the percentage of your equity you are allocating is not enough, as per the example I provided.

I was thinking of DAX, a cfd priced at more than 8000 USD per unit. Min lot size is 1 unit as well. If I allocate 0,01 percent as entry units it would be enough to buy 5 USD of the asset. As 5 is lower than 8000, in my humble opinion FSB should buy zero units, not one smile

Re: Small bug in the percent entry units

If you connect FSB Pro to your broker, you'll see that it provides three values: Minimum Lots, Lot Step and Maximum Lots. FSB Pro normalizes the trading amount using these values on Trading mode. On Backtesting mode, FSB Pro uses   Minimum Lots = 0.01, Lot Step = 0.01 and Maximum Lots as per value of the current strategy. All trade amounts correspond to these parameters.

http://s29.postimg.org/j7akfejsj/screenshot_692.jpg

Re: Small bug in the percent entry units

I was thinking of DAX, a cfd priced at more than 8000 USD per unit. Min lot size is 1 unit as well. If I allocate 0,01 percent as entry units it would be enough to buy 5 USD of the asset. As 5 is lower than 8000, in my humble opinion FSB should buy zero units, not one smile

Yea.. it sounds strange smile However this is a specific case.
FSB Pro normalizes the values to prevent execution errors on trading.

Re: Small bug in the percent entry units

Hmm, I should stop spamming the thread. A moderator can decide to ban me smile

It is very easy to make FSB canceling orders when the requested trade amount is lower than Min Lots.
However, this will be a rather unexpected behavior since this logic is in the programs for many years.

I think is better to leave it as it is now.

Re: Small bug in the percent entry units

I finally decided that Nuno is right. It's more logical to cancel entry orders when the requested trade amount is lower than the Symbol's Min lots.

In order improve the compatibility, I added two parameters in The Control Panel => Symbols page: Min lots and Lot step.

http://s29.postimg.org/3zukv1rxv/screenshot_694.jpg

I'll publish an update this evening.

Re: Small bug in the percent entry units

Wonderful. It might protect some inexperienced traders too smile)
Cheers,
Nuno

Posts: 8

Pages 1

You must login or register to post a reply

Forex Forum → Forex Strategy Builder Professional → Small bug in the percent entry units

Similar topics in this forum


Generated in 0.017 seconds (71% PHP - 29% DB) with 11 queries