shut down by itself because of insufficient funds
Forums › ProRealTime English forum › ProOrder support › shut down by itself because of insufficient funds
- This topic has 7 replies, 3 voices, and was last updated 5 years ago by
J..
-
-
01/13/2020 at 12:27 PM #116621
So I was forward testing a trading strategy on my demo account. But this morning I saw that unfortunately it shut down by itself because of insufficient funds while trying to go short, even though it was long on market.
I was in multiple long positions and they were in profit, but the cash I had available wasn’t enough to open a short position. However, I expected it to first close my long positions and THEN open the short position. Because closing the long positions would have freed cash from my account again to open the short position.
This is very annoying and now I have to start over my forward testing.
So now I want to put this in my code:
1234567IF SHORTCONDITION THENIF LONGONMARKET THENSELL AT MARKETENDIFSELLSHORT AMOUNT CONTRACT AT MARKETENDIFWill this close all my long positions before going short and thus freeing up funds to go short?
Thank you in advance.
01/13/2020 at 12:42 PM #11662301/13/2020 at 12:56 PM #116626If your on IG.com you can bump the demo balance from the original to give you plenty of margin for testing
01/13/2020 at 12:59 PM #11662801/13/2020 at 1:02 PM #116629Thanks Robo Futures Trader, but I want my forward test to have the same amount of starting capital in comparison to what I’d trade it with on a live account, so it will give me the best representation of how it would have performed in real life.
01/13/2020 at 1:07 PM #116630Hi @J.
if you are out of funds when flipping from one direction to the other then perhaps this is not the size to be trading at, the margin requirements aren’t usually that high so if you stopped on trying to open two positions it sounds like you would be pretty wedded to the performance of one strategy and its drawdowns. Can you reduce the size so that you can diversify a bit and try to hedge some of the risk?
01/13/2020 at 1:11 PM #116635I don’t know if you have seen this but if you put a value for the position size into PRT directly the minimum Qty is 1, however if you say “Buy positionsize shares at market” and have a position size variable = X then you can use the smallest amount your broker allows so 0.5 on Dax 0.2 on Wall Street for me with Ig.com
This can let you use your capital more efficiently if it is limited
1 user thanked author for this post.
01/13/2020 at 1:48 PM #116641Robo Futures Trader, so this strategy is very risky and I’ll only use it after at least 6 months of forward testing and only with money I won from trading. I won’t have to take money out of my trading account, because I don’t have to live of this fortunately.
-
AuthorPosts
Find exclusive trading pro-tools on