Discussing the strategy VECTORIAL DAX (M5)
Forums › ProRealTime English forum › ProOrder support › Discussing the strategy VECTORIAL DAX (M5)
- This topic has 1,260 replies, 124 voices, and was last updated 2 months ago by Greger2346.
-
-
11/01/2019 at 5:08 PM #11183711/01/2019 at 5:11 PM #11183811/01/2019 at 5:18 PM #11183911/01/2019 at 8:06 PM #111863
hi Fifi
in which unit of time should the graph be executed? thank you in advance
11/01/2019 at 8:22 PM #111865timeframe 1 minute
1 user thanked author for this post.
11/01/2019 at 8:24 PM #11186611/01/2019 at 9:00 PM #111872avec cumul123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973/ ROBOT VECTORIAL DAX// M5// SPREAD 1.5// by BALMORA 74 - FEBRUARY 2019// ajouter ligne 18 45 et a partir de 115 par fifi743DEFPARAM CumulateOrders = falseDEFPARAM Preloadbars = 50000//VARIABLESCtimeA = time >= 080000 and time <= 180000CtimeB = time >= 080000 and time <= 180000// TAILLE DES POSITIONSMoneyManagement = 2RiskManagement = 1Capital = 2000MinBetSize = 1RiskLevel = 5000000Equity = Capital + StrategyProfitIF MoneyManagement = 1 THENPositionSize = Max(MinBetSize, Equity * (MinBetSize/Capital))ENDIFIF MoneyManagement = 2 THENPositionSize = Max(LastSize, Equity * (MinBetSize/Capital))LastSize = PositionSizeENDIFIF MoneyManagement <> 1 and MoneyManagement <> 2 THENPositionSize = MinBetSizeENDIFIF RiskManagement THENIF Equity > Capital THENRiskMultiple = ((Equity/Capital) / RiskLevel)PositionSize = PositionSize * (1 + RiskMultiple)ENDIFENDIFPositionSize = Round(PositionSize)// TAILLE DES POSITIONSPositionSize = 1 * positionsizeONCE PositionSize = 1ONCE PositionSize = 1// ajouter par fifi743spread=abs(OPEN-CLOSE)coeff=spread/highest[200](spread)*100// perfomanceposmax =2PP=positionperf(0)*100if pp>ppf thenppf=ppendif// stop hedgestpposinver =2//STRATEGIE//VECTEUR = CALCUL DE L'ANGLEONCE PeriodeA = 10ONCE nbChandelierA= 15MMA = Exponentialaverage[PeriodeA](close)ADJASUROPPO = (MMA-MMA[nbchandelierA]*pipsize) / nbChandelierAANGLE = (ATAN(ADJASUROPPO)) //FONCTION ARC TANGENTECondBuy1 = ANGLE >= 45CondSell1 = ANGLE <= - 37//VECTEUR = CALCUL DE LA PENTE ET SA MOYENNE MOBILEONCE PeriodeB = 20ONCE nbChandelierB= 35lag = 5MMB = Exponentialaverage[PeriodeB](close)pente = (MMB-MMB[nbchandelierB]*pipsize) / nbchandelierBtrigger = Exponentialaverage[PeriodeB+lag](pente)// modifier par fifi743// ajout d'un filtre pour achatfiltre,weekpivot,pivot,filt =call"FILTRE_Prise_Position"(close)//===================== ajouter par fifi743donchianP = 20hh=highest[donchianP](high)ll=lowest[donchianP](low)MA=Average[4](close)Myrsi=RSI[2](close)CondBuy2 = (pente > trigger) AND (pente < 0) and high>MA and coeff>0.9CondSell2 = (pente CROSSES UNDER trigger) AND (pente > -1)//ENTREES EN POSITIONAC=0VT=0FIN=0//ATR= AverageTrueRange[14](close)if coeff=100 and dhigh(0)-high>20 and open<close and high-close>10 and hh=high and hh-ll>80 thenPOSLONG=0endifCONDBUY = CondBuy1 and CondBuy2 and CTimeA and atr>4CONDSELL = CondSell1 and CondSell2 and CtimeB and atr>4if close>pivot and CTimeA and cd and hh-ll>60 and hh[1]>hh and ll[1]=ll and Myrsi>75 and close<MMB and MMB-MMA>8 and open[1]<close[1] and open<close and atr>4 THENbuy PositionSize contract at marketSET STOP %LOSS 2ppf=0posinver=0AC=11ENDIFIF filtre=1 and atr>4 THENbuy PositionSize contract at marketSET STOP %LOSS 2ppf=0posinver=0AC=1ENDIF//POSITION COURTEIF filtre=-1 and atr>4 THENSellshort PositionSize contract at marketSET STOP %LOSS 2ppf=0posinver=0VT=1ENDIFIF CtimeB and close>pivot and coeff<8 and open>close and hh-CLOSE<CLOSE-ll and open-close<3 and high-open>10 and close>average[10,1] and hh[1]<=hh and Myrsi<25 and atr>4 THENSellshort PositionSize contract at marketSET STOP %LOSS 2ppf=0posinver=0VT=11ENDIF//POSITION LONGUE//if longonmarket and high-close>4thenPosLong=0endiftESTma=average[3,2]if OPEN[1] crosses over tESTma[1] and LOW[1]<LOW and open<close AND CLOSE>TESTMA thenPosLong =1endifIF CONDBUY and Poslong THENbuy PositionSize contract at marketSET STOP %LOSS 2ppf=0posinver=0AC=2ENDIFIF CONDSELL and open>ll[1] THENSellshort PositionSize contract at marketSET STOP %LOSS 2ppf=0posinver=0VT=2ENDIF//VARIABLES STOP SUIVEURONCE trailingStopType = 1 // Trailing Stop - 0 OFF, 1 ONONCE trailingstoplong = 4 // Trailing Stop Atr Relative DistanceONCE trailingstopshort = 4 // Trailing Stop Atr Relative DistanceONCE atrtrailingperiod = 14 // Atr parameter ValueONCE minstop = 10 // Minimum Trailing Stop Distance// ajouter par fifi743if posinver=0 thentrailingStopType =1elsetrailingStopType =0endif// TRAILINGSTOP//----------------------------------------------atrtrail = AverageTrueRange[atrtrailingperiod]((close/10)*pipsize)/1000trailingstartl = round(atrtrail*trailingstoplong)trailingstartS = round(atrtrail*trailingstopshort)if trailingStopType = 1 THENTGL =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//=============================FIN LONG==============================// impultion coeff=100for i=0 to 6 doif coeff[i]=100 thenCD=1breakelseCD=0endifnextif longonmarket and pp<-1.2 thenSellshort PositionSize *posmax contract at marketSET STOP %LOSS stpposinverposinver=1ppf=0VT=3ENDIFif longonmarket and ppF>3.6 and pp>ppF-pp thensell at marketFIN=1endifif longonmarket and time>170000 and barindex-tradeindex<30 and coeff>80 and open<close and high-close<1 and pp>ppF-pp and positionprice<close thensell at marketFIN=2endifif longonmarket and open[1]<close[1] and high[1]-close[1]>3 and coeff[1]>50 and open>close and high-open>10 and coeff>50 and pp>ppF-pp and positionprice<close thensell at marketFIN=3endifif longonmarket and MMA[1]-MMA[2]>MMA[1]-MMA and hh[1]=hh and hh-close<close-ll and high[1]>high and barindex-tradeindex<3 and open[1]<close[1] and high[1]-close[1]>3 and coeff[1]<25 and open<close and coeff<15 and coeff[1]>coeff and positionprice<close thenSellshort PositionSize contract at marketSET STOP %LOSS stpposinverppf=0VT=4ENDIFif longonmarket and open[1]<close[1] and high[1]-close[1]>2 and open<close and high-close>5 and coeff[1]>50 anD coeff>90 and pp>ppF-pp and positionprice<close thensell at marketFIN=4endifif longonmarket and open[1]>close[1] and high[1]-OPEN[1]>5 and open<close and high-close>10 AND coeff[1]<25 and pp>ppF-pp and positionprice<close thensell at marketFIN=5endifif longonmarket and open[1]<close[1] and high[1]-close[1]>1 and high-open>1 and open>close and high[1]=high and low[1]>low and coeff[1]<coeff and pp>ppF-pp and positionprice<close thensell at marketFIN=6endifif longonmarket and open[2]>close[2] and high[2]-open[2]>2 and close[2]=low[2] and open[1]>close[1] and open[1]=high[1] and close[1]=low[1] and abs(open-close)<1 and pp>ppF-pp and positionprice<close thensell at marketFIN=7endifif longonmarket and hh[1]=hh and ll[1]=ll and highest[10](high)>high and coeff[1]<coeff and coeff>35 and barindex-tradeindex<10 and MMA[1]>MMA and close<MMA and open[3]<close[3] and open[2]<close[2] and open[1]<close[1] and open>close and open=high and close<low[1] and positionprice>close thenSellshort PositionSize contract at marketSET STOP %LOSS stpposinverppf=0VT=5ENDIFif longonmarket and coeff=100 and hh[1]>hh and ll[1]>ll and MMA[1]>MMA and positionprice>close thenSellshort PositionSize contract at marketSET STOP %LOSS stpposinverposinver=1ppf=0VT=6ENDIFif longonmarket and hh[1]=hh and ll[1]=ll and highest[10](high)>high and lowest[10](low)<low and open[1]>close[1] and open>close and high-open>5 and coeff[1]=coeff and coeff<15 and pp>ppF-pp and positionprice<close thenSellshort PositionSize contract at marketSET STOP %LOSS stpposinverppf=0VT=7ENDIFif longonmarket and coeff[1]>70 and coeff<3 and open[1]<close[1] and open>close and close-low<1 and high-open>5 and pp>ppF-pp and positionprice<close thensell at marketFIN=8endifif longonmarket and MMA[1]-MMA[2]>MMA[1]-MMA and hh[1]<hh and ll[1]=ll and open[3]<close[3] and high[3]-close[3]>8 and open<close and high-close>3 and coeff<5 and pp>ppF-pp and positionprice<close thensell at marketFIN=9endifif longonmarket and hh[1]=hh and ll[1]=ll and open[1]<close[1] and high[1]-close[1]< high-close and open<close and open-low>2 and high[1]=high and coeff<1 and pp>ppF-pp and positionprice<close thensell at marketFIN=10endifif longonmarket and open[2]>close[2] and open[1]>close[1] and hh[1]<hh and ll[1]<ll and open<close and high-close>8 and coeff[2]<10 and coeff<35 and pp>ppF-pp and positionprice<close thenSellshort PositionSize * posmax contract at marketSET STOP %LOSS stpposinverposinver=1ppf=0VT=8ENDIFif longonmarket and highest[10](high)-lowest[10](low)>high-low and close-MMA>10 and high[1]>high and open[1]<close[1] and coeff[1]<10 and open>close and coeff<2 and coeff[1]>coeff and hh[1]=hh and ll[1]<ll and pp>ppF-pp and positionprice<close thensell at marketFIN=11endifif longonmarket and open[3]<close[3] And coeff[3]>85 and open[2]<close[2] and high[2]-close[2]>5 and open[1]<close[1] and open>close and coeff<3 and coeff[1]>coeff and pp>ppF-pp and positionprice<close thenSellshort PositionSize * posmax contract at marketSET STOP %LOSS stpposinverposinver=1ppf=0VT=9ENDIFif longonmarket and high[1]-close[1]<1 and coeff[1]>70 and high[3]-close[3]>5 and open[3]<close[3] and open[2]>close[2] and open[1]<close[1] and open>close and coeff[1]<coeff and positionprice<close thensell at marketFIN=12endifif longonmarket and hh[1]-ll[1]>hh-ll and hh[1]=hh and coeff[3]<3and open[2]<close[2] and open[1]<close[1] and close[1]>MMA[1]and open>close and coeff[1]<coeff and coeff[1]<8 and coeff<20 and close<MMA and positionprice>close thensell at marketFIN=13endifif longonmarket and open[1]<close[1] and high[1]-close[1]<1 and open[1]=low[1] and open>close and coeff[1]<coeff and coeff>10 and close crosses under MMA and positionprice>close thensell at marketFIN=14endif//if longonmarket and high>MMA and hh[1]-high[1]<hh-high and open[2]>close[2] and coeff[2]>30 and hh[2]-high[2]<hh-high and high[1]-open[1]>3 and high-open>4 and open[1]>close[1] and close[1] crosses under MMA[1] and open>close and open<MMA and coeff[1]>coeff and positionprice>close thenSellshort PositionSize * posmax contract at marketSET STOP %LOSS stpposinverppf=0VT=10ENDIFif longonmarket and hh-close<close-ll and open[1]<close[1] and coeff[1]<25 and coeff[1]>coeff and coeff<15and open>close and close=low and high-open>7 and positionprice<close thenSellshort PositionSize * posmax contract at marketSET STOP %LOSS stpposinverposinver=1ppf=0VT=11ENDIFif longonmarket and hh-close<close-ll and coeff[1]=100 and open[1]<close[1] and high[1]-close[1]>4 and coeff<5 and open>close and open-close<2 and high-open>3and pp>ppF-pp and positionprice<close thenSellshort PositionSize * posmax contract at marketSET STOP %LOSS stpposinverppf=0VT=12ENDIFif longonmarket and hh[1]=hh and ll[1]=ll and hh[1]-high[1]<hh-high and open[1]<close[1] and high[1]-close[1]>7 and open>close and coeff[1]>15 and coeff<10 and coeff[1]>coeff and high-open>6 and pp>ppF-pp and positionprice<close thensell at marketFIN=15endifif longonmarket and hh[1]=hh and ll[1]<ll and hh[2]-high[2]<hh[1]-high[1] and open[2]<close[2] and open[2]=low[2] and high[2]-close[2]>5 and open[1]>close[1] and open<close and high-close<1 and open-low>6 and coeff<15 and coeff[1]>coeff and pp>ppF-pp and positionprice<close thensell at marketFIN=16endifif longonmarket and hh[1]=hh and ll[1]<ll and open[2]<close[2] and high[2]-close[2]>6 and open[1]<close[1] and high[1]-close[1]>3 and open>close and high[1]<high and low[1]>low and coeff>15 and pp>ppF-pp and positionprice<close thensell at marketFIN=17endifif longonmarket and open[1]<close[1] and open[1]=low[1] and high[1]-close[1]>6 and open>close and high[1]>high and close<low[1] and close crosses under MMA and positionprice<close thenSellshort PositionSize * posmax contract at marketSET STOP %LOSS stpposinverppf=0VT=13ENDIFif longonmarket and open[1]<close[1] and open[1]=low[1] and high[1]-close[1]>6 and open>close and high[1]>high and close<low[1] and close crosses under MMA and positionprice>close thensell at marketFIN=18endifif longonmarket and barindex-tradeindex<5 and hh[1]<hh and hh-close<close-ll and ll[1]=ll and open[1]<close[1] and high[1]-close[1]>1 and open>close and high-open>4 and close-low<1 and high[1]<high and low[1]>low and coeff>30 and pp>ppF-pp and positionprice<close thensell at marketFIN=19endifif longonmarket and open[2]<close[2] and coeff[2]=100 and open[1]>close[1] and high[1]-open[1]>6 and coeff[1]<35 and hh[2]<hh[1] and ll[2]=ll[1] AND OPEN<CLOSE AND high-close>8 and pp>ppF-pp and positionprice<close thensell at marketFIN=20endifif longonmarket and MMA[1]>MMA and high<MMA and hh[1]=hh and ll[1]>ll and positionperf(1)>0 and barindex-tradeindex<10 and open>close and coeff=100 and positionprice>close thenSellshort PositionSize * posmax contract at marketSET STOP %LOSS stpposinverppf=0VT=14ENDIFif longonmarket and open[2]>close[2] and coeff[2]<3 and high[2]-open[2]>15 and open[1]<close[1] and high[1]-close[1]>8 and open>close and hh[1]-high[1]<hh-high and hh-close<close-ll and pp>ppF-pp and positionprice<close thensell at marketFIN=21endifif longonmarket and open[3]>close[3] and high[3]-open[3]>2 and open[2]<close[2] and high[2]-close[2]>3 and open[1]<close[1] and high[1]-close[1]>1 and OPEN>close and high=open and positionprice>close thenSellshort PositionSize * posmax contract at marketSET STOP %LOSS stpposinverposinver=1ppf=0VT=15ENDIFif longonmarket and barindex-tradeindex>100 and low[1]-MMa[1]>low-MMA and low[1]>low and hh[2]<hh[1] and hh[1]=hh AND LL[1]<LL and hh-ll<30 and open[3]<close[3] and coeff[3]>50 and coeff[2]=0 and open[1]<close[1] AND OPEN>CLOSE and coeff[2]<coeff[1] and coeff[1]<coeff and pp>ppF-pp and positionprice<close thensell at marketFIN=22endifif longonmarket and barindex-tradeindex<10 and open[3]<close[3] and abs(open[2]-close[2])<1 and abs(open[1]-close[1])<3 and open>close and positionprice<close thensell at marketFIN=23endifif longonmarket and hh[1]=hh and low[1]-MMA[1]>low-MMA and hh-ll<60 and barindex-tradeindex<4 and hh-close<close-ll and hh[1]-high[1]<hh-high AND open[2]<close[2] and open[1]>close[1] and abs(open-close)<1 and coeff[1]>coeff and pp<ppF and positionprice<close thensell at marketFIN=24endifif longonmarket and hh[2]<hh[1] and hh[1]=hh and ll[1]<ll and hh-close<close-ll and high[1]>high and low[1]<=low and open[1]<close[1] and close[1]-open[1]<4 and open>close and coeff<15 and pp>ppF-pp and positionprice<close thensell at marketFIN=25endifif longonmarket and barindex-tradeindex>600 and positionprice>close thensell at marketFIN=26endifif longonmarket and barindex-tradeindex<10 and cd and open[1]<close[1] and coeff[1]<10 and open>close and high-open>4 and low[1]-MMa[1]>low-MMA and high[1]>high and low[1]>low and pp>ppF-pp and positionprice<close thensell at marketFIN=27endifif longonmarket and barindex-tradeindex>10 and hh-MMA<MMA-ll and hh[1]<hh and ll[1]=ll and hh-ll<70 and hh-close<close-ll and open[1]<close[1] and close[1]=high[1] and open>close and high[1]<high and low[1]<low and coeff[1]>coeff and coeff[1]>35 and pp>ppF-pp and positionprice<close thensell at marketFIN=28endifif longonmarket and open[2]<close[2] and high[2]-close[2]>1 and open[2]-low[2]<1 and open[1]<close[1] and high[1]-close[1]>=1 and open<close and hh[2]>hh[1] and ll[1]=ll and coeff[2]<2 and coeff[1]=coeff and pp>ppF-pp and positionprice<close thensell at marketFIN=29endifif longonmarket and open[2]<close[2] and high[2]-close[2]>6 and open[1]<close[1] and high[1]-close[1]>=6 AND OPEN>CLOSE and coeff[2]=coeff[1] and coeff[1]>coeff and pp>ppF-pp and positionprice<close thensell at marketFIN=30endifif longonmarket and barindex-tradeindex>20 and hh[1]=hh and ll[1]<ll and open[2]<close[2] and high[2]-close[2]>6 and open[1]<close[1] and high[1]-close[1]>=4 and open>close and close crosses under MA and coeff[2]>coeff[1] and pp>ppF-pp and positionprice<close thensell at marketFIN=31endifif longonmarket and open[2]>close[2] and open[1]>close[1] and open>close and ll[1]>ll and hh[2]-ll[2]<50 and hh[1]=hh and MA crosses under MMA and coeff[1]<coeff and coeff>90 and positionprice>close thensell at marketFIN=32endifif longonmarket and coeff[4]<1 and coeff[2]<3 and open[1]<close[1] and high[1]-close[1]>4 and open>close and coeff>15 and close crosses under MA and pp<PPF thenSellshort PositionSize * posmax contract at marketSET STOP %LOSS stpposinverposinver=1ppf=0VT=16ENDIFif longonmarket and open[2]>close[2] and high[2]-close[2]>3 and coeff[2]<5 and open[1]<close[1] and high[1]-close[1]>2 and open>close and MA crosses under MMA and LL[1]<LL and hh[1]=HH and pp<PPF thenSellshort PositionSize * posmax contract at marketSET STOP %LOSS stpposinverposinver=1ppf=0VT=17ENDIFif longonmarket and open[2]<close[2] and open[1]<close[1] and high[2]-close[2]>3 and high[1]-close[1]>6 and open>close and high-open>6 and coeff[1]>coeff and coeff<10 and MA[2]-MMA[2]>MA-MMA and positionprice>close thenSellshort PositionSize * posmax contract at marketSET STOP %LOSS stpposinverposinver=1ppf=0VT=18ENDIFif longonmarket and open[2]<close[2] and high[2]-close[2]>8 and open[1]<close[1] and high[1]-close[1]>8 and open>close and hh[2]<hh[1] and hh[1]=hh and ll[1]=ll and coeff[1]>coeff and coeff<15 and pp>ppF-pp and positionprice<close thenSellshort PositionSize * posmax contract at marketSET STOP %LOSS stpposinverposinver=1ppf=0VT=19ENDIFif longonmarket and barindex-tradeindex<3 and OPEN[1]>close[1] and open>close and coeff[1]<coeff and coeff>25 and MA crosses under MMA and MMA[1]>MMA and MA[1]>MA and ll[2]<ll[1] and ll[1]=ll and hh[1]=hh and positionprice>close thenSellshort PositionSize * posmax contract at marketSET STOP %LOSS stpposinverVT=20ppf=0ENDIFif longonmarket and barindex-tradeindex>20 and cd and open[1]<close[1] and high[1]-close[1]>8 and open>close and coeff[1]<25 and coeff[1]<coeff and hh-close<close-ll and pp>ppF-pp and positionprice<close thensell at marketFIN=33endifif longonmarket and barindex-tradeindex>20 and coeff[1]<3 and coeff[1]>coeff and coeff>50 and open>close and close<MA and hh[1]=hh and ll[1]=ll and hh-ll<30 and pp<ppF and positionprice<close thensell at marketFIN=34endifif longonmarket and barindex-tradeindex>20 and open[1]<close[1] and high[1]-close[1]>3 and coeff[1]<10 and open<close and open=low and high-close>2 and coeff<1 and hh[1]=hh and ll[1]<ll and pp<ppF and positionprice<close thensell at marketFIN=35endifif longonmarket AND COEFF>15 AND LL[1]>LL and(( open>close and high-open>10)or(open<close and high-close>10)) and positionprice<close thensell at marketFIN=351endifif longonmarket AND OPEN[3]<close[3] and open[2]>close[2] and open[1]>close[1] and open>close and coeff[3]>25 and coeff[2]<10 and open[3]>close and pp>ppF-pp and positionprice<close thensell at marketFIN=352endifif longonmarket and close<MA and coeff[2]<1 AND weekpivot>pivot and open[1]<close[1] and coeff[1]>30 and open>close and coeff>15 and coeff[1]>coeff and pp>ppF-pp and positionprice<close thenSellshort PositionSize contract at marketSET STOP %LOSS stpposinverFIN=353ppf=0ENDIFif longonmarket AND OPEN[2]<close[2] and high[2]-close[2]>10 and open[1]<close[1] and high[1]-close[1]>6 and open>close and coeff<15 and high[1]>high and low[1]>low and coeff[1]>coeff and positionprice<close thensell at marketFIN=354endifif longonmarket AND COEFF[2]<1 and coeff[1]>30 and open[1]<close[1] and open>close and hh[1]<hh and coeff[1]>coeff and positionprice<close thensell at marketFIN=355endif// les nombres rondspr=10000for t=0 to 50 dopr=PR+100if longonmarket and high[1]>PR and HIGH<PR and hh[1]>hh AND LL[1]>LL and pp>ppF-pp and positionprice<close thensell at marketBREAKendifNEXTif longonmarket and barindex-tradeindex<15and low[2]>low AND MMA-MMB>8 and hh[1]-high[1]<hh-high and LL[1]<LL and coeff[3]>40 and coeff[2]>coeff[1] and coeff[1]<25 AND OPEN[2]<close[2] and hh[3]<hh[2] and hh[2]=hh[1] and open[1]>close[1] and open>close and high[1]>high and low[1]>low and pp>ppF-pp and positionprice<close thensell at marketFIN=356endifif longonmarket and barindex-tradeindex<8 and COEFF[1]>90 and coeff>40 and open[1]<close[1] and high[1]-close[1]>5 and hh[2]<hh[1] and open>close and high[1]<high and low[1]<low and pp>ppF-pp and positionprice<close thensell at marketFIN=357endifif longonmarket And (close[1]-open[1])/2<open-close and hh[2]<hh[1] and hh-ll<60 and hh=high and barindex-tradeindex<5 and open[1]<close[1] and coeff[1]>35 and Myrsi>80 and open>close and coeff>20 and coeff[1]>coeff and Myrsi<70 and pp>ppF-pp and positionprice<close thensell at marketFIN=358endifif longonmarket and dhigh(0)-high>20 And OPEN<CLOSE and high-close>2 and open>MMA and MMA-MMb<2 AND coeff[1]>coeff and hh=high and hh[1]<hh and hh-ll<30 and Myrsi>90 and pp>ppF-pp and positionprice<close thensell at marketFIN=359endifif longonmarket and open[1]<close[1] and coeff[1]>25 and hh[1]-high[1]>5 and high[1]-close[1]>1 and low[1]<MMA[1] and MMA-MMB<6 and open>close and open-close<1 and close-low>8 and pp>ppF-pp and positionprice<close thenSellshort PositionSize contract at marketSET STOP %LOSS stpposinverFIN=360ppf=0ENDIFif longonmarket and open[1]<close[1] and coeff[1]>25 and hh[1]-high[1]>5 and high[1]-close[1]>1 and low[1]<MMA[1] and open>close and open-close<2 and close-low>6 and coeff[1]>coeff and coeff<6 and pp>ppF-pp and positionprice<close thensell at marketFIN=361endifif longonmarket and dhigh(0)-high>25 and open<close and close-open<5 and high-close>25 and coeff[1]<coeff and coeff>5 and hh[1]<hh and MMB-MMA<1 and positionprice>close thenSellshort PositionSize contract at marketSET STOP %LOSS stpposinverFIN=362ppf=0ENDIFif longonmarket and open[1]<close[1] and coeff[1]>75 and RSI[2](close[1])>90 and hh[2]<hh[1] and high[1]-close[1]>1 and hh[1]=hh and ll[1]<ll and open>close and coeff>45 and coeff[1]>coeff and pp>ppF-pp and positionprice<close thensell at marketFIN=363endifif longonmarket and dhigh(0)-high>30 and close-open<5 and open[2]<close[2] and coeff[2]>coeff[1] and open[1]<close[1] and open<close and coeff<10 and hh=high and Myrsi>95 and pp>ppF-pp and positionprice<close thensell at marketFIN=364endif//if longonmarket and barindex-tradeindex<3 and hh[1]=high[1] and hh[1]-high[1]<hh-high AND ll[1]<ll and hh-ll<60 and hh[1]-ll[1]>hh-ll and dhigh(0)-high[1]>6 and open[1]<close[1] and high[1]-close[1]>6 and open>close and coeff<25 and Myrsi>90 and pp<ppF and positionprice<close thensell at marketFIN=365endifif longonmarket and barindex-tradeindex<3 and hh=high and open<close and high-close>6 and MYRSI>94 and coeff[1]>coeff and hh[1]<hh and pp>ppF-pp and positionprice<close thensell at marketFIN=366endifif longonmarket and barindex-tradeindex<10 AND highest[10](high)>high and open[1]<close[1] and high[1]-close[1]>4 and open<close and high-close>3 and open-low>15 and MYrsi>80 and coeff[1]>coeff and pp>ppF-pp and positionprice<close thenSellshort PositionSize contract at marketSET STOP %LOSS stpposinverFIN=367ppf=0ENDIFif longonmarket and positionprice>=close and highest[10](hh)>high and open[1]<close[1] and high[1]-close[1]>3 and MYrsi[1]>90 and MYrsi[1]>MYrsi and open>close and high -open>5 and close-low>10 and coeff[1]>coeff thensell at marketFIN=368endifif longonmarket and low-MMA>20 and dhigh(0)-HH>70 and high[1]>high and low[1]<low and hh-ll>100 and MMA-MMB>10 and hh[2]<hh[1] and hh[1]=hh and open[1]<close[1] and Myrsi[1]>90 and open>close and Myrsi[1]>Myrsi and Myrsi<70 and coeff[1]>coeff and coeff<25 and pp>ppF-pp and positionprice<close thensell at marketFIN=369endifif longonmarket and open[1]<close[1] and hh[2]<hh[1] and coeff[1]>50 and MYrsi[1]>95 and hh[1]=high[1] and hh[1]=hh and open>close and high[1]=high and low[1]<low and MYrsi<70 and coeff[1]>coeff and pp>ppF-pp and positionprice<close thensell at marketFIN=370endif//if longonmarket and weekpivot>pivot and pivot>close and hh[1]=high[1] and open[1]<close[1] and high[1]-close[1]>4 and open[1]-low[1]>2 and close crosses under MMA and MYrsi<25 and coeff[1]<coeff and open>close and coeff>15 and hh-ll>50 and pp>ppF-pp and positionprice<close thenSellshort PositionSize contract at marketSET STOP %LOSS stpposinverFIN=371ppf=0ENDIFif longonmarket and pp<-0.1 and barindex-tradeindex<5 AND MMA[1]>MMA and MMA-MMb<10and weekpivot>pivot and pivot>close and dhigh(0)>hh and dhigh(0)-hh>100 and hh-ll>50 and close crosses under MMA and MYRSI<20 and coeff[1]<coeff and positionprice>close thenSellshort PositionSize contract at marketSET STOP %LOSS stpposinverFIN=372ppf=0ENDIFif longonmarket and pp<-0.2 and barindex-tradeindex<10 AND dhigh(0)>hh and dhigh(0)-hh>50 and coeff[1]<coeff and coeff>70 and close crosses under MMA and close crosses under MMB and MMA[1]-MMB[1]>MMA-MMb and Myrsi<25 and positionprice>close thenSellshort PositionSize contract at marketSET STOP %LOSS stpposinverFIN=373ppf=0ENDIFif longonmarket and open[1]<close[1] and high[1]-close[1]>15 and open[1]-low[1]>10 and open<close and Myrsi>80 and coeff>45 and Weekpivot>pivot and positionprice<=close thenSellshort PositionSize contract at marketSET STOP %LOSS stpposinverFIN=374ppf=0ENDIFif longonmarket and Weekpivot>pivot and hh-ll<50 and open[1]<close[1] and high[1]-close[1]>6 and open[1]-low[1]>2 and Myrsi<50 and Myrsi[1]>Myrsi and coeff<15 and positionprice<=close thenSellshort PositionSize contract at marketSET STOP %LOSS stpposinverFIN=375ppf=0ENDIFif longonmarket and Weekpivot>pivot and hh-ll>50 and open[1]<close[1] and high[1]-close[1]<1 and open[1]-low[1]>10 and open>close and Myrsi<75 and coeff[1]<coeff and coeff>35 and positionprice>close thenSellshort PositionSize contract at marketSET STOP %LOSS stpposinverFIN=376ppf=0ENDIFif longonmarket and Dhigh(0)-hh>50 and high=hh and Weekpivot>pivot and hh-ll>30 and open[1]<close[1] and high[1]-close[1]>2 and open>close and close crosses under MMB and close crosses under MMA and MMA[1]-MMB[1]>MMA-MMB and coeff>35 and Myrsi<25 and positionprice>close thenSellshort PositionSize contract at marketSET STOP %LOSS stpposinverFIN=377ppf=0ENDIFif longonmarket and close>pivot and low-MMA<3 and dhigh(0)-hh<20 and pivot>weekpivot and open[1]<close[1] and open>close and hh[1]<hh and hh=HIgh and high-open>4 and Myrsi[1]>Myrsi and Myrsi <50 and hh=high and pp>ppF-pp and positionprice<close thensell at marketFIN=378endifif longonmarket and hh[1]-ll[1]>hh-ll and weekpivot>pivot and close<pivot and open>close and myrsi[1]>90 and Myrsi[1]>Myrsi and coeff>20 and coeff[1]<coeff and hh[1]>=high [1] and close crosses under MMA and pp<ppF and positionprice<close thensell at marketFIN=379endifif longonmarket and barindex-tradeindex<20 and hh-ll<40 and close crosses under MMA and close crosses under MMb and MYrsi<10 and coeff>45 and pivot>weekpivot and close>Pivot and pp<ppF and positionprice>close thenSellshort PositionSize contract at marketSET STOP %LOSS stpposinverFIN=377ppf=0ENDIFif longonmarket and cd and hh-ll>80 and barindex-tradeindex<5 and open[1]<close[1] and open>close and weekpivot>pivot and close>pivot and positionprice<close thenSellshort PositionSize contract at marketSET STOP %LOSS stpposinverFIN=378ppf=0ENDIFif longonmarket and high[1]>high and low[1]<low and barindex-tradeindex<10 and dhigh(0)-hh<20 and open[1]<close[1] and high[1]-close[1]>5 and open>close and coeff>15 and Myrsi[1]>90 and Myrsi<70 and HH-LL>80 and weekpivot>pivot and close>pivot and pp>ppF-pp and positionprice<close thenSellshort PositionSize contract at marketSET STOP %LOSS stpposinverFIN=378ppf=0ENDIF////============================FIN SHORT==========================//=========================================IF shortonmarket and pp<-1.6 thenbuy PositionSize *posmax contract at marketSET STOP %LOSS stpposinverposinver=1ppf=0AC=3ENDIFif shortonmarket AND ppF>1.9 and pp>ppF-pp thenexitshort at marketFIN=36endifif shortonmarket and barindex-tradeindex<5 and pp<ppF and posinver thenexitshort at marketFIN=37endifif shortonmarket and barindex-tradeindex>10 and open[1]>close[1] and close[1]-low[1]>7 and open>close and close-low>13 and positionprice>close thenexitshort at marketFIN=38endifif shortonmarket and positionperf(1)<0 AND high>close[1] and abs(open-close)<1 and open-low>9 and positionprice>close thenexitshort at marketFIN=39endifif shortonmarket and barindex-tradeindex>70 and open<close and pp>ppF-pp and pp>0.3 and abs(open-close)<1 and positionprice>close thenexitshort at marketFIN=40endifif shortonmarket and open[1]>close[1] and close[1]-low[1]>5 and open>close and close-low>8 and coeff<5 and coeff[1]>coeff and positionprice>close thenexitshort at marketFIN=41endifif shortonmarket and high[1]>high and low[1]<low and open<close and coeff<3 and open-low>2 and high-close>2 and abs(open-close)>0.2 and pp>ppF-pp and positionprice>close thenexitshort at marketFIN=42endifif shortonmarket and barindex-tradeindex<15 and open[2]<close[2] and open[2]=low[2] and high[2]-close[2]>3 and open[1]>close[1] and close[1]-low[1]>2 and open>close and positionprice>close thenexitshort at marketFIN=43endifif shortonmarket and MMA[2]-MMA[1]>MMA[1]-MMA and hh-low>low-ll AND open<close and close-low>10 and high-close<1 and coeff<20 and CD and coeff[1]>25 and barindex-tradeindex<10 and open[3]<close[3]and open[2]>close[2] and open[1]<close[1] and open[1]-low[1]<2 and low[2]>low[1] and high[2]>high[1] and coeff[1]>coeff and pp>ppF-pp and positionprice>close thenexitshort at marketFIN=44endifif shortonmarket and hh-close>close-ll and hh[1]=hh and low[1]-ll<low-ll and barindex-tradeindex<20 and open[2]>close[2]and low[2]>low[1] and open[1]<close[1] and high[2]>high[1] and coeff[2]=coeff[1] and pp>ppF-pp and positionprice>close thenexitshort at marketFIN=45endifif shortonmarket and low>MMA and MMA[1]<MMA and barindex-tradeindex<=6 and coeff[2]<2 and open[1]>close[1] and open>close and coeff-coeff[1]<4 and pp>ppF-pp and positionprice>close thenbuy PositionSize contract at marketSET STOP %LOSS stpposinverppf=0AC=4ENDIFif shortonmarket and barindex-tradeindex<7 and open>close and open=high and close=low and coeff>90 and pp>ppF-pp and positionprice>close thenexitshort at marketFIN=46endifif shortonmarket and coeff[1]>coeff and low[1]>low and close[1]<high and open[1]>close[1] and close[1]-low[1]>5 and coeff[1]>50 and open>close and close-low>4 AND high-open>4 and coeff<7 and pp>ppF-pp and positionprice>close thenexitshort at marketFIN=47endifif shortonmarket and hh-close>close-ll and hh-ll<30 and barindex-tradeindex>70 and coeff[1]<2 and coeff<1 and coeff[1]>coeff and pp>ppF-pp and positionprice>close thenexitshort at marketFIN=48endifif shortonmarket and ll[2]>ll[1] and coeff[1]=100 and open[1]>close[1] and close[1]-low[1]>10 and open<close and coeff<10 and pp>ppF-pp and positionprice>close thenexitshort at marketFIN=49endifif shortonmarket AND coeff[1]<1 and open[1]>close[1] and high[1]-open[1]>5 and open>close and close-low>10 and hh[1]=hh and ll[1]>ll and hh-close>close-ll and pp>ppF-pp and positionprice>close thenexitshort at marketFIN=50endifif shortonmarket and low[1]>low AND COEFF[2] >20 and open[2]>close[2] and close[2]-low[2]>3 and open[1]=close[1] and close[1]-low[1]>4 and open>close and coeff<5 and close-low>2 and coeff[1]=0 and pp>ppF-pp and positionprice>close thenbuy PositionSize *posmax *2 contract at marketSET STOP %LOSS stpposinverposinver=1ppf=0AC=5ENDIFif shortonmarket AND open[1]>close[1] and close[1]-low[1]>2 and coeff[1]<10 and open<close and open-low>3 and coeff<3 and high-close> 5 and hh[1]>hh and hh-close>close-ll and pp>ppF-pp and positionprice>close thenexitshort at marketFIN=51endifif shortonmarket AND open[1]>close[1] and coeff[1]<2 and open>close and close-low>8 and high=open and pp>ppF-pp and positionprice>close thenbuy PositionSize *posmax *2 contract at marketSET STOP %LOSS stpposinverposinver=1ppf=0AC=6ENDIFif shortonmarket and barindex-tradeindex<5 and coeff[2]>55 and coeff[2]>coeff and hh-close>close-ll and hh-ll<100 AND open[1]>close[1] and close[1]-low[1]>3 and coeff[1]>50 and open<close and close-open<10 and open-low>5 and coeff<20 and pp>ppF-pp and positionprice>close thenexitshort at marketFIN=52endifif shortonmarket and barindex-tradeindex<8 AND OPEN[2]<close[2] and open[2]-low[2]<1 and high[2]-close[2]>10 and open[1]>close[1] and close[1]-low[1]>1 and open>close and close-low>5 and coeff[1]>coeff and coeff<8 and pp>ppF-pp and positionprice>close thenexitshort at marketFIN=53endifif shortonmarket and barindex-tradeindex<5 AND OPEN[2]<close[2] and coeff[2]<3 and open[1]<close[1] and open[1]-low[1]>3 and open[1]>MMA[1] and open>close and positionprice>close thenexitshort at marketFIN=54endifif shortonmarket and hh-close>close-ll and barindex-tradeindex<10 and MMA[1]-high[1]>mma-high and hh[1]=hh and ll[1]=ll and abs(open[2]-close[2])<1 and coeff[2]<2 and open[1]>close[1] and open<close and high[1]<high and low[1]<low and pp>ppF-pp and positionprice>close thenexitshort at marketFIN=55endifif shortonmarket and abs(open[2]-close[2])<1 and coeff[2]<1 and open[1]>close[1] and close[1]-low[1]>2 and open<close and coeff>35 and close crosses over MMA and positionprice<close thenbuy PositionSize *posmax contract at marketSET STOP %LOSS stpposinverposinver=1ppf=0AC=7ENDIFif shortonmarket and hh-ll<50 and hh[1]=hh and ll[1]=ll and MMA[1]<MMA and COEFF[2]<10 and coeff[1]<25 and coeff=100 and open<close and close crosses over MMA and positionprice<close thenbuy PositionSize *posmax contract at marketSET STOP %LOSS stpposinverposinver=1ppf=0AC=8ENDIFif shortonmarket and barindex-tradeindex<10 and open[3]>close[3] and close[3]-low[3]>5 and open[2]<close[2] and open[2]-low[2]>3 and open[1]>close[1] and open<close and low[3]<low[2] and low[2]<low[1] and low[1]<low and high[1]<high and MMA[1]-high[1]>MMA-high and pp<ppF and positionprice>close thenbuy PositionSize *posmax contract at marketSET STOP %LOSS stpposinverposinver=1ppf=0AC=9ENDIF//if shortonmarket and CD and open[2]<close[2] AND open[2]-low[2]<1 and high[2]-close[2]>6 and open[1]>close[1] and close[1]-low[1]>6 and open<close and high[1]>high and low[1]<low and positionprice<close thenbuy PositionSize *posmax contract at marketSET STOP %LOSS stpposinverposinver=1ppf=0AC=10ENDIFif shortonmarket and barindex-tradeindex<10 and MMA[1]-high[1]>MMA-High and hh[1]>hh and ll[1]=ll and hh-close>close-ll and CD and open[2]>close[2] and open[1]<close[1] and open[1]-low[1]>10 and coeff[1]<3 and abs(open-close)<1 and low[1]<low and high[1]<high and coeff[1]>coeff and coeff<2 and pp>ppF-pp and positionprice>close thenexitshort at marketFIN=56endifif shortonmarket and barindex-tradeindex<10 and hh[1]>hh and abs(open[1]-close[1])<1 and open<close and MA crosses over MMA and positionprice<close thenbuy PositionSize *posmax contract at marketSET STOP %LOSS stpposinverposinver=1ppf=0AC=11ENDIFif shortonmarket and barindex-tradeindex<10 and MA[1]>MMA[1] and open[1]>close[1] and close[1]-low[1]>4 and coeff[2]<coeff[1] and coeff[1]>coeff and open<close and open-low>6 and pp>ppF-pp and positionprice>close thenexitshort at marketFIN=57endifif shortonmarket and CD and open[2]<close[2] and open[1]<close[1] and open<close and close crosses over MA and positionprice<close thenbuy PositionSize *posmax contract at marketSET STOP %LOSS stpposinverposinver=1ppf=0AC=12ENDIFif shortonmarket and CD and open[2]>close[2] and close[2]-low[2]>15 and coeff[2]<6 and coeff[1]<coeff and open[1]>close[1] and close[1]-low[1]>8 and open<close and close crosses over MA and positionprice<close thenbuy PositionSize *posmax contract at marketSET STOP %LOSS stpposinverposinver=1ppf=0AC=13ENDIFif shortonmarket and barindex-tradeindex<30 and open[2]>close[2] and open[1]<close[1] and coeff<3 and hh[2]>hh[1] and hh[1]=hh and ll[1]=ll and pp>ppF-pp and positionprice>close thenexitshort at marketFIN=58endif// OK A METTRE DE COTEif shortonmarket AND COEFF>52 and HH[1]>HH AND LL[1]>=LL and(( open>close and close-low>10)or(open<close and open-low>10)) and positionprice>close thenexitshort at marketFIN=59endifif shortonmarket and filt=1 and pp>ppF-pp and positionprice>close thenexitshort at marketFIN=60endifif shortonmarket and coeff>80 and RSI[2](close)<2 and ll[1]>ll and open>close and close-low>10 and hh-ll<80 and MMB-MMA>5 and ll=low and pp>ppF-pp and positionprice>close thenexitshort at marketFIN=60endifif shortonmarket and high[1]<high and low[1]<low and close=high and hh-ll<90 and barindex-tradeindex>15 and hh[1]>=hh and ll[1]<=ll and abs(open[1]-close[1])<2 and coeff[1]<5 AND COEFF>15 and open<close and pp>ppF-pp and positionprice>close thenexitshort at marketFIN=61endifif shortonmarket and CD And hh[2]>hh[1] and ll[1]>ll and hh[1]=hh and open<close and open-low>8 and coeff>45 and pp>ppF-pp and positionprice>close thenexitshort at marketFIN=62endifif shortonmarket and coeff[1]>coeff and coeff<10 and MMB-MMA>5 and Myrsi crosses over Myrsi[1]and Myrsi[1]<Myrsi and hh-close>close-ll and hh-ll<40 and open<close and open-low>5 and high-close>4 and pp>ppF-pp and positionprice>close thenexitshort at marketFIN=62endifif shortonmarket and close<pivot and pivot-close>70 and MMB[1]-MMA[1]>MMB-MMA and hh[1]=hh and hh-ll>100 and dlow(0)=ll and time>090000 and close crosses over MMA and MYrsi>75 and coeff>25 and pp<-0.2 and positionprice<close thenbuy PositionSize *posmax contract at marketSET STOP %LOSS stpposinverposinver=1ppf=0AC=15ENDIFif shortonmarket and barindex-tradeindex<3 and MYrsi[1]<Myrsi and Myrsi>60 and low[1]>=low and high[1]<high and hh-ll>100 and MMB[1]-MMA[1]>MMB-MMA and open[1]>close[1] and open<close and coeff[1]<coeff and coeff>40 and pp<-0.2 and positionprice<close thenbuy PositionSize *posmax contract at marketSET STOP %LOSS stpposinverposinver=1ppf=0AC=16ENDIFif shortonmarket and barindex-tradeindex<3 and open[1]>close[1] and open[1]-low[1]>20 and ll[1]=low[1] and Low[1]<low and low[1]-ll[1]<low-ll and hh-ll>100 and high[1]>=high and open<close and coeff>15 and Myrsi[1]<Myrsi and Myrsi>30 and pp<0 and positionprice<close thenbuy PositionSize *posmax contract at marketSET STOP %LOSS stpposinverposinver=1ppf=0AC=17ENDIFif shortonmarket and pivot>weekpivot and barindex-tradeindex<10 and open[1]>close[1] and close[1]-low[1]>20 and open<close and Myrsi[1]<Myrsi and Myrsi>40 and coeff>25 and pp<=0 and positionprice<=close thenbuy PositionSize *posmax contract at marketSET STOP %LOSS stpposinverposinver=1ppf=0AC=18ENDIFif shortonmarket and high>MMA AND MMB-MMA>10 and high[1]<high and pp<-0.1 and hh-close>close-ll and dhigh(0)-hh<20 and pivot>weekpivot and MYrsi>75 and barindex-tradeindex<5 and coeff[2]<10 and coeff[1]<15 and open<close and coeff>70 and hh[1]>hh and hh-ll>70 and positionprice<=close thenbuy PositionSize *posmax contract at marketSET STOP %LOSS stpposinverposinver=0ppf=0AC=19ENDIFif shortonmarket and close>pivot and hh-ll<30 and Myrsi[1]<Myrsi and Myrsi>75 and dlow(0)<low and coeff>90 and close crosses over MMA and close crosses over MMB and MMA-MMB<1 and hh[1]<hh and ll[1]=ll and pivot>weekpivot and positionprice<=close thenbuy PositionSize *posmax contract at marketSET STOP %LOSS stpposinverposinver=0ppf=0AC=20ENDIFif shortonmarket and hh-ll>100 and close crosses over MMA and pp<-0.1 and barindex-tradeindex<3 and weekpivot>pivot and close<pivot and coeff>65 and Myrsi>70 and positionprice<=close thenbuy PositionSize *posmax contract at marketSET STOP %LOSS stpposinverposinver=0ppf=0AC=20ENDIFif shortonmarket and coeff>70 and open[1]<close[1] and open<close and close crosses over MMA and close crosses over MMB and MMA>MMB and Myrsi>75 and Myrsi[1]<Myrsi and weekpivot>pivot and close<pivot and pp<-0.1 and positionprice<=close thenbuy PositionSize *posmax contract at marketSET STOP %LOSS stpposinverposinver=0ppf=0AC=21ENDIFif shortonmarket and open[1]>close[1] and coeff[1]>50 and hh[2]>hh[1] and ll[2]>ll[1] and open<close and open-low>10 and pp>0.2 and weekpivot>pivot and close<pivot and coeff<15 and pp>ppF-pp and positionprice>close thenexitshort at marketFIN=62ENDIFif ac and vt and fin thenendif// ppb =-1.06// ppv = -1.45//graph pp//GRAPH AC//GRAPH VT//GRAPH FIN//graph weekpivot//graph pivot1 user thanked author for this post.
11/01/2019 at 9:04 PM #111873Fifi. I did not manage to find better results with the new MTF in 1 minute. Can you tell me if the code I joined with the money management is credible?
11/02/2019 at 11:01 AM #111893it does not change anything for the backtest. it’s in demo or real that it changes
Does above answer your question @francois528 ?
The add on MTF code will not – in itself – give better performance.
The add on MTF code is an attempt to have Rejected Orders presented again and so be passed through / accepted as a Trade.
We cannot test the add on MTF code in Backtest as Orders do NOT get Rejected in Backtest.
Hope my elaboration helps in understanding?
Can you tell me if the code I joined with the money management is credible?
I cannot answer the above question, sorry.
1 user thanked author for this post.
11/02/2019 at 2:17 PM #111899Ne répond à votre question ci – dessus @ francois528 ? NO
11/02/2019 at 2:24 PM #111900here is francois528
it is to modify1 user thanked author for this post.
11/02/2019 at 2:26 PM #111902remove the line 44
11/03/2019 at 3:40 PM #111930Hello everyone, a big thank you for your research work, I have been with you since the beginning and it’s exciting. I had a question @fifi743 what do you mean by “remove line 44”? should we write it like the last code you posted called “francois528”. thank you in advance . best regards
What is the right version please , or maybe it would be easier if you can post the last version ? I will be grateful because I am a little lost ^^
line 441234//// TAILLE DES POSITIONSPositionSize = 1 * positionsize//ONCE PositionSize = 1//ONCE PositionSize = 1or
line 44 in V6 version1234// TAILLE DES POSITIONSPositionSize = 1 * positionsizeONCE PositionSize = 1ONCE PositionSize = 111/03/2019 at 4:53 PM #11194311/04/2019 at 12:12 AM #111959Hello,
here is an example to control that the positions passes
Thank you very much again Fifi743. I added the MTF to v6 and it gives me an error as you can see in the image. Fifi743, can you help me please? or someone to help me? Thank you
-
AuthorPosts
Find exclusive trading pro-tools on