Bene dopo molto son venuta a capo del codice che fa al caso mio.
Se qualcuno potesse aiutarmi a migliorarlo.
- Non individua tutti massimi e minimi realtivi, se lo plottate lo vedrete da voi...e qui non ho idea di come fare.
- Sarebbe bello poter anche far in modo che individui i DT e i DB (double top) (double bottom).
Posto il codice.Ringrazio anticipatamente
Codice:VAR: swing, count(0), setup_min(0), setup_max(0); // Otteniamo il valore dello swing chart per questa barra swing = SwingChart(C); if (swing = swing[1]) then // contatore Inc(count); else if (count >= 3) then if (swing < swing[1]) then if (setup_min = 1) then DrawText(CREATEOGG, 0, D, L, "LL", L, BLACK, 9,3+2,AlLeft); endif; setup_min = 0; setup_max = 1; else if (setup_max = 1) then endif; DrawText(createOGG, 0, D, H, "HH", BLACK, 9, 3+2, AlLeft); setup_max = 0; setup_min = 1; endif; else setup_min = 0; setup_max = 0; endif; count = 0; endif;
CORRETTO IL SECONDO DROW, PER IL RESTO ??????????? MA!!
DrawText(createOGG, 0, D, H, "HH", H, BLACK, 9, 3+2, AlLeft);

e qui mi fermo perchè non so come fare...
