Lol I was wondering why I needed the pass block for the comment to work also. I didn't know that they don't work with out a connection. Thanks for that
Best posts made by StantonHitz
-
RE: Equity into variableposted in Questions & Answers
-
RE: How to increase the "Base Volume" based on balance gain percentage?posted in Questions & Answers
I did something similar in my code. First you will need some inputs and variables

This means that for every $100 in my account that the bot will add 0,01 to it's lot size automatically.
Next we also need to set 2 variables

We will use these 4 values for our calculation.
Personally I think it's better to base lot size from the AccountEquity instead of from the AccountBalance because sometimes in my bot, the balance is way more than the equity and I don't want my bot to over invest in the market.OK so the net step I took was to calculate the lot divider variable using the inputs of $100 and 0.01 lots.

In this example, the lot divider is 10,000
So if my account has $200 in it.... 200/10000 = 0.02 so my trade size will be 0.02
I hope this helps?

My bot has a variable called Start_Equity. If you do not have this variable and you wish to use the current account balance or equity then the term to use in this block would be (AccountBalance) or (AccountEquity)
It's working perfectly like this in my bot.