Login Page - Create Account

Support Board


Date/Time: Sat, 04 May 2024 03:57:27 +0000



Post From: Negative numbers

[2018-09-28 22:56:03]
User701453 - Posts: 176
Thanks,
But I am internally tracking profit and lost per trade within my strat, not directly from the trading account.
In other words, I pull the last completed trade profit or lost from the trading account, do calculations for display and other things and store the data internally.

The Max profit or Loss set by an input by the user. The internally held P&L is compared to the input value. Above or below the max and strat stops trading.

This give the me the option to reset all the P&L values,within the strat by just disabling and re-enabling the strat.

If I use the current closed P&L for the account for the entire day, from the trading account.The strat will never be able to trade again for that session.

Sure I could set Max to some crazy high number,but that is not the requirement and defeats the underlying purpose.Would also destroy other coded options and features within the strat.

I have tried (OPL >= Max) and tried(OPL <= Max).
They both returns a True in ASCIL.
I must admit that I`m shocked that comparing negative numbers has never been addressed or encountered before in ASCIL.
Date Time Of Last Edit: 2018-09-28 23:19:00