Lot size based on a variable value?
-
hello
i am trying to use the value stored in variable as a lot size/order size.
will that be possible ?

all i want to do is to use a different lot size based on some calculations , the lot size needs to be keep changing thats why i am using a variable to store the result of the calculations in it and then use that variable as a lot size .
-
someone?
anyone?? -
I do it by putting it in this one http://icecream.me/b77103c999a8ffcbf1de8e09722895e0
-
@jennifer
Yes, this works, it can be either "fixed value" or "custom value" to my experience..
Remember to use visual backtest before trading real money -
@hadees
Thanks hadees really appreciate -
@roar
Of course I will test it to the fullest before putting in some real money,
Actually I thought it's not possible that's why I posted it here, I did try that but it didn't worked so now I am gonna try hadees's method
Let see what happens -
It should be possible. In any case, if something doesn't happen as expected, look at the logs for errors. Also note that the block will take the input value and turn it into the nearest possible value, because you can't open any lot size, there is minimum, maximum and lot step.
The type of the variable should be "double".
But I see your projects and I can see that now you are setting this value in the Init section... I don't think it can be very dynamic that way.
Are you woman?