Dynamic Lot size - Code needed

 

Hello!

I'm a newbie on trading.

I'm trying to develop an EA, using the online free EA Builder.

I can't seem to make lots size work dynamically. There is a variable in my EA that's the difference between D+ an D- of ADX indicator. I would like to set my EA in such a way that the bigger this variable would be, the larger lot size would be opened. For example, if the variable was 7, the lot size would be 0.1; if the variable was 8, the lot size would be 0.2; and so on.

Can you halp me with this? Is there a simple way to code this?

Thanks in advance!

:)