Navigator Trading System
Forums › ProRealTime English forum › ProOrder support › Navigator Trading System
- This topic has 151 replies, 37 voices, and was last updated 6 years ago by stockdemon.
-
-
05/04/2017 at 3:35 PM #34536
Hi again,
Found another quirky logic for which I’m not sure on the premise:
For the selling Short (or exiting long) side, we are setting stop losses and targets to stopLossShort and takeProfitShort REGARDLESS of whether we actually took a short trade or not. So in other words we might still be LONG on the market – we tested for contitions to go short but may not have actually placed a short trade – yet nevertheless we reset stop loss and targets to the short set of variables whilst we are still potentially in a long trade.
12345678910111213141516171819202122IF ( s1 AND Time = timeSell ) THEN// check monthly setup and max position sizeIF monthlyMultiplierShort < 0 THENIF (COUNTOFPOSITION + (positionSize * ABS(monthlyMultiplierShort))) <= maxPositionSizeShort THENSELLSHORT positionSize * ABS(monthlyMultiplierShort) CONTRACT AT MARKETENDIFELSIF monthlyMultiplierShort <> 0 THEN // this will never occurIF (COUNTOFPOSITION + positionSize) <= maxPositionSizeShort THEN//SELLSHORT positionSize CONTRACT AT MARKETENDIFELSIF monthlyMultiplierShort = 0 THENSELL AT MARKETENDIF// ****** THESE GET TRIGGERED REGARDLESS OF WHETHER WE ARE ACTUALLY LONG OR SHORT ON THE MARKET *****stopLoss = stopLoss<strong>Short</strong>takeProfit = takeProfit<strong>Short</strong>// NOTE: As per above logic we may not have actually gone short// ************************************* //ENDIF05/04/2017 at 3:45 PM #3453905/04/2017 at 3:47 PM #34540…and same goes for the long side – long stops and targets are set regardless of whether we actually look a long or not… ie we may actually be short at the time of setting the stops and targets to the long variables. If you stick a “graph countofShortShares” above the two lines that set the stops for the long you’ll see the conditions where we amended stops for the long side but were actually short and vice versa
1234567891011// for the long sidegraph countOfShortShares // should always be 0??stopLoss = stopLossLongtakeProfit = takeProfitLong// ...// and for the short sidegraph countOfLongShares // should always be 0?stopLoss = stopLossShorttakeProfit = takeProfitShort05/04/2017 at 3:54 PM #34543Obviously the results are very different with any amendments to any line. I’m unsure what the author intended. But obviously optimizations can be applied upon any form of quirk and still be profitable (or even more profitable) perhaps without realizing. But it’s important to understand the underlining premise and see if the conditional logic matches that premise.
05/04/2017 at 3:59 PM #3454505/16/2017 at 9:09 PM #35751Hallo Rainer,
da ich neu bin zuerst einmal herzlichen Dank für die genialen Strategien.
Bin gerade dabei Deinen Navigator Dax 4H zu testen … unfassbar …
Nur eine wichtige Frage … beim backtest in kleineren Einheiten = 100-1000,
frisst sich die Liquidität auf bzw. hat er extreme Abstürze … bei 200 Einheiten von 80.000€ auf unter 30.000€ … muss ich den SL irgendwie anpassen???
1000 Dank im Voraus
Dominik
05/19/2017 at 11:08 AM #36091Hey Dominik,
you are using the full Dax CFD Contract. Try the one 1 Euro Mini Contract 😉
05/20/2017 at 11:18 AM #3614805/20/2017 at 7:08 PM #3618006/02/2017 at 2:48 PM #37294Hi team,
I’m just discovering this trading strategy. And I would like to understand if this strategy is running live for someone? (I saw the discussion about backtests showing not so good results..)
I did not understand the last remarks from Maz..Do I need to change the V1 or V2 version before running it in my demo?
Thanks!
08/05/2017 at 12:26 PM #4250008/05/2017 at 1:15 PM #4250208/05/2017 at 2:07 PM #4250408/05/2017 at 8:42 PM #42514I used the V2 version and it seems to work. The problem is that the results are different from those posted by you. I used the Mini Dax and Micro Dax (5 and 1 euro). I still not understand. The V1 version continues to fail. I find a lot of difference between the “gain of the best trade” and the “loss of worst trade”.
Thanks
12/08/2017 at 1:29 PM #55108Good Morning,
I have been using the V2 version of the Navigator System in the demo account since March and the results do not correspond exactly with the backtest ones. Anyway, the drowndown of V2 is still very high.
I have modified some code parameters to reduce the drowndown and, although it only performs half of operations. I leave the code.
Is someone running it on a real account?
Best regards.123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179// Navigator DAX 4H V2 (5K)// Navigator Trading System based on ProRealTime 10.3// The algo based on the statistical advantage of the TDOM (trading day of the month) idea around the turn of the month// Version 2// Instrument: DAX mini 1 EUR, 4H, 9-17 CET, 1 point spread, account size 10.000 Euro// ProOrder code parameterDEFPARAM CUMULATEORDERS = true // cumulate orders// define TDOM daysONCE tradingDaySell = 20ONCE tradingDayBuy = 8// define intraday trading windowONCE timeSell = 090000ONCE timeBuy = 170000// define position and money management parameterONCE positionSize = 1ONCE maxPositionSizeLong = 4ONCE maxPositionSizeShort = 4ONCE minSizeLong = 1ONCE midSizeLong = 2ONCE maxSizeLong = 4ONCE maxSizeShort = -10ONCE stopLossLong = 8 // in %ONCE takeProfitLong = 3 // in %ONCE stopLossShort = 2 // in %ONCE takeProfitShort = 1.25 // in %ONCE maxCandlesLongWithProfit = 40ONCE maxCandlesShortWithProfit = 6ONCE maxCandlesLongWithoutProfit = 41ONCE maxCandlesShortWithoutProfit = 13// define position multiplier for each month (>0 - long / <0 - short / 0 - no trade)ONCE longJanuary = 0ONCE shortJanuary = maxSizeShortONCE longFebruary = 0ONCE shortFebruary = maxSizeShortONCE longMarch = maxSizeLongONCE shortMarch = 0ONCE longApril = minSizeLongONCE shortApril = 0ONCE longMay = minSizeLongONCE shortMay = maxSizeShortONCE longJune = minSizeLongONCE shortJune = 0ONCE longJuly = midSizeLongONCE shortJuly = maxSizeShortONCE longAugust = 0ONCE shortAugust = maxSizeShortONCE longSeptember = 0ONCE shortSeptember = maxSizeShortONCE longOctober = midSizeLongONCE shortOctober = maxSizeShortONCE longNovember = midSizeLongONCE shortNovember = maxSizeShortONCE longDecember = midSizeLongONCE shortDecember = maxSizeShort// calculate TDOMIF Month <> Month[1] THENtradingDay = 0ENDIFIF Time = 90000 THENIF CurrentDayOfWeek > 0 AND CurrentDayOfWeek < 6 THENtradingDay = tradingDay + 1ENDIFENDIF// set montly multiplierIF CurrentMonth = 1 THENmonthlyMultiplierLong = longJanuarymonthlyMultiplierShort = shortJanuaryELSIF CurrentMonth = 2 THENmonthlyMultiplierLong = longFebruarymonthlyMultiplierShort = shortFebruaryELSIF CurrentMonth = 3 THENmonthlyMultiplierLong = longMarchmonthlyMultiplierShort = shortMarchELSIF CurrentMonth = 4 THENmonthlyMultiplierLong = longAprilmonthlyMultiplierShort = shortAprilELSIF CurrentMonth = 5 THENmonthlyMultiplierLong = longMaymonthlyMultiplierShort = shortMayELSIF CurrentMonth = 6 THENmonthlyMultiplierLong = longJunemonthlyMultiplierShort = shortJuneELSIF CurrentMonth = 7 THENmonthlyMultiplierLong = longJulymonthlyMultiplierShort = shortJulyELSIF CurrentMonth = 8 THENmonthlyMultiplierLong = longAugustmonthlyMultiplierShort = shortAugustELSIF CurrentMonth = 9 THENmonthlyMultiplierLong = longSeptembermonthlyMultiplierShort = shortSeptemberELSIF CurrentMonth = 10 THENmonthlyMultiplierLong = longOctobermonthlyMultiplierShort = shortOctoberELSIF CurrentMonth = 11 THENmonthlyMultiplierLong = longNovembermonthlyMultiplierShort = shortNovemberELSIF CurrentMonth = 12 THENmonthlyMultiplierLong = longDecembermonthlyMultiplierShort = shortDecemberENDIF// all in if first day of month is Monday or ThuesdayIF tradingDay = tradingDayBuy AND ( CurrentDayOfWeek = 1 OR CurrentDayOfWeek = 2 ) THENmonthlyMultiplierLong = maxSizeLongENDIF// caculate current position profitposProfit = (((close - positionprice) * pointvalue) * countofposition) / pipsize// open long position with order cumulationl1 = tradingDay = tradingDayBuyl2 = tradingDay > tradingDayBuy AND posProfit < 0IF ( (l1 OR l2) AND Time = timeBuy) THEN// check monthly setup and max position sizeIF monthlyMultiplierLong > 0 THENIF (COUNTOFPOSITION + (positionSize * monthlyMultiplierLong)) <= maxPositionSizeLong THENBUY positionSize * monthlyMultiplierLong CONTRACT AT MARKETENDIFELSIF monthlyMultiplierLong <> 0 THENIF (COUNTOFPOSITION + positionSize) <= maxPositionSizeLong THENBUY positionSize CONTRACT AT MARKETENDIFENDIFstopLoss = stopLossLongtakeProfit = takeProfitLongENDIF// sell short if valid month or close position onlys1 = tradingDay = tradingDaySellIF ( s1 AND Time = timeSell ) THEN// check monthly setup and max position sizeIF monthlyMultiplierShort < 0 THENIF (COUNTOFPOSITION + (positionSize * ABS(monthlyMultiplierShort))) <= maxPositionSizeShort THENSELLSHORT positionSize * ABS(monthlyMultiplierShort) CONTRACT AT MARKETENDIFELSIF monthlyMultiplierShort <> 0 THENIF (COUNTOFPOSITION + positionSize) <= maxPositionSizeShort THENSELLSHORT positionSize CONTRACT AT MARKETENDIFELSIF monthlyMultiplierShort = 0 THENSELL AT MARKETENDIFstopLoss = stopLossShorttakeProfit = takeProfitShortENDIF// stop and profit managementnumberCandles = (BarIndex - TradeIndex)m1 = posProfit > 0 AND numberCandles >= maxCandlesLongWithProfitm2 = posProfit > 0 AND numberCandles >= maxCandlesShortWithProfitm3 = posProfit < 0 AND numberCandles >= maxCandlesLongWithoutProfitm4 = posProfit < 0 AND numberCandles >= maxCandlesShortWithoutProfit// take profit after max candlesIF LONGONMARKET AND (m1 OR m3) THENSELL AT MARKETENDIFIF SHORTONMARKET AND (m2 OR m4) THENEXITSHORT AT MARKETENDIFSET STOP %LOSS stopLossSET TARGET %PROFIT takeProfit -
AuthorPosts
Find exclusive trading pro-tools on