First thing to try is tick the box for Readjust Stops when you launch your system. This will keep your Stoploss within the IG minimum distance, but not sure if it also adjusts for Stop Orders ??
If that doesn’t help then you’d have to post the code.
all my systems are still stopped but for a diffrent reason now : another order is trying to fill that order ( crapy swedish translate)
here is one of my shit systems for omxs30 1 min
IF c2 THEN
SELL AT MARKET
ENDIF
// Stops and targets
SET STOP pLOSS 200
SET TARGET pPROFIT 200
//%trailing stop function
trailingPercent = .45
stepPercent = .01
if onmarket then
trailingstart = tradeprice(1)*(trailingpercent/100) //trailing will start @trailingstart points profit
trailingstep = tradeprice(1)*(stepPercent/100) //% step to move the stoploss
endif
//reset the stoploss value
IF NOT ONMARKET THEN
newSL=0
ENDIF
//manage long positions
IF LONGONMARKET THEN
//first move (breakeven)
IF newSL=0 AND close-tradeprice(1)>=trailingstart THEN
newSL = tradeprice(1)+trailingstep
ENDIF
//next moves
IF newSL>0 AND close-newSL>trailingstep THEN
newSL = newSL+trailingstep
ENDIF
ENDIF
//manage short positions
IF SHORTONMARKET THEN
//first move (breakeven)
IF newSL=0 AND tradeprice(1)-close>=trailingstart THEN
newSL = tradeprice(1)-trailingstep
ENDIF
//next moves
IF newSL>0 AND newSL-close>trailingstep THEN
newSL = newSL-trailingstep
ENDIF
ENDIF
//stop order to exit the positions
IF newSL>0 THEN
SELL AT newSL STOP
EXITSHORT AT newSL STOP
ENDIF
//************************************************************************
also wounder if its possible to make it have a limit to say 10 positions at once. cant realy hold 60+ contracts at a time
another order is trying to fill that order
You must have lots of Systems with the same entry criteria and we cannot open 2 trades on the same instrument in the same direction at the same time of trade opening.
Usually what happens is that the System tries to open again a second later … up to 10 tries then the System is stopped.
have a limit to say 10 positions at once
Use below and you will stop at Position Size = 1 and this will also likely reduce lots of instances of the problem mentioned above.
https://www.prorealcode.com/documentation/cumulateorders/
aha okay, ye i got allot of the samesystem just trying diffrent stop/take profit models. but i still want it to get allot of trades but not to meny and not on the exact same signal/time
Im my opinion, it is best to develop a profitable System taking 1 trade only as this shows the System true worth?
Then increase position size as you wish.
Assuming you are testing on Demo, would you have the funds to support an eventual LIVE multi-position size System anyway? Or if you do have the funds, would you sleep at night with the risk of multi-position drawdown / Account blow-up??
yes i run them in demo currently, i want it to mimic my daytrading so going up and down in size is very important.
yes i have founds to support it but rn one of my system is around 370 contracts per day wich is a little high for me, maby down to 20 per day or something like that
It’s so hard for meaning. I advise just contact to a software development company. I hope you find a very professional team, high-quality code, and speed of project development.