Formula Help

Created at 15 May 2023, 18:06
How’s your experience with the cTrader Platform?
Your feedback is crucial to cTrader's development. Please take a few seconds to share your opinion and help us improve your trading experience. Thanks!
HO

Host

Joined 04.12.2022

Formula Help
15 May 2023, 18:06


This is for those who like challenges. As long as I can't solve it, I'll leave the topic open.

So, the question is this:
I suppose I have a goal of putting a robot to work for a period of one year. This robot is programmed to stop and close all trades if the account's margin level reaches 100%.
What formula could I use to know, in advance, if the robot would be, at any moment, closing the operation with a positive balance when reaching the 100% margin?

Remember if. It's difficult, but not impossible.


@Host
Replies

firemyst
16 May 2023, 05:46

You may have to be a bit more specific, because how do you know what prices levels of the assets you have will be in "advance" since that is used in determining the amount of margin you have?


@firemyst