SCALPING INDICATOR
Forums › ProRealTime English forum › ProOrder support › SCALPING INDICATOR
- This topic has 55 replies, 15 voices, and was last updated 6 years ago by ALE.
Tagged: scalping
-
-
12/16/2017 at 1:05 PM #55813
Hello guys We can discuss about the strategy here, we can help together to develop strategies on the Indicator ” SCALPING INDICATOR”. This is the indicator posted in the Library there :https://www.prorealcode.com/prorealtime-indicators/scalping-indicator-2/
Here below some example of the operation of the indicator.
12/16/2017 at 11:49 PM #55840Hello Here below a new version of Scalping Indicator
SCALPING INDICATOR3123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221// SCALPING DAX INIDCATOR, USABLE ON ANY TOOL, SET UP TIME FRAME 1 MINUTE.// PRC CONTRIBUTE_ ALE_15/12/2017DEFPARAM CALCULATEONLASTBARS=50000//WHB=6//WHS=6//BIB=6//BIS=6//PPKKS=0.994//PPKKB=0.994//RES=3//SUP=3//FUP=1000//FDW=2000//P01=1/0//P02=1/0//P03=1/0//P04=1/0//P05=1/0//P06=1/0//CLO= 1/0// GRAPHIC VARIABLESPIP = 1*Pipsize //ARROW DISTANCELIN = 10 //LENGTH OF SEGMENT OF SUPPORT OR RESISTENCERESISTENCE = RES*Pipsize //DISTANCE OF THE SEGMENT OF THE RESISTENCESUPPORT = SUP*Pipsize //DISTANCE OF THE SEGMENT OF THE SUPPORT// ENABLED PATTERN 1-0 / ON-OFFONCE PrEnabled01 = P01 // SWITCH INDICATOR P01,P02 ETC ..ONCE PrEnabled02 = P02ONCE PrEnabled03 = P03ONCE PrEnabled04 = P04ONCE PrEnabled05 = P05ONCE PrEnabled06 = P06ONCE TimeEnabled = CLO // FOR DAILY TIMEFRAME DISABLE TIMEWINDOW//////////////////////////////////////////////////////////////////////// MODIFIED UNIVERSAL OSCILLATOR 1whitenoiseB= (Close - Close[WHB])if barindex>BIB thena11= exp(-1.414 * 3.14159 / BIB)b11= 2*a11 * Cos(1.414*180 /BIB)c22= b11c33= -a11 * a11c11= 1 - c22 - c33filtB= c11 * (whitenoiseB + whitenoiseB[1])/2+ c22*filtB[1] + c33*filtB[1]filt11 = filtBif ABS(filt11)>pkB[1] thenpkB = ABS(filt11)elsepkB = PPKKS * pkB[1]endifif pkB=0 thendenomB = -1elsedenomB = pkBendifif denomB = -1 thenresultB = resultB[1]elseresultB = filt11/pkBendifendif// MODIFIED UNIVERSAL OSCILLATOR 2whitenoise= (Close - Close[WHS])if barindex>BIS then// super smoother filtera1= (-1.414 * 3.14159 / BIS)b1= 2*a1 * Cos(1.414*180 /BIS)c2= b1c3= -a1 * a1c1= 1 - c2 - c3filt= c1 * (whitenoise + whitenoise[1])/2+ c2*filt[1] + c3*filt[1]filt1 = filtif ABS(filt1)>pk[1] thenpk = ABS(filt1)elsepk = PPKKB * pk[1]endifif pk=0 thendenom = -1elsedenom = pkendifif denom = -1 thenresultS = resultS[1]elseresultS = filt1/pkendifendifIF BARINDEX>50 THEN//FORCEINDEX INDICATOR FILTERFi=FORCEINDEX(close)// TIME WINDOWTimeWindow= (TIME >=80000 and time <=210000)FilTime=(TimeWindow or not TimeEnabled)////////////////////////////////////////////////////////////////////////PATTERN UP 1PrUp01 = RESULTS[3]>RESULTS[2]PrUp01 = PrUp01 and RESULTS[2]< RESULTS[1]PrUp01 = PrUp01 and RESULTS[2]<=-1PrUp01 = (PrUp01 and PrEnabled01)//PATTERN DOWN 1PrDW01 = RESULTS[3]<RESULTS[2]PrDw01 = PrDw01 and RESULTS[2]> RESULTS[1]PrDw01 = PrDw01 and RESULTS[2]>=1PrDw01 = (PrDw01 and PrEnabled01)//PATTERN UP 2PrUp02 = resultS<=-0.95PrUp02 = PrUp02 and resultS[1]<=-1PrUp02 = (PrUp02 and PrEnabled02)//PATTERN DOWN 2PrDw02 = resultS>=0.95PrDw02 = PrDw02 and resultS[1]>=1PrDw02 = (PrDw02 and PrEnabled02)//PATTERN UP 3PrUp03 = close < openPrUp03 = PrUp03 and low < low[1]PrUp03 = PrUp03 and resultS<=-1PrUp03 = PrUp03 and Fi<-FDwPrUp03 = (PrUp03 and PrEnabled03)//PATTERN DOWN 3PrDW03 = close > openPrDw03 = PrDw03 and high > high[1]PrDw03 = PrDw03 and resultS>=1PrDw03 = PrDw03 and Fi>FUpPrDw03 = (PrDw03 and PrEnabled03)//PATTERN UP 4PrUp04 = resultS<=-0.95PrUp04 = PrUp04 and resultS[1]<=-1PrUp04 = PrUp04 and Fi<-FDwPrUp04 = (PrUp04 and PrEnabled04)//PATTERN DOWN 4PrDw04 = resultS>=0.95PrDw04 = PrDw04 and resultS[1]>=1PrDw04 = PrDw04 and Fi>FUpPrDw04 = (PrDw04 and PrEnabled04)//PATTERN UP 5PrUp05 = resultS<=-0.95PrUp05 = PrUp05 and Fi[1]<FiPrUp05 = PrUp05 and Fi[1]<-FDwPrUp05 = (PrUp05 and PrEnabled05)//PATTERN DOWN 5PrDw05 = resultS>=0.95PrDw05 = PrDw05 and Fi[1]>FiPrDw05 = PrDw05 and Fi[1]>FUpPrDw05 = (PrDw05 and PrEnabled05)//PATTERN UP 6PrUp06 = results <-0.5PrUp06 = PrUp06 and results crosses over resultbPrUp06 = (PrUp06 and PrEnabled06)//PATTERN DOWN 6PrDw06 = results >0.5PrDw06 = PrDw06 and results crosses under resultbPrDw06 = (PrDw06 and PrEnabled06)//////////////////////////////////////////////////////////////////////// COLORS OF THE ARROW AND SEGMENTIF PrUp01 THENR=0G=128B=255ELSIF PrUp02 THENR=0G=255B=128ELSIF PrUp03 THENR=255G=255B=102ELSIF PrUp04 THENR=255G=153B=255ELSIF PrUp05 THENR=242G=90B=161ELSIF PrDw01 THENR=0G=128B=255ELSIF PrDw02 THENR=0G=255B=128ELSIF PrDw03 THENR=255G=255B=102ELSIF PrDw04 THENR=255G=153B=255ELSIF PrDw05 THENR=242G=90B=161ELSIF PrDw06 THENR=200G=0B=161ENDIFIf Filtime thenif PrUp01 OR PrUp02 OR PrUp03 OR PrUp04 OR PrUp05 OR PrUp06 thenDRAWARROWUP(barindex,LOW-PIP)coloured(R,G,B)DRAWSEGMENT(barindex,LOW-SUPPORT,barindex-LIN, LOW-SUPPORT )coloured(R,G,B)elsif PrDw01 OR PrDw02 OR PrDw03 OR PrDw04 OR PrDw05 OR PrDw06 thenDRAWARROWDOWN(barindex,HIGH+PIP)coloured(R,G,B)DRAWSEGMENT(barindex,HIGH+RESISTENCE,barindex-LIN, HIGH+RESISTENCE)coloured(R,G,B)endifendifENDIFRETURN12/17/2017 at 2:11 PM #5586412/17/2017 at 4:13 PM #55875Not wanting to seem a little picky but is this discussion about an indicator not posted in the wrong forum? ProBuilder Support is surely the better place for it?
On a separate note are you able to give a little summary of the principles behind the indicator so others can more understand the logic behind the coding? There are an awful lot of variables!
12/17/2017 at 4:14 PM #5587612/17/2017 at 4:20 PM #55877Here below attached strategy files as example, DAX 4H
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183DEFPARAM CUMULATEORDERS = FALSE// INDICATOR'S VARIABLESONCE WHISEB = WHB //6ONCE WHISES = WHS //6ONCE BANDEDB = BIB //16ONCE BANDEDS = BIS //16ONCE PKKS = PPKKS //0.996ONCE PKKB = PPKKB //0.993// LONG AVERAGE FILTER ENTRYONCE avgEnterEnabled = AVGE // 0,1 ON-OFFONCE avgLongPeriod = AVGL // 200// PATTERN ENTRY SELECTIONONCE PrEnabled01 = P01 // 0,1 ON-OFFONCE PrEnabled06 = P06 // 0,1 ON-OFF// MANAGE POSITION PERFORMANCEONCE trailingStopType = TRT // 0,1 ON-OFFONCE trailingstoplong = TSL // 7ONCE trailingstopshort = TSS // 2ONCE minstop = MTP // 10ONCE barlong = BXL // 35ONCE barshort = BXS // 15ONCE timeStart = TIST // 080000ONCE timeEnd = TIEN // 220000ONCE TimeEnabled = OCLO // FOR DAILY TIMEFRAME DISABLE TIMEWINDOW 0/1//TAKE PROFIT AND STOP LOSSif longonmarket thentakeprofit =TPL // 1.3stoploss =SLL // 2.8ELSIF SHORTONMARKET THENtakeprofit =TPS // 0.7stoploss =SLS // 1.3ENDIF// MANAGE POSITION PERFORMANCE//----------------------------------------------atrtrail = AverageTrueRange[200]((close/10)*pipsize)/1000trailingstartl = round(atrtrail*trailingstoplong) //trailing stop start and distancetrailingstartS = round(atrtrail*trailingstopshort)if trailingStopType = TRT THEN // 1 TRAILING STOPTGL =trailingstartlTGS=trailingstartsif not onmarket thenMAXPRICE = 0MINPRICE = closePREZZOUSCITA = 0ENDIFif longonmarket thenMAXPRICE = MAX(MAXPRICE,close)if MAXPRICE-tradeprice(1)>=TGL*pointsize thenif MAXPRICE-tradeprice(1)>=MINSTOP thenPREZZOUSCITA = MAXPRICE-TGL*pointsizeELSEPREZZOUSCITA = MAXPRICE - MINSTOP*pointsizeENDIFENDIFENDIFif shortonmarket thenMINPRICE = MIN(MINPRICE,close)if tradeprice(1)-MINPRICE>=TGS*pointsize thenif tradeprice(1)-MINPRICE>=MINSTOP thenPREZZOUSCITA = MINPRICE+TGS*pointsizeELSEPREZZOUSCITA = MINPRICE + MINSTOP*pointsizeENDIFENDIFENDIFif onmarket and PREZZOUSCITA>0 thenEXITSHORT AT PREZZOUSCITA STOPSELL AT PREZZOUSCITA STOPENDIFENDIF// LONG AVERAGE FILTER ENTRYlongAvg = Average[avgLongPeriod] (close)avgFilterEnterLong = (close>longAvg OR NOT avgEnterEnabled)avgFilterEnterShort = (close<longAvg OR NOT avgEnterEnabled)//////////////////////////////////////////////////////////////////////// MODIFIED UNIVERSAL OSCILLATOR 1whitenoiseB= (Close - Close[WHISEB])if barindex>BANDEDS thena11= exp(-1.414 * 3.14159 / BANDEDS)b11= 2*a11 * Cos(1.414*180 /BANDEDS)c22= b11c33= -a11 * a11c11= 1 - c22 - c33filtB= c11 * (whitenoiseB + whitenoiseB[1])/2+ c22*filtB[1] + c33*filtB[1]filt11 = filtBif ABS(filt11)>pkB[1] thenpkB = ABS(filt11)elsepkB = PKKS * pkB[1]endifif pkB=0 thendenomB = -1elsedenomB = pkBendifif denomB = -1 thenresultB = resultB[1]elseresultB = filt11/pkBendifendif// MODIFIED UNIVERSAL OSCILLATOR 2whitenoise= (Close - Close[WHISES])if barindex>BANDEDB then// super smoother filtera1= (-1.414 * 3.14159 / BANDEDB)b1= 2*a1 * Cos(1.414*180 /BANDEDB)c2= b1c3= -a1 * a1c1= 1 - c2 - c3filt= c1 * (whitenoise + whitenoise[1])/2+ c2*filt[1] + c3*filt[1]filt1 = filtif ABS(filt1)>pk[1] thenpk = ABS(filt1)elsepk = PKKB * pk[1]endifif pk=0 thendenom = -1elsedenom = pkendifif denom = -1 thenresultS = resultS[1]elseresultS = filt1/pkendifendif//////////////////////////////////////////////////////////////////////If barindex>1000 then//PATTERN UP 1PrUp01 = RESULTS[3]>RESULTS[2]PrUp01 = PrUp01 and RESULTS[2]< RESULTS[1]PrUp01 = PrUp01 and RESULTS[2]<=-1PrUp01 = (PrUp01 and PrEnabled01)//PATTERN DOWN 1PrDW01 = RESULTS[3]<RESULTS[2]PrDw01 = PrDw01 and RESULTS[2]> RESULTS[1]PrDw01 = PrDw01 and RESULTS[2]>=1PrDw01 = (PrDw01 and PrEnabled01)//PATTERN UP 6PrUp06 = results <-0.5PrUp06 = PrUp06 and results crosses over resultbPrUp06 = (PrUp06 and PrEnabled06)//PATTERN DOWN 6PrDw06 = results >0.5PrDw06 = PrDw06 and results crosses under resultbPrDw06 = (PrDw06 and PrEnabled06)endif//////////////////////////////////////////////////////////////////////// // PATTERN ENTRY SELECTION// TIME WINDOWTimeWindow= (TIME >=TimeStart and time <=TimeEnd)FilTime=(TimeWindow or not TimeEnabled)If Filtime thenIF not shortonmarket and avgFilterEnterLong AND PrUp01 or PrUp06 THENBUY 1 CONTRACT AT MARKETENDIFIF not longonmarket and avgFilterEnterShort AND PrDw01 or PrDw06 THENSELLSHORT 1 CONTRACT AT MARKETENDIFENDIF// MANAGE POSITION PERFORMANCEIF POSITIONPERF<0 THENIF LongOnMarket AND BARINDEX-TRADEINDEX(1)>= barLong THENSELL AT MARKETENDIFENDIFIF POSITIONPERF<0 THENIF shortOnMarket AND BARINDEX-TRADEINDEX(1)>= barshort THENEXITSHORT AT MARKETENDIFENDIF// MANAGE POSITION PERFORMANCESET STOP %LOSS stoplossSET TARGET %PROFIT Takeprofit//ENDIFGRAPH TGL12/17/2017 at 4:25 PM #5588012/17/2017 at 4:31 PM #5588112/17/2017 at 4:31 PM #5588212/17/2017 at 4:42 PM #55884this indicator is born for time low frame, but for the automatic strategies I dissuade him/it, because the probacktests would not be truthful. The data of IG don’t allow this.
Could be used by Scalping trader that are abled with low timeframe.
12/17/2017 at 4:52 PM #55885I have downloaded your ITF file for the v3 indicator and applied it to a DAX 1 minute chart but it draws nothing on the chart. I notice that your adjustable variables are set differently to those shown // in the code so tried them – but still nothing on the chart. Any ideas why I am getting nothing?
12/17/2017 at 4:53 PM #5588612/17/2017 at 7:21 PM #55896OK – so are you saying it is either P01 = TRUE or P02 = TRUE or P03 = TRUE etc etc? You exported the ITF with everything set to TRUE as a default. It has to load (very slowly) with this the first time (as it is impossible to edit an indicator before it has been added at least once) before anyone can set only one P0 to TRUE and then have to load it all again (very slowly).
12/17/2017 at 9:41 PM #5590512/18/2017 at 4:22 PM #55994 -
AuthorPosts
Find exclusive trading pro-tools on