Tuesday Turnaround – strategy for INDEXES-1h
Forums › ProRealTime English forum › ProOrder support › Tuesday Turnaround – strategy for INDEXES-1h
- This topic has 2 replies, 2 voices, and was last updated 5 years ago by
TempusFugit.
Viewing 3 posts - 1 through 3 (of 3 total)
-
-
10/26/2020 at 10:23 AM #148290
This is a simple idea I read about in internet. It seems to get moderate good results in most of indexes. It entries only long on tuesday if monday has been negative. I added the posibility to entry wednesday with both monday and tuesday negatives.
Please take into consideration:
- *****VERY IMPORTANT****: It goes WITHOUT STOPLOSS, you can define it with the variable STOPPERCENT that probably dependes of each index. As the system exit always at the end of day so it´s not so dangerous but still….
- Without defined spread as it depends also of the index
- The position size is determined by the varible “Capital”, that is the amount you want in each operation. This PositionSize can be modified by other parameters.
- My timezone is UTC+0 so it can be differences with my results depending of yor TZ
I think this system benefits from the last years index uptrends and maybe this is not so good moment to operate but anyway I think is interesting to consider
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778// ***********PARAMETROS SISTEMA***************DEFPARAM CUMULATEORDERS= falseDEFPARAM PRELOADBARS = 10000// ***************VARIABLES*******************CAPITAL = 10000 //Valor en euros de cada operaciónSTOPPERCENT = 999999PROFITPERCENT = 4TRAILINGPERCENT = 4//***********TAMAÑO POSICION*******************Rate = 1 //Cambio de 1€ en la moneda del activo. En Forex es la segunda divisaPositionSize = (Capital*Rate*pointsize)/(close*pointvalue)POSITIONSIZE2 = POSITIONSIZE////PASARLO A REDUCCION?XPREVDAY1 = 1.4XPREVDAY2 = 1.2XBOLL1 = 1.2XBOLL2 = 1.1IF DCLOSE(1)-DOPEN(1)<-1*CLOSE/100 THENPOSITIONSIZE = POSITIONSIZE*XPREVDAY1POSITIONSIZE2 = POSITIONSIZE2*XPREVDAY2ELSIF DCLOSE(1)-DOPEN(1)<-0.5*CLOSE/100 THENPOSITIONSIZE = POSITIONSIZE*XPREVDAY2ENDIFIF BollingerBandWidth[20](close)>0.024 THENPOSITIONSIZE = POSITIONSIZE*XBOLL1POSITIONSIZE2 = POSITIONSIZE2*XBOLL1ELSIF BollingerBandWidth[20](close)>0.012 THENPOSITIONSIZE = POSITIONSIZE*XBOLL2POSITIONSIZE2 = POSITIONSIZE2*XBOLL2ENDIF//************ENTRADAS Y SALIDAS***************LONGENTRY = DAYOFWEEK=2LONGENTRY = LONGENTRY AND HOUR=1LONGENTRY = LONGENTRY AND DCLOSE(1)-DOPEN(1)<-0.1*CLOSE/100// AND DCLOSE(2)-DOPEN(2)<0//LONGENTRY = LONGENTRY AND BARINDEX-TRADEINDEX>20LONGENTRY2 = DAYOFWEEK=3LONGENTRY2 = LONGENTRY2 AND HOUR=1LONGENTRY2 = LONGENTRY2 AND DCLOSE(1)-DOPEN(1)<-0.5*CLOSE/100 AND DCLOSE(2)-DOPEN(2)<-0.1*CLOSE/100//LONGENTRY = LONGENTRY AND BARINDEX-TRADEINDEX>20IF LONGENTRY THENBUY PositionSize CONTRACTS AT MARKETELSIF LONGENTRY2 THENBUY PositionSize2 CONTRACTS AT MARKETENDIFIF ONMARKET AND HOUR>=20 THENSELL AT MARKETENDIFSET STOP %LOSS STOPPERCENTSET TARGET %PROFIT PROFITPERCENT////*****************TRAILING STOP FUNCTION**************************trailingstartLONG = TRAILINGPERCENT*CLOSE/100//Si se ponen puntos poner *pointsize//When the trailing stop starts and the distance the stop keeps from the last higher/lower close//reset the stoploss valueIF NOT ONMARKET THENnewSL=0ENDIF//manage long positionsIF LONGONMARKET THEN//first move (breakeven)IF newSL=0 AND close-tradeprice(1)>=trailingstartLONG THENnewSL = tradeprice(1)ELSIF newSL>0 AND close-newSL>=trailingstartLONG THENnewSL = close-trailingstartLONGENDIFENDIF//stop order to exit the positionsIF newSL>0 THENSELL AT newSL STOPENDIF////************************************************************************10/26/2020 at 8:59 PM #148584good week to test your idea – big Monday losses!
10/26/2020 at 9:09 PM #148586Yes, I thought the same 🙂
-
AuthorPosts
Viewing 3 posts - 1 through 3 (of 3 total)
Find exclusive trading pro-tools on
Similar topics: