Forums › ProRealTime English forum › ProOrder support › Newbie type Questions & Answers › Reply To: Newbie type Questions & Answers
05/07/2020 at 3:22 PM
#130462
Hi had a really up and down month with the trading which took all my attention. Funnily enough I naturally gravitated to the DAX myself there was points when it treated me really well. I don’t need to upload the screenshot anymore I understand the spreads fine at the moment. I have built a list of different questions over the month that I thought i’d ask in one go I hope there’s not too many:
- Is there anyway to pin any other tabs to always be visible on the screen like with the file/ display/ trading etc tab. So basically just is there any way to pin other tabs as well?
Is there anyway to see the MAE and MFE of the trades you’ve executed? You can see them really easily when back testing but for some reason I can only find the drawdown figures of the trades i’ve actually executed. - How do you close all the previous back tests when you hit the back test limit. Even after I close everything it still doesn’t seem to load new backtests sometimes like I’ve hit the 10 back tests limit. Like is there a button or another automatic way to delete all of the currently open back tests?
- Also is there a way to stay out of a market only while it has a high spread. So basically a code or setting that says don’t enter the market unless the spread is 3 for instance?
- Is there a way to make bulk changes to strategies so for example categorising long and short strategies into two separate groups and giving them a weighting so like 60% of your strategies 60% have to be long and 40% short for example.
- There are some indicators that I have placed on the graph but I can’t seem to import into my strategies. So for example there’s an elastic volume weighted moving average indicator that I can display on charts but when I click add the indicator it won’t add it as a entry or exit trigger. Is there a way to add these indicators to your algorithms as entry/exit parameters?
- Also in pro order is there a way to edit the live strategies in pro order without deleting them and creating new ones? So for example at the moment just to adjust some stop losses I have to stop the strategies I want to adjust, make the edit, add the duplicate strategies to pro order and then add then start the new ones and with up to 100 strategies that would take forever. Alternatively is there a way to just pause the strategies and edit them in strategy coding section and then have the strategies I paused automatically be edited with the updated version?
- Also in pro back test even though I have a code that says only enter the market if the current open positions are under 2 it displays 6 positions on a one minute candle sometimes all with the same entry price and entry time. So does pro back test ignore the code and just present you with all the times your strategy would’ve triggered an entry or is there something wrong with my code so pro back test doesn’t know to limit the orders per entry to less then 2?
I’ve attached the code that I’m back testing with.
Code I Was Back Testing
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 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 |
// Definition of code parameters DEFPARAM CumulateOrders = True // Cumulating positions deactivated //take profit SET TARGET pPROFIT 50 //trailing stop function (make equal to absolute value when trailing stop and absolute value) IF CountOfPosition < 2 AND ONMARKET THEN TRSTART = 40 //trailing will start @trailinstart points profit TRSTEP = 10 //trailing step to move the "stoploss" ENDIF //reset the stoploss value IF NOT ONMARKET THEN SPLOSS = 0 ENDIF //manage long positions IF LONGONMARKET THEN //first move (breakeven) IF SPLOSS = 0 AND close-TradePrice(1)>=TRSTART THEN SPLOSS = TradePrice(1)+TRSTEP ENDIF //next moves IF SPLOSS > 0 AND close-SPLOSS>TRSTEP THEN SPLOSS = SPLOSS+TRSTEP ENDIF ENDIF //manage short positions IF SHORTONMARKET THEN //first move (breakeven) IF SPLOSS = 0 AND TradePrice(1)-close>=TRSTART THEN SPLOSS = TradePrice(1)-TRSTEP ENDIF //next moves IF SPLOSS> 0 AND SPLOSS-close>TRSTEP THEN SPLOSS = SPLOSS-TRSTEP ENDIF ENDIF //stop order to exit the positions IF SPLOSS > 0 THEN SELL AT SPLOSS STOP EXITSHORT AT SPLOSS STOP ENDIF //put the first stoploss IF ONMARKET AND SPLOSS = 0 THEN SET STOP pTRAILING TRSTART ENDIF // Conditions to enter long positions TIMEFRAME(15 minutes) indicator1 = MACDline[14,3,3](close) indicator2 = ExponentialAverage[3](MACDline[14,3,3](close)) c1 = (indicator1 > indicator2) indicator3 = AroonUp[14] indicator4 = AroonDown[14] c2 = (indicator3 > indicator4) indicator5 = AroonUp[14] indicator6 = AroonDown[14] c3 = (indicator5[1] > indicator6[1]) indicator7 = AroonUp[14] indicator8 = AroonDown[14] c4 = (indicator7[2] > indicator8[2]) indicator9 = AroonUp[14] indicator10 = AroonDown[14] c5 = (indicator9[3] > indicator10[3]) indicator11 = AroonUp[14] indicator12 = AroonDown[14] c6 = (indicator11[4] > indicator12[4]) indicator13 = AroonUp[14] indicator14 = AroonDown[14] c7 = (indicator13[5] > indicator14[5]) indicator15 = AroonUp[14] indicator16 = AroonDown[14] c8 = (indicator15[6] > indicator16[6]) indicator17 = AroonUp[14] indicator18 = AroonDown[14] c9 = (indicator17[7] > indicator18[7]) indicator19 = RSI[14](close) c10 = (indicator19 > 30) indicator20 = RSI[14](close) c11 = (indicator20[1] > 30) indicator21 = RSI[14](close) c12 = (indicator21[2] > 30) indicator22 = RSI[14](close) c13 = (indicator22[3] > 30) TIMEFRAME(1 minute) indicator23 = MACDline[14,3,3](close) indicator24 = ExponentialAverage[3](MACDline[14,3,3](close)) c14 = (indicator23 > indicator24) TIMEFRAME(15 minutes) IF c1 AND c2 AND c3 AND c4 AND c5 AND c6 AND c7 AND c8 AND c9 AND c10 AND c11 AND c12 AND c13 AND c14 THEN BUY 1 PERPOINT AT MARKET ENDIF // Conditions to exit long positions c15 = (open > open[1]) c16 = (open[1] > open[2]) c17 = (open[2] > open[3]) c18 = (open[3] > open[4]) c19 = (open[4] > open[5]) c20 = (open[5] > open[6]) indicator25 = AroonDown[14] indicator26 = AroonUp[14] c21 = (indicator25 > indicator26) indicator27 = AroonDown[14] indicator28 = AroonUp[14] c22 = (indicator27[1] > indicator28[1]) TIMEFRAME(1 minute) indicator29 = AroonDown[14] indicator30 = AroonUp[14] c23 = (indicator29 > indicator30) TIMEFRAME(15 minutes) IF c15 AND c16 AND c17 AND c18 AND c19 AND c20 AND c21 AND c22 AND c23 THEN SELL AT MARKET ENDIF |