Pan Peter
Uncino non usa + il bidet
- Registrato
- 11/6/01
- Messaggi
- 2.003
- Punti reazioni
- 96
Per cortesia, qlc1 può indicarmi la via?
come posso modificate tale codice:
{*******************************************************************
Description : This Function returns FindBar
Provided By : Omega Research, Inc. (c) Copyright 1999
********************************************************************}
Inputs: TrgtDate(NumericSimple), TrgtTime(NumericSimple);
Variables : Return(0), Loop(0), Found(FALSE);
If MaxBarsBack > 50 Then
value1 = value1[MaxBarsBack]
Else
value1 = value1[50];
Return = -1 ;
Loop = 0 ;
Found = FALSE ;
While Loop < MaxBarsBack AND Found = False Begin
If Date[Loop] = TrgtDate AND Time[Loop] = TrgtTime Then Begin
Found = True;
Return = Loop;
End
Else
Loop = Loop + 1;
End;
FindBar = Return;
**********************************************
in modo tale da avere il N° di candele oltre 50?
(oltre 50 plotta -1, alias il Return = -1
ho modificato
Else
value1 = value1[50];
con
Else
value1 = value1[100];
se la TL va oltre 100 sono punto e a capo, aumentando tale valore oltre 100 non plotta +.
Grazie

come posso modificate tale codice:
{*******************************************************************
Description : This Function returns FindBar
Provided By : Omega Research, Inc. (c) Copyright 1999
********************************************************************}
Inputs: TrgtDate(NumericSimple), TrgtTime(NumericSimple);
Variables : Return(0), Loop(0), Found(FALSE);
If MaxBarsBack > 50 Then
value1 = value1[MaxBarsBack]
Else
value1 = value1[50];
Return = -1 ;
Loop = 0 ;
Found = FALSE ;
While Loop < MaxBarsBack AND Found = False Begin
If Date[Loop] = TrgtDate AND Time[Loop] = TrgtTime Then Begin
Found = True;
Return = Loop;
End
Else
Loop = Loop + 1;
End;
FindBar = Return;
**********************************************
in modo tale da avere il N° di candele oltre 50?
(oltre 50 plotta -1, alias il Return = -1
ho modificato
Else
value1 = value1[50];
con
Else
value1 = value1[100];
se la TL va oltre 100 sono punto e a capo, aumentando tale valore oltre 100 non plotta +.
Grazie