points pivots future coversion code prt vers mq4
Forums › ProRealTime forum Français › Support ProBuilder › points pivots future coversion code prt vers mq4
- This topic has 1 reply, 2 voices, and was last updated 4 years ago by JC_Bywan.
-
-
12/20/2020 at 2:12 PM #154589
Bonjour , tout d’abord merci pour votre travail. Je voulais savoir si vous pouviez transformer un code prorealtime vers mq4 ? voici le code en question .Il s’agit d’ un code qui affiche les points pivots future très précis sur un graphique cfd pour le dax .
CODE : #
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351REM PP Futures sur graphiques cfd à risque limité à risque limité futures (v.3)REM Diff= cfd à risque limité à risque limité cash - cfd à risque limité à risque limité futures = 0REM Attention à bien prendre le contrat future le plus liquide (= échance la plus proche) et en lot plein. Attention aussi à bien roller !defparam drawonlastbaronly = true///////////////////////////////////// VARIABLES /////////////////////////////////////////// DAXif close>9000 and close<15000 thendiff=9.9HighJ=11853LowJ=11662SettlementJ=11670// CashCloseJ yes but no merciHighH=11900LowH=11435SettlementH=11670HighM=12650LowM=12036SettlementM=12184.5// décalage vertical texte/lignes horizontalesVoffset=2*pointsizeendif////////////////////////////////////// CALCULS //////////////////////////////////////////// POINTS PIVOTS JOURNALIERSPPJ = (HighJ + LowJ + SettlementJ) / 3R3J = HighJ + 2 * (PPJ - LowJ)R2J = PPJ + (HighJ - LowJ)R1J = (2 * PPJ) - LowJS1J = (2 * PPJ) - HighJS2J = PPJ - (HighJ - LowJ)S3J = LowJ - 2 * (HighJ - PPJ)HighJ=HighJ + DiffLowJ=LowJ + DiffSettlementJ = SettlementJ + DiffPPJ = PPJ + DiffR3J = R3J + DiffR2J = R2J + DiffR1J = R1J + DiffS1J = S1J + DiffS2J = S2J + DiffS3J = S3J + Diff//midR3J = (R2J + R3J) / 2//midR2J = (R1J + R2J) / 2//midR1J = (PPJ + R1J) / 2//midS1J = (PPJ + S1J) / 2//midS2J = (S1J + S2J) / 2//midS3J = (S2J + S3J) / 2// POINTS PIVOTS HEBDOPPH = (HighH + LowH + SettlementH) / 3R3H = HighH + 2 * (PPH - LowH)R2H = PPH + (HighH - LowH)R1H = (2 * PPH) - LowHS1H = (2 * PPH) - HighHS2H = PPH - (HighH - LowH)S3H = LowH - 2 * (HighH - PPH)HighH=HighH + DiffLowH=LowH + DiffSettlementH = SettlementH + DiffPPH = PPH + DiffR3H = R3H + DiffR2H = R2H + DiffR1H = R1H + DiffS1H = S1H + DiffS2H = S2H + DiffS3H = S3H + DiffmidR3H = (R2H + R3H) / 2midR2H = (R1H + R2H) / 2midR1H = (PPH + R1H) / 2midS1H = (PPH + S1H) / 2midS2H = (S1H + S2H) / 2midS3H = (S2H + S3H) / 2// POINTS PIVOTS MENSUELSPPM = (HighM + LowM + SettlementM) / 3R3M = HighM + 2 * (PPM - LowM)R2M = PPM + (HighM - LowM)R1M = (2 * PPM) - LowMS1M = (2 * PPM) - HighMS2M = PPM - (HighM - LowM)S3M = LowM - 2 * (HighM - PPM)HighM=HighM + DiffLowM=LowM + DiffSettlementM = SettlementM + DiffPPM = PPM + DiffR3M = R3M + DiffR2M = R2M + DiffR1M = R1M + DiffS1M = S1M + DiffS2M = S2M + DiffS3M = S3M + DiffmidR3M = (R2M + R3M) / 2midR2M = (R1M + R2M) / 2midR1M = (PPM + R1M) / 2midS1M = (PPM + S1M) / 2midS2M = (S1M + S2M) / 2midS3M = (S2M + S3M) / 2///////////////////////////////////// AFFICHAGE TEXTE ///////////////////////////////////////////DRAWTEXT(" Haut (J, Pré)",barindex,HighJ+Voffset,SansSerif,Bold)coloured(102,102,102)DRAWTEXT(" Bas (J, Pré)",barindex,LowJ+Voffset+3,SansSerif)coloured(102,102,102)DRAWTEXT(" Haut (H, Pré)",barindex,HighH+Voffset+3,SansSerif,Bold)coloured(102,102,102)DRAWTEXT(" Bas H",barindex,LowH+Voffset+3,SansSerif,Bold)coloured(102,102,102)DRAWTEXT(" Haut M",barindex,HighM+Voffset+3,SansSerif,Bold)coloured(102,102,102)DRAWTEXT(" Bas M",barindex,LowM+Voffset+3,SansSerif,Bold)coloured(102,102,102)DRAWTEXT(" Clo (J, Pré)",barindex,SettlementJ+Voffset+3,SansSerif)coloured(102,102,102)//DRAWTEXT("Clo (H, Pré)",barindex-25,SettlementH+Voffset,SansSerif,Bold)coloured(102,102,102)//DRAWTEXT("Clo (M, Pré)",barindex-25,SettlementM+Voffset,SansSerif,Bold)coloured(102,102,102)DRAWTEXT(" Piv J",barindex,PPJ+Voffset + 3,SansSerif,Standard,10)coloured(18, 18, 255)DRAWTEXT(" Piv H",barindex,PPH+Voffset+3,SansSerif,Bold,12)coloured(18, 18, 255)DRAWTEXT(" Piv M",barindex,PPM+Voffset+3,SansSerif,Bold,12)coloured(18, 18, 255)DRAWTEXT(" R3J",barindex,R3J+Voffset+3,SansSerif)coloured(255, 0, 0)DRAWTEXT(" R2J",barindex,R2J+Voffset+3,SansSerif)coloured(255, 0, 0)DRAWTEXT(" R1J",barindex,R1J+Voffset+3,SansSerif)coloured(255, 0, 0)DRAWTEXT(" S1J",barindex,S1J+Voffset+3,SansSerif)coloured(0, 128, 0)DRAWTEXT(" S2J",barindex,S2J+Voffset+3,SansSerif)coloured(0, 128, 0)DRAWTEXT(" S3J",barindex,S3J+Voffset+3,SansSerif)coloured(0, 128, 0)DRAWTEXT(" R3H",barindex,R3H+Voffset+3,SansSerif,Bold,11)coloured(255, 0, 0)DRAWTEXT(" R2H",barindex,R2H+Voffset+3,SansSerif,Bold,11)coloured(255, 0, 0)DRAWTEXT(" R1H",barindex,R1H+Voffset+3,SansSerif,Bold,11)coloured(255, 0, 0)DRAWTEXT(" S1H",barindex,S1H+Voffset+3,SansSerif,Bold,11)coloured(0, 128, 0)DRAWTEXT(" S2H",barindex,S2H+Voffset+3,SansSerif,Bold,11)coloured(0, 128, 0)DRAWTEXT(" S3H",barindex,S3H+Voffset+3,SansSerif,Bold,11)coloured(0, 128, 0)DRAWTEXT(" R3M",barindex,R3M+Voffset+3,SansSerif,Bold,12)coloured(255, 0, 0)DRAWTEXT(" R2M",barindex,R2M+Voffset+3,SansSerif,Bold,12)coloured(255, 0, 0)DRAWTEXT(" R1M",barindex,R1M+Voffset+3,SansSerif,Bold,12)coloured(255, 0, 0)DRAWTEXT(" S1M",barindex,S1M+Voffset+3,SansSerif,Bold,12)coloured(0, 128, 0)DRAWTEXT(" S2M",barindex,S2M+Voffset+3,SansSerif,Bold,12)coloured(0, 128, 0)DRAWTEXT(" S3M",barindex,S3M+Voffset,SansSerif,Bold)coloured(0, 128, 0)//DRAWTEXT(" mR3 J",barindex,midR3J+Voffset,SansSerif,Bold)coloured(255, 0, 0)//DRAWTEXT(" mR2 J",barindex,midR2J+Voffset,SansSerif,Bold)coloured(255, 0, 0)//DRAWTEXT(" mR1 J",barindex,midR1J+Voffset,SansSerif,Bold)coloured(255, 0, 0)//DRAWTEXT(" mS1 J",barindex,midS1J+Voffset,SansSerif,Bold)coloured(0, 128, 0)//DRAWTEXT(" mS2 J",barindex,midS2J+Voffset,SansSerif,Bold)coloured(0, 128, 0)//DRAWTEXT(" mS3 J",barindex,midS3J+Voffset,SansSerif,Bold)coloured(0, 128, 0)DRAWTEXT(" mR3 H",barindex,midR3H+Voffset+3,SansSerif,Bold,11)coloured(255, 0, 0)DRAWTEXT(" mR2 H",barindex,midR2H+Voffset+3,SansSerif,Bold,11)coloured(255, 0, 0)DRAWTEXT(" mR1 H",barindex,midR1H+Voffset+3,SansSerif,Bold,11)coloured(255, 0, 0)DRAWTEXT(" mS1 H",barindex,midS1H+Voffset+3,SansSerif,Bold,11)coloured(0, 128, 0)DRAWTEXT(" mS2 H",barindex,midS2H+Voffset+3,SansSerif,Bold,11)coloured(0, 128, 0)DRAWTEXT(" mS3 H",barindex,midS3H+Voffset+3,SansSerif,Bold,11)coloured(0, 128, 0)DRAWTEXT(" mR3 M",barindex,midR3M+Voffset+3,SansSerif,Bold,12)coloured(255, 0, 0)DRAWTEXT(" mR2 M",barindex,midR2M+Voffset+3,SansSerif,Bold,12)coloured(255, 0, 0)DRAWTEXT(" mR1 M",barindex,midR1M+Voffset+3,SansSerif,Bold,12)coloured(255, 0, 0)DRAWTEXT(" mS1 M",barindex,midS1M+Voffset+3,SansSerif,Bold,12)coloured(0, 128, 0)DRAWTEXT(" mS2 M",barindex,midS2M+Voffset+3,SansSerif,Bold,12)coloured(0, 128, 0)DRAWTEXT(" mS3 M",barindex,midS3M+Voffset+3,SansSerif,Bold,12)coloured(0, 128, 0)///////////////////////////////////// AFFICHAGE SETTLEMENT, PP ET NIVEAUX FIGURES AVEC LIGNES ETENDUES A DROITE////////////////////////////////////////////////////// CASH CLOSE ///////////removed///////////// HIGH/LOW ///////////DRAWHLINE(HighJ) COLOURED(102,102,102)//DRAWHLINE(HighH) COLOURED(127, 255, 212)//DRAWHLINE(HighM) COLOURED(127, 255, 212)//DRAWHLINE(LowJ) COLOURED(127, 255, 212)//DRAWHLINE(LowH) COLOURED(127, 255, 212)//DRAWHLINE(LowM) COLOURED(127, 255, 212)///////////// SETTLEMENT ////////////// DRAWHLINE(SettlementJ) COLOURED(0,0,0)//DRAWHLINE(SettlementH) COLOURED(160,228,255)//DRAWHLINE(SettlementM) COLOURED(160,228,255)///////////// PP //////////////////DRAWHLINE(PPJ) COLOURED(18, 18, 255)DRAWHLINE(PPH +0.3) COLOURED(18, 18, 255)DRAWHLINE(PPH) COLOURED(18, 18, 255)DRAWHLINE(PPH -0.3) COLOURED(18, 18, 255)DRAWHLINE(PPM +0.6) COLOURED(18, 18, 255)DRAWHLINE(PPM +0.3) COLOURED(18, 18, 255)DRAWHLINE(PPM) COLOURED(18, 18, 255)DRAWHLINE(PPM -0.3) COLOURED(18, 18, 255)DRAWHLINE(PPM -0.6) COLOURED(18, 18, 255)DRAWHLINE(S1J) COLOURED(0, 128, 0)DRAWHLINE(S2J) COLOURED(0, 128, 0)DRAWHLINE(S3J) COLOURED(0, 128, 0)DRAWHLINE(R1J) COLOURED(255, 0, 0)DRAWHLINE(R2J) COLOURED(255, 0, 0)DRAWHLINE(R3J) COLOURED(255, 0, 0)DRAWHLINE(HighJ) COLOURED(135,135,135)DRAWHLINE(LowJ) COLOURED(135,135,135)DRAWHLINE(SettlementJ) COLOURED(135,135,135)DRAWHLINE(S1H -0.3) COLOURED(0, 128, 0)DRAWHLINE(S1H) COLOURED(0, 128, 0)DRAWHLINE(S1H +0.3) COLOURED(0, 128, 0)DRAWHLINE(S2H -0.3) COLOURED(0, 128, 0)DRAWHLINE(S2H) COLOURED(0, 128, 0)DRAWHLINE(S2H +0.3) COLOURED(0, 128, 0)DRAWHLINE(S3H -0.3) COLOURED(0, 128, 0)DRAWHLINE(S3H) COLOURED(0, 128, 0)DRAWHLINE(S3H +0.3) COLOURED(0, 128, 0)DRAWHLINE(R1H -0.3) COLOURED(255, 0, 0)DRAWHLINE(R1H) COLOURED(255, 0, 0)DRAWHLINE(R1H +0.3) COLOURED(255, 0, 0)DRAWHLINE(R2H -0.3) COLOURED(255, 0, 0)DRAWHLINE(R2H) COLOURED(255, 0, 0)DRAWHLINE(R2H +0.3) COLOURED(255, 0, 0)DRAWHLINE(R3H -0.3) COLOURED(255, 0, 0)DRAWHLINE(R3H) COLOURED(255, 0, 0)DRAWHLINE(R3H +0.3) COLOURED(255, 0, 0)DRAWHLINE(S1M -0.6) COLOURED(0, 128, 0)DRAWHLINE(S1M -0.3) COLOURED(0, 128, 0)DRAWHLINE(S1M) COLOURED(0, 128, 0)DRAWHLINE(S1M +0.3) COLOURED(0, 128, 0)DRAWHLINE(S1M +0.6) COLOURED(0, 128, 0)DRAWHLINE(S2M -0.6) COLOURED(0, 128, 0)DRAWHLINE(S2M -0.3) COLOURED(0, 128, 0)DRAWHLINE(S2M) COLOURED(0, 128, 0)DRAWHLINE(S2M +0.3) COLOURED(0, 128, 0)DRAWHLINE(S2M +0.6) COLOURED(0, 128, 0)DRAWHLINE(S3M -0.6) COLOURED(0, 128, 0)DRAWHLINE(S3M -0.3) COLOURED(0, 128, 0)DRAWHLINE(S3M) COLOURED(0, 128, 0)DRAWHLINE(S3M +0.3) COLOURED(0, 128, 0)DRAWHLINE(S3M +0.6) COLOURED(0, 128, 0)DRAWHLINE(R1M -0.6) COLOURED(255, 0, 0)DRAWHLINE(R1M -0.3) COLOURED(255, 0, 0)DRAWHLINE(R1M) COLOURED(255, 0, 0)DRAWHLINE(R1M +0.3) COLOURED(255, 0, 0)DRAWHLINE(R1M +0.6) COLOURED(255, 0, 0)DRAWHLINE(R2M -0.6) COLOURED(255, 0, 0)DRAWHLINE(R2M -0.3) COLOURED(255, 0, 0)DRAWHLINE(R2M) COLOURED(255, 0, 0)DRAWHLINE(R2M +0.3) COLOURED(255, 0, 0)DRAWHLINE(R2M +0.6) COLOURED(255, 0, 0)DRAWHLINE(R3M -0.6) COLOURED(255, 0, 0)DRAWHLINE(R3M -0.3) COLOURED(255, 0, 0)DRAWHLINE(R3M) COLOURED(255, 0, 0)DRAWHLINE(R3M +0.3) COLOURED(255, 0, 0)DRAWHLINE(R3M +0.6) COLOURED(255, 0, 0)DRAWHLINE(HighH -0.3) COLOURED(135,135,135)DRAWHLINE(HighH) COLOURED(135,135,135)DRAWHLINE(HighH +0.3) COLOURED(135,135,135)DRAWHLINE(HighM -0.6) COLOURED(135,135,135)DRAWHLINE(HighM -0.3) COLOURED(135,135,135)DRAWHLINE(HighM) COLOURED(135,135,135)DRAWHLINE(HighM +0.3) COLOURED(135,135,135)DRAWHLINE(HighM +0.6) COLOURED(135,135,135)DRAWHLINE(LowH -0.3) COLOURED(135,135,135)DRAWHLINE(LowH) COLOURED(135,135,135)DRAWHLINE(LowH +0.3) COLOURED(135,135,135)DRAWHLINE(LowM -0.6) COLOURED(135,135,135)DRAWHLINE(LowM -0.3) COLOURED(135,135,135)DRAWHLINE(LowM) COLOURED(135,135,135)DRAWHLINE(LowM +0.3) COLOURED(135,135,135)DRAWHLINE(LowM +0.6) COLOURED(135,135,135)DRAWHLINE(midS1H -0.3) COLOURED(0, 128, 0)DRAWHLINE(midS1H) COLOURED(0, 128, 0)DRAWHLINE(midS1H +0.3) COLOURED(0, 128, 0)DRAWHLINE(midS2H -0.3) COLOURED(0, 128, 0)DRAWHLINE(midS2H) COLOURED(0, 128, 0)DRAWHLINE(midS2H +0.3) COLOURED(0, 128, 0)DRAWHLINE(midS3H -0.3) COLOURED(0, 128, 0)DRAWHLINE(midS3H) COLOURED(0, 128, 0)DRAWHLINE(midS3H +0.3) COLOURED(0, 128, 0)DRAWHLINE(midR1H -0.3) COLOURED(255, 0, 0)DRAWHLINE(midR1H) COLOURED(255, 0, 0)DRAWHLINE(midR1H +0.3) COLOURED(255, 0, 0)DRAWHLINE(midR2H -0.3) COLOURED(255, 0, 0)DRAWHLINE(midR2H) COLOURED(255, 0, 0)DRAWHLINE(midR2H +0.3) COLOURED(255, 0, 0)DRAWHLINE(midR3H -0.3) COLOURED(255, 0, 0)DRAWHLINE(midR3H) COLOURED(255, 0, 0)DRAWHLINE(midR3H +0.3) COLOURED(255, 0, 0)DRAWHLINE(midS1M -0.6) COLOURED(0, 128, 0)DRAWHLINE(midS1M -0.3) COLOURED(0, 128, 0)DRAWHLINE(midS1M) COLOURED(0, 128, 0)DRAWHLINE(midS1M +0.3) COLOURED(0, 128, 0)DRAWHLINE(midS1M +0.6) COLOURED(0, 128, 0)DRAWHLINE(midS2M -0.6) COLOURED(0, 128, 0)DRAWHLINE(midS2M -0.3) COLOURED(0, 128, 0)DRAWHLINE(midS2M) COLOURED(0, 128, 0)DRAWHLINE(midS2M +0.3) COLOURED(0, 128, 0)DRAWHLINE(midS2M +0.6) COLOURED(0, 128, 0)DRAWHLINE(midS3M -0.6) COLOURED(0, 128, 0)DRAWHLINE(midS3M -0.3) COLOURED(0, 128, 0)DRAWHLINE(midS3M) COLOURED(0, 128, 0)DRAWHLINE(midS3M +0.3) COLOURED(0, 128, 0)DRAWHLINE(midS3M +0.6) COLOURED(0, 128, 0)DRAWHLINE(midR1M -0.6) COLOURED(255, 0, 0)DRAWHLINE(midR1M -0.3) COLOURED(255, 0, 0)DRAWHLINE(midR1M) COLOURED(255, 0, 0)DRAWHLINE(midR1M +0.3) COLOURED(255, 0, 0)DRAWHLINE(midR1M +0.6) COLOURED(255, 0, 0)DRAWHLINE(midR2M -0.6) COLOURED(255, 0, 0)DRAWHLINE(midR2M -0.3) COLOURED(255, 0, 0)DRAWHLINE(midR2M) COLOURED(255, 0, 0)DRAWHLINE(midR2M +0.3) COLOURED(255, 0, 0)DRAWHLINE(midR2M +0.6) COLOURED(255, 0, 0)DRAWHLINE(midR3M -0.6) COLOURED(255, 0, 0)DRAWHLINE(midR3M -0.3) COLOURED(255, 0, 0)DRAWHLINE(midR3M) COLOURED(255, 0, 0)DRAWHLINE(midR3M +0.3) COLOURED(255, 0, 0)DRAWHLINE(midR3M +0.6) COLOURED(255, 0, 0)RETURN//Return SettlementJ COLOURED(135,135,135) STYLE(DOTTEDLINE) AS "SettlementJ", midS1H COLOURED(0, 128, 0) STYLE(DOTTEDLINE) AS "midS1H", midS2H COLOURED(0, 128, 0) STYLE(DOTTEDLINE) AS "midS2H", midS3H COLOURED(0, 128, 0) STYLE(DOTTEDLINE) AS "midS3H", midS1M COLOURED(0, 128, 0) STYLE(DOTTEDLINE) AS "midS1M", midS2M COLOURED(0, 128, 0) STYLE(DOTTEDLINE) AS "midS2M", midS3M COLOURED(0, 128, 0) STYLE(DOTTEDLINE) AS "midS3M", midR1H COLOURED(255, 0, 0) STYLE(DOTTEDLINE) AS "midR1H", midR2H COLOURED(255, 0, 0) STYLE(DOTTEDLINE) AS "midR2H", midR3H COLOURED(255, 0, 0) STYLE(DOTTEDLINE) AS "midR3H", midR1M COLOURED(255, 0, 0) STYLE(DOTTEDLINE) AS "midR1M", midR2M COLOURED(255, 0, 0) STYLE(DOTTEDLINE) AS "midR2M", midR3M COLOURED(255, 0, 0) STYLE(DOTTEDLINE) AS "midR3M"//midS1J COLOURED(0, 128, 0) STYLE(DOTTEDLINE) AS "midS1J", midS2J COLOURED(0, 128, 0) STYLE(DOTTEDLINE) AS "midS2J", midS3J COLOURED(0, 128, 0) STYLE(DOTTEDLINE) AS "midS3J",//midR1J COLOURED(255, 0, 0) STYLE(DOTTEDLINE) AS "midR1J", midR2J COLOURED(255, 0, 0) STYLE(DOTTEDLINE) AS "midR2J", midR3J COLOURED(255, 0, 0) STYLE(DOTTEDLINE) AS "midR3J",Merci par avance de votre retour
12/20/2020 at 2:22 PM #154590Bonjour, le forum de Nicolas est consacré à l’usage de la plateforme ProRealTime tous courtiers confondus, dans ce cadre les codes de mt4 vers prt peuvent être convertis via le formulaire de conversion gratuite du site dans le menu help ci-dessus. Pour ce qui est de conversion dans le sens prt vers mt4 de votre demande, alors il faut passer par le service de programmation privé pour demander un devis, dans le menu help aussi rubrique “trading programme services” en première ligne du menu, ou ici pour le lien direct: https://www.prorealcode.com/trading-programming-services/
-
AuthorPosts
Find exclusive trading pro-tools on