gestire una CALL in TIMEFRAME
Forums › ProRealTime forum Italiano › Supporto ProOrder › gestire una CALL in TIMEFRAME
- This topic has 3 replies, 2 voices, and was last updated 3 years ago by
robertogozzi.
-
-
04/01/2022 at 11:56 AM #190955
ciao è il mio primo topic quindi spero di non essere troppo sciocco o invadente
Sto provando a gestire una strategia su più TIMEFRAME e per carcare di capire come si comporta ho visualizzato in grafico i dati ottenuti ma non capisco perchè i risultati di una CALL in certi momenti siano come bloccati e fissi mentre in altri sono corretti. Ho allegato il programma (DAX_TFmulti) che sto testando e il programma dell’indicatore chiamato (HalfTrend) nonchè due screenshot dove si vede chiaramente che in quello chiamato “DAX_TFmulti ok” i dati calcolati nei vari timeframe coincidono mentre nell’altro screenshot sono completamente diversi e rimangono diversi per periodi di tempo diversi a volte anche per ore ??
Se potete aiutarmi vi sarei veramente grato xchè io non ci arrivo
Grazie 1000 comunque
04/01/2022 at 5:41 PM #191000A meno che non sia un file lunghissimo (centinaia di linee), è sempre meglio, oltre ad allegare il file ITF, anche postare il testo del codice:
12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485defparam preloadbars=200DEFPARAM CumulateOrders = FalseDEFPARAM FLATbefore = 073000DEFPARAM FLATafter = 183000startrade=090000stoptrade=173000once numcontr=0.5timeframe(15 minutes)HT15 = CALL "PRC_HalfTrend"[2]timeframe(5 minutes,updateonclose)HT05x = CALL "PRC_HalfTrend"[2]LSMA05=EndPointAverage[7](close)EMA05=ExponentialAverage[4](close)CCI05=CCI[14](typicalPrice)timeframe(5 minutes)HT05 = CALL "PRC_HalfTrend"[2]timeframe(default,updateonclose) // 1 minxbuy=0xsell=0exitlg=0exitsh=0HT = CALL "PRC_HalfTrend"[2]LSMA=EndPointAverage[7](close)if LSMA>HT and LSMA>HT05 and LSMA>HT15 thenxbuy=1elsif LSMA<HT and LSMA<HT05 and LSMA<HT15 thenxsell=1endifif ShortOnMarket then//if ..... then//exitsh=1elsif LongOnMarket then//if ..... then//exitlg=1endifstopd=50if not onmarket and time >= startrade and time <= stoptrade thenIF xbuy thenBUY numcontr CONTRACTS AT MARKETSET STOP PTRAILING stopdelsIF xsell thensellSHORT numcontr contrACTS AT MARKETSET STOP PTRAILING stopdendifendifIF LongOnMarket thenif xsell and time >= startrade and time <= stoptrade thensell at marketsellSHORT numcontr contrACTS AT MARKETSET STOP PTRAILING stopdelsIF exitlg thensell at marketendifENDIFIF ShortOnMarket thenIF xbuy and time >= startrade and time <= stoptrade thenexitshort at marketBUY numcontr CONTRACTS AT MARKETSET STOP PTRAILING stopdelsIF exitsh thenexitshort at marketENDIFENDIFGRAPH 0 COLOURED (0,250,0) as "0"GRAPH CCI05 COLOURED (0,0,255) as "CCI05"GRAPHonPRICE HT05 COLOURED (250,0,0) as "HT05"GRAPHonPRICE HT05x COLOURED (0,0,250) as "HT05x"GRAPHonPRICE HT15 COLOURED (250,50,250) as "HT15"GRAPHonPRICE HT COLOURED (0,50,0) as "HT"GRAPHonPRICE LSMA05 COLOURED (0,0,0) as "LSMA05"Prova a commentare la riga 1 (le barre precaricate), o addirittura lasciarla ma scriverci 10000 (è il massimo).
04/01/2022 at 9:25 PM #19100804/02/2022 at 11:04 AM #191034Anch’io ho notato delle differenze, ma non riesco a identificarne il motivo.
Prova a chiedere direttamente a PRT, premendo Ctrl+M dalla piattaforma, oppure telefonandogli.
-
AuthorPosts
Find exclusive trading pro-tools on