Richiesta indicatore
Forums › ProRealTime forum Italiano › Supporto piattaforma ProRealTime › Richiesta indicatore
- This topic has 7 replies, 3 voices, and was last updated 7 years ago by Leonida1984.
Viewing 8 posts - 1 through 8 (of 8 total)
-
-
09/03/2017 at 6:48 AM #45267
Buongiorno a tutti
devo scrivere codice per tracciare degli swing sui grafici
chi mi può aiutare ?
Mi interessa creare l’indicatore allegato in foto
grazie
09/03/2017 at 2:08 PM #45291Buongiorno MAssimo, non c’è alcuna foto.
Buona Domenica!
09/04/2017 at 12:11 PM #45349buongiorno anche io sono interessato all’inidicatore Gann Swing.
questo è un codice programma trovato sul web ma mi da dei problemi con prorealtime. c’è qualcuno che puo risolvere gli errori??
Swing123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128inputs: filter(2), stats(0);vars : xBar(0) , xHigh(0), xLow(0), xCount(0), xSwitch(0);vars : xSkip(0), xConfirm(0);vars : pBar(0) , pHigh(0), pLow(0);vars : bFirst(1);if xSwitch = 0 thenbeginif High >= xHigh thenbeginxHigh = High;xLow = Low;xBar = BarNumber;xSkip = 0;endelsebeginxSkip = xSkip + 1;if xSkip >= filter thenbeginxConfirm = 1;xCount = 1;while xCount < filterbeginif (Low[xCount] <= Low[xCount-1]) or (xLow <= Low[filter-1])thenbeginxCount = filter;xConfirm = 0;end;xCount = xCount + 1;end;if xConfirm = 1 thenbeginxSwitch = 1;if stats = 0 thenplot1[BarNumber-xBar](xHigh,"Swing")elsebeginif bFirst = 0 thenbeginplot2[BarNumber-xBar](xHigh-pLow,"Range");plot3[BarNumber-xBar](xBar -pBar,"Duration");end;bFirst = 0;end;pHigh = xHigh;pLow = xLow;pBar = xBar;xHigh = High;xLow = Low;xBar = BarNumber;xSkip = 0;end;end;end;endelsebeginif Low <= xLow thenbeginxHigh = High;xLow = Low;xBar = BarNumber;xSkip = 0;endelsebeginxSkip = xSkip + 1;if xSkip >= filter thenbeginxConfirm = 1;xCount = 1;while xCount < filterbeginif (High[xCount] >= High[xCount-1]) or (xHigh >=High[filter-1]) thenbeginxCount = filter;xConfirm = 0;end;xCount = xCount + 1;end;if xConfirm = 1 thenbeginxSwitch = 0;if stats = 0 thenplot1[BarNumber-xBar](xLow,"Swing")elsebeginplot2[BarNumber-xBar](pHigh-xLow,"Range");plot3[BarNumber-xBar](xBar -pBar,"Duration");end;pHigh = xHigh;pLow = xLow;pBar = xBar;xLow = Low;xHigh = High;xBar = BarNumber;xSkip = 0;end;end;end;end;if ((date = lastcalcdate) and (time = lastcalctime)) thenbeginif xSwitch = 0 thenbeginif stats = 0 thenplot1[BarNumber-xBar](xHigh,"Swing")elsebeginplot2[BarNumber-xBar](xHigh-pLow,"Range");plot3[BarNumber-xBar](xBar -pBar,"Duration");end;endelsebeginif stats = 0 thenplot1[BarNumber-xBar](xLow,"Swing")elsebeginplot2[BarNumber-xBar](pHigh-xLow,"Range");plot3[BarNumber-xBar](xBar -pBar,"Duration");end;end;end;Swing123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128inputs: filter(2), stats(0);vars : xBar(0) , xHigh(0), xLow(0), xCount(0), xSwitch(0);vars : xSkip(0), xConfirm(0);vars : pBar(0) , pHigh(0), pLow(0);vars : bFirst(1);if xSwitch = 0 thenbeginif High >= xHigh thenbeginxHigh = High;xLow = Low;xBar = BarNumber;xSkip = 0;endelsebeginxSkip = xSkip + 1;if xSkip >= filter thenbeginxConfirm = 1;xCount = 1;while xCount < filterbeginif (Low[xCount] <= Low[xCount-1]) or (xLow <= Low[filter-1])thenbeginxCount = filter;xConfirm = 0;end;xCount = xCount + 1;end;if xConfirm = 1 thenbeginxSwitch = 1;if stats = 0 thenplot1[BarNumber-xBar](xHigh,"Swing")elsebeginif bFirst = 0 thenbeginplot2[BarNumber-xBar](xHigh-pLow,"Range");plot3[BarNumber-xBar](xBar -pBar,"Duration");end;bFirst = 0;end;pHigh = xHigh;pLow = xLow;pBar = xBar;xHigh = High;xLow = Low;xBar = BarNumber;xSkip = 0;end;end;end;endelsebeginif Low <= xLow thenbeginxHigh = High;xLow = Low;xBar = BarNumber;xSkip = 0;endelsebeginxSkip = xSkip + 1;if xSkip >= filter thenbeginxConfirm = 1;xCount = 1;while xCount < filterbeginif (High[xCount] >= High[xCount-1]) or (xHigh >=High[filter-1]) thenbeginxCount = filter;xConfirm = 0;end;xCount = xCount + 1;end;if xConfirm = 1 thenbeginxSwitch = 0;if stats = 0 thenplot1[BarNumber-xBar](xLow,"Swing")elsebeginplot2[BarNumber-xBar](pHigh-xLow,"Range");plot3[BarNumber-xBar](xBar -pBar,"Duration");end;pHigh = xHigh;pLow = xLow;pBar = xBar;xLow = Low;xHigh = High;xBar = BarNumber;xSkip = 0;end;end;end;end;if ((date = lastcalcdate) and (time = lastcalctime)) thenbeginif xSwitch = 0 thenbeginif stats = 0 thenplot1[BarNumber-xBar](xHigh,"Swing")elsebeginplot2[BarNumber-xBar](xHigh-pLow,"Range");plot3[BarNumber-xBar](xBar -pBar,"Duration");end;endelsebeginif stats = 0 thenplot1[BarNumber-xBar](xLow,"Swing")elsebeginplot2[BarNumber-xBar](pHigh-xLow,"Range");plot3[BarNumber-xBar](xBar -pBar,"Duration");end;end;end;09/04/2017 at 2:10 PM #45368inputs: filter(2), stats(0);vars : xBar(0) , xHigh(0), xLow(0), xCount(0), xSwitch(0);vars : xSkip(0), xConfirm(0);vars : pBar(0) , pHigh(0), pLow(0);vars : bFirst(1);Questa parte non va dichiarata su Prorealtime.Inoltre devi togliere tutte le punteggiature (;)09/04/2017 at 2:18 PM #45370Devi assegnare un valore alla variabile begin. Anche se a intuito penso vada tolta.
09/04/2017 at 2:43 PM #4537209/04/2017 at 2:57 PM #4537409/04/2017 at 6:20 PM #45413Ci sarà sicuramente qualche end in più o in meno. Verifica.
buona giornata!
-
AuthorPosts
Viewing 8 posts - 1 through 8 (of 8 total)
Find exclusive trading pro-tools on
Similar topics: