Forums › ProRealTime English forum › ProOrder support › Division by zero ERROR › Reply To: Division by zero ERROR
06/08/2020 at 8:08 PM
#135237
I have cleaned up the code now, and now it gives me a new error; “The trading system was stopped because it encountered an error. please send us a report to enable us to analyze the error….
this is the code wich gave the error
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 |
// ALLEMAGNE 30 DEFPARAM CumulateOrders = False TIMEFRAME (60 MINUTES, UPDATEONCLOSE) c7 = Average[50] > Average[50][1] TIMEFRAME (10 MINUTES, UPDATEONCLOSE) indicator11 = Stochastic[14,3](close) c14 = (indicator11 > 95) TIMEFRAME (Default) // Donchian V = 23 DonchianInfV = lowest[V](low) indicator1, ignored, ignored, ignored, ignored, ignored, ignored = CALL "VWAP BAND SOM FUNKAR" c2 = close crosses under DonchianInfV[1] c1 = (close > indicator1) IF c1 and c2 and c7 THEN buy 1 shares at market ENDIF set stop $loss 90 IF longonmarket and C14 THEN sell at market endif |