Custom lot size as a function of price
-
Can we determine buy / sell lot size by price?
Higher price = smaller position.
Smaller price = larger position.Example:
Target size: 50
50 / 3,50 (price) = 14.29 LOT
50 / 0.40 (price) = 125 LOTClose price is fine, but bid/ask would be even better.
John.
-
I am not sure what you mean by price, the right of your chart is the price of the asset
-
@jstap Price of the asset.
-
I think you want to do this, in a formula block, 50 / candle 0 close (because it's the current price) save into a variable, put this into a comment and see if the returned value is relevant. You can use this variable in your buy/sell block as the lot, create a constant with 50 if you want to be able to change.
-
Sounds about right.
If I only knew how... -
-
Type is double (double is a number with a decimal like 0.154), and into the variable, the value is 0, this will put the formula result into the variable right click and add.
Add a shared link: Project screen - projects - create a shared link - open in web page - co[y and paste address bar here
This means people can see what you have done and advise on how to correct
-
-
Try this: https://fxdreema.com/shared/VpwR4kgnd
-
Didn't work but contained the clue to make it work.
-
THANKS!!! Very much appreciated!
-
@Johnster Any thing else just ask
