fxDreema

    • Register
    • Login
    • Search
    • Back to the main page
    • Categories
    • Recent
    • Tags
    • Popular
    • Search
    1. Home
    2. StantonHitz
    3. Best
    S
    • Profile
    • Following 0
    • Followers 2
    • Topics 5
    • Posts 37
    • Best 2
    • Controversial 0
    • Groups 0

    Best posts made by StantonHitz

    • RE: Equity into variable

      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

      posted in Questions & Answers
      S
      StantonHitz
    • RE: How to increase the "Base Volume" based on balance gain percentage?

      I did something similar in my code. First you will need some inputs and variables
      0_1593218341482_458d4274-37b2-43b7-b49e-ef44f98056d7-image.png
      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
      0_1593218423357_e0896475-f230-496f-a950-ba496f29fa9a-image.png

      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.

      0_1593218608035_ec143a26-7514-4ba3-bf22-afd78a596186-image.png

      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?
      0_1593218792511_e58ee7e4-c415-4c0f-892a-86423d7a5363-image.png

      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.

      posted in Questions & Answers
      S
      StantonHitz
    • 1 / 1