Hi, I am testing RE and I am stuck not knowing how to implement the following:
1. MySymbolScript Class: NewBar() runs for every selected symbol in the watchlist (with the same timestamp, i.e. EOD-Date). I do not want to execute Buy/Sell signals immediately but store them in a list, because...
2....after this (in System class) I want to check whether enough cash is available to carry out all buy signals of this NewBar()-run (or to create further buys if the investment ratio of equities in the portfolio gets too low by generated sell signals). If there is not enough cash available I want to filter the given signals and then open positions only for the symbols that are ranked best e.g. by an indicator.
Is there any way to find out when NewBar()-runs for a given timestamp have finished so that then I can oversee all generated Signals and select from there which one to create an order for?
I am not really an experienced programmer so if you have a code snippet in C# for me it would be great!