Account Starting Balance (lifetime)
-
How is it possible to get the lifetime starting balance for an account, if anyone can help would be great. I need to create a block that can pull the initial balance for an account - its because i use prop accounts so initial balances will change often.
If starting balance cannot be created via exisiting block or custom functions. Then is it possible to get PL so far from which starting BL can be calculated?
I understand that balance can be saved as variable but I am looking to create a custom block or any other idea that can automatically do this.
-
Don't think you can on fx, but on init you can check if a global variable exists, if not populate with balance, you would need to delete every time account changes, but that is just f3 to delete
-
I have already got global var balance. It works very well. I wanted to see if initial balance can be derived from block. If i forget to change the BL in global var, its a problem - and i have done this. But such a simple thing missing from fxdreema is unbelievabl Would there be any custom block that we can create to get that value?? anything should be possible with custom blocks dont you think, just that I dont know how
-
I don't know how to create, but is likely possible with creating a custom block. If you use MagicStart while creating then a new variable will be created using your bots magic number
-
@jstap said in Account Starting Balance (lifetime):
MagicStart
I never heard of MagicStart, could you please clarify what it means?
-
magic start is a MT function, it is the magic number used in an EA, on FX it can be called using MagicStart, in this link you will see how to use in for terminal variables: https://fxdreema.com/shared/gDKtX9Xxe
-
@jstap Ok thanks for this. So, it is supposed to save the current balance at start then keep it that way - which means that it needs to be loaded to an account that hasn't been traded. Am I right about it?
-
No, it is just the magic number, so if added to a new account, you would either need to change the magic number in the EA inputs, or delete the variable. But thinking about this you could set to work on account number, or both. I have added a new link, where I have moved all to on init (where it should have been before), you will see the 3 options on how to do this: https://fxdreema.com/shared/N5SCuW2lb