Hi!
How would I have to code a condition not to execute buy oders when there are more sell than buy orders?
Would there be a difference if the condition shall be not to stock up if there are more sell than buy orders?
Size:
Color:
QUOTE:
How would I have to code a condition not to execute buy oders when there are more sell than buy orders?
What is a sell order: is it an alert or a live/paper order?
Is this a long-only or a long+short system i.e. are "sell" signals "short" or "exit" signals?
Where exactly "there" are more sells than buys: in a single stock or on portfolio level?
Size:
Color:
QUOTE:
What is a sell order: is it an alert or a live/paper order?
alert
QUOTE:
Is this a long-only?
Yes, long-only
QUOTE:
Where exactly?
portfolio level
Size:
Color:
Size:
Color:
I'm sorry but I was not able to adopt from this. I'm still learning how to use C#. Could you help me with the code and provide it for me?
Size:
Color:
Here's quick and dirty code following that pattern. Execute in
single symbol mode:
CODE:
Please log in to see this code.
Disclaimer: I neither gave it much thought nor a serious test.
Size:
Color:
Thanks. Is it usable in multi symbol backtest too?
Size:
Color:
No, by design. It already acts as a quazi MSB.
Size:
Color:
How can I integrate that function into MSB?
Size:
Color:
Please let the forum know if you find a way.
Size:
Color: