Amibroker Custom Back Test AFL code for Intraday Equity Portfolio Exit -- 4
Budget: $30 – $250 USD
1. Backtesting
a. If we are trading on the 100 equity stocks, once the reach the Portfolio Intraday PNL Limit(Sum of all trades PNL in the day)
i need to close all the trades and no trades for the rest of the day,
and required Param function for Portfolio Profit, Stop-loss and Trailing Stop-loss.
2. Exploration:
a. Param function for Max open position, First preference will be time value when signal is generated.
While exploring Nifty 100 stocks in live market, It needs to generate signal upto the max opens limit.
Ex. If I set the Max open as 5, The Number max open position will be 5 only, while exploring in live market and other signal to ignored.
a. If we are trading on the 100 equity stocks, once the reach the Portfolio Intraday PNL Limit(Sum of all trades PNL in the day)
i need to close all the trades and no trades for the rest of the day,
and required Param function for Portfolio Profit, Stop-loss and Trailing Stop-loss.
2. Exploration:
a. Param function for Max open position, First preference will be time value when signal is generated.
While exploring Nifty 100 stocks in live market, It needs to generate signal upto the max opens limit.
Ex. If I set the Max open as 5, The Number max open position will be 5 only, while exploring in live market and other signal to ignored.
Related categories:
Amibroker Formula Language