almost all of my systems wont take trades after 12 oct, but when i backtest they do… what can problem be?
Rejected orders?
Hired systems with an expiration date?
no, no rejected orders on this system for ex
//-------------------------------------------------------------------------
// Main code : 10 second DAX martigale
//-------------------------------------------------------------------------
//-------------------------------------------------------------------------
// Codice principale : nn si sa m.a. colorata bull
//-------------------------------------------------------------------------
//SPEAD = 2.5
//Capital = £500
//Trading hours from DAX open until NYSE close. No after hours trading.
//Time is UTC +2 (South Afica time)
DEFPARAM CumulateOrders = false // Cumulating positions deactivated
ONCE positionSize = 1
IF StrategyProfit < StrategyProfit[1] THEN
positionSize = positionSize +1
ELSIF StrategyProfit > StrategyProfit[1] THEN
positionsize = 1
endif
a=average[5] (close)
if a[1]<a then
alex=100
endif
if a[1] > a then
alex=50
endif
// Prevents the system from creating new orders to enter the market or increase position size before the specified time
noEntryBeforeTime = 090000
timeEnterBefore = time >= noEntryBeforeTime
// Prevents the system from placing new orders to enter the market or increase position size after the specified time
noEntryAfterTime = 173000
timeEnterAfter = time < noEntryAfterTime
// Conditions to enter long positions
indicator1 = WeightedAverage[46](totalPrice)
c1 = (High CROSSES OVER indicator1)
indicator2 = WeightedAverage[6](totalPrice)
c2 = (low CROSSES OVER indicator2)
IF (c1 AND c2) AND timeEnterBefore AND timeEnterAfter and COUNTOFPOSITION=0 and alex=100 THEN
Buy positionsize contract at market
ENDIF
indicator3 = WeightedAverage[46](totalPrice)
c3 = (low CROSSES UNDER indicator3)
indicator4 = WeightedAverage[6](totalPrice)
c4 = (High CROSSES UNDER indicator4)
IF (c3 AND c4) AND timeEnterBefore AND timeEnterAfter and COUNTOFPOSITION=0 and alex=50 THEN
SellShort positionsize CONTRACT AT MARKET
ENDIF
// Stops and targets
SET TARGET pPROFIT 20
SET STOP pLOSS 80
here is another one, also copyed the exact code to verify the running version is the same as backtest
Be good to see the equity curve for the ProOrder AutoTrading for the whole of 2020 up to today.
I had the same problem. Had to restart 3 systems (out of 25) after they all stopped trading in demo after 9th of October for no apparent reason.
Hello,
Positionsize is too big in relation to your capital?
Personally I don’t use MM in demo and the systems that “froze” had only been running for maximum a few weeks. They work fine after the restart and hopefully it was a one time error.
Not enough free margin if you have other systems running? No error in the broker’s logs?
nah, its running on demo, have 10 million, positionsize is 1 contract only. On all systems i run
ok, might be an IG demo servers issues, I’m not aware of what happened. You should stop and restart the systems if you don’t have yet.
read on another thread that guaranteed stops could mess with it, but none of the systems uses guaranteed stops. Ill try to restart them 🙂
can it be that max number of orders was on 50? Changed to 999 to see if it works better 🙂
If the system wall still running (green light), then this is not that option that cause the “no trade”.