Schaff trend cycle visualtrader

  • Creatore Discussione Creatore Discussione superbaffone
  • Data di Inizio Data di Inizio
la demo di VT 5.4 è ingestibile si impalla appena si tenta di cambiare il time frame di un titolo, capita anche a voi?
 
nella beta 5.4 basta mettere
Codice:
Input: TCLen(10), MA1(23), MA2(50);
//Input: TCLen(NumericSimple), MA1(NumericSimple), MA2(NumericSimple);

Var: XMac(0), Frac1(0), PF(0), PFF(0), Frac2(0), Factor(.5),
value1, value2, value3, value4, SchaffTC;

SETCALCOSCARRAY(true);

{Calculate a MACD Line}
XMac = MACD(c,MA1,MA2) ;

{1st Stochastic: Calculate Stochastic of a MACD}
Value1 = LLV(XMac, TCLen);
Value2 = HHV(XMac, TCLen) - Value1;

{%FastK of MACD}
Frac1 = IIF(Value2 > 0, ((XMac - Value1) / Value2) * 100, Frac1[1]);

{Smoothed calculation for %FastD of MACD}
PF = IIF(CurrentBar<=1, Frac1, PF[1] + (Factor * (Frac1 - PF[1])) );

{2nd Stochastic: Calculate Stochastic of Smoothed Percent FastD, ‘PF’, above.}
Value3 = LLV(PF, TCLen);
Value4 = HHV(PF, TCLen) - Value3;

{%FastK of PF}
Frac2 = IIF(Value4 > 0, ((PF - Value3) / Value4) * 100, Frac2[1]);

{Smoothed calculation for %FastD of PF}
PFF = IIF(CurrentBar<=1, Frac2, PFF[1] + (Factor * (Frac2 - PFF[1])));

plotchartNoZero(PFF, 1, red, solid, 1);

ho notato che l'indicatore aspetta la chiusura della candela per aggiornarsi, è possibile avere l'aggiornamento in tempo reale?
 
per chi fosse interessato ecco la procedura per usare time frame diversi da quelli impostati dal programma


http://codebase.mql4.com/277

"The steps to use the script after installing is almost same as the default MT4 period converter.
Use this script to make nonstandard timeframe of symbol based on standard timeframe. For example, to make 3-hours timeframe H3 for selected symbol you
should:
1. Open H1 chart.
2. Attach to chart 'Period_converter_opt.mq4' MQL4 file from 'Custom Indicator' folder of 'Navigator' window.
3. On 'Common' tab check 'Allow DLL imports' checkbox.
4. On 'Inputs' properties tab please set 'PeriodMultiplier' variable value to 3 (you'll get H1*3 = H3).
5. Click OK.
6. Open H3 chart in offline mode ('File – Open Offline'). H3 chart will be updated real-time (by default) while H1 chart with attached 'Period_converter_opt.mq4'
running.
 
non e' possibile, il calcolo di tutti i TS di tutti i generi sono effettuati a candela ultimata, altrimenti darebbero indicazioni diverse attimo dopo attimo

ciao

proprio quello mi interessa, sai dirmi cosa devo modificare per poter rendere l'indicatore operativo all'ultima candela?

Grazie
 

Users who are viewing this thread

Back
Alto