Discussione: Bee trader_ le funzioni che vorrei
Visualizzazione Elencata
-
25-10-13, 12:53 #10
- Data Registrazione
- Sep 2013
- Località
- Monza
- Messaggi
- 186
Salve Max,
accontentato ancora prima di formulare la richiesta.
Grazie !!!
Approfitto di questo post per ulteriori richieste.
-
Nel codice postato da BMM nel linguaggio di Amibroker
(http://www.playoptions.it/vbforum/sh...ll=1#post65902)
ho visto che la funzione IFF equivalente dell'IF di beeTrade ha una caratteristica a mio parere molto interessante.
-
E' possibile nidificare all'interno della stessa riga di codice più istruzioni IFF, ovvero BMM scrive:
SogliaPidiUp = IIf( O > Ref( P, -1 ) ,
IIf( StrikeUP < Ref( R1, -1 ) , Ref( R1, -1 ) , IIf( StrikeUP < Ref( R2, -1 ), StrikeUP , Ref( R2, -1 ) ) ),
IIf( StrikeUP < Ref( P, -1 ) , Ref( P, -1 ), IIf( StrikeUP < Ref( R1, -1 ), StrikeUP , Ref( R1, -1 ) ) ) );
SogliaPidiDown = IIf( O < Ref( P, -1 ) ,
IIf( StrikeDown > Ref( S1, -1 ) , Ref( S1, -1 ) , IIf( StrikeDown > Ref( S2, -1 ), StrikeDown , Ref( S2, -1 ) ) ),
IIf( StrikeDown > Ref( P, -1 ) , Ref( P, -1 ), IIf( StrikeDown > Ref( S1, -1 ), StrikeDown , Ref( S1, -1 ) ) ) );
Forse complesso da decifrare, ma flessibile.
Sarebbe possibile aggiungere questa possibilità anche in beeTrader ?
Saluti
MassimoUltima modifica di maxmax68; 25-10-13 alle 21:43