Profile Picture

Trade Execution - Live System

Posted By ywlee 3 Years Ago
Message
Posted Monday May 19 2014
Hi

Just started testing on a live system and need some clarification:

1/ Order rejected: Violates maximum number of open positions per symbol

My position manager setting is this: PositionManager.MaxOpenPositionsPerSymbol = 1;

I'm trading FX. There is only 1 position open ie USD/CAD. I get this error message for all other FX combinations eg NZD/USD, AUD/JPY, EUR/USD. Am I missing a setting?

THanks!
Posted Monday May 19 2014
Do you also have PositionManager.MaxOpenPositions set to anything? It can be set either in the system properties or in code.

Thanks,
Daniel
Posted Monday May 19 2014
Hi Daniel

Thanks for the reply.

If I wish to allow unlimited number of symbols to trade (subject to the max. Positions per symbol) what should I set the overall max.positions to in code?
Posted Monday May 19 2014
Set it to zero. It may be counter-intuitive but that means the setting is disabled. Smile

Thanks,
Daniel


Similar Topics


Reading This Topic


2005-2017 © RightEdge Systems