__Well if u have a better way to do it, what are u waiting for to tell me taht way??
I need that function because all the trades have to risk the same amount of the balance i.e. 2% have to be used for each trade on 13 different pairs... but wait.. im thinking.. may be i can sue the function of buy now block that says"% of Balance" if that is correct... what a way to complicate things hahah[/quote:1d7bphad]
That was what I wanted to say. There are few MM models already build in trading blocks. But even if you don't like some, you can select Fixed and put some formula in the input field. For example, I was using something like this in one project that I tried: AccountBalance()*0.3/10000.
AccountBalance() = the current balance
AccountEquity() = the current equity
Those are also available if you select them as "Custom value". Then you can use "Adjust" to adjust the value if needed....
I don't know what exactly to show you because in your example you are mixing price value (Ask, Bid) with money, which is a little bit... deep water.