Code:
//Wird im Variablenbereich geschrieben
enum BEDINGUNG1
{
a_KEINE=0,
a_SMA20=1,
a_SMA30=2
};
input BEDINGUNG1 BD1=1;
enum BEDINGUNG2
{
b_KEINE=0,
b_SMA20=1,
b_SMA30=2
};
input BEDINGUNG2 BD2=2;
void OnTick()
{...
BEDINGUNG1();
BEDINGUNG2();
}
// Am Ende des Programms
void BEDINGUNG1()
{
if (BD1==0) return; //Also wenn ich "Bedingung1" nicht auswählen möchte ?
if (BD1==1) {Entry soll meinetwegen SMA20 sein)
if (BD1==2) {Entry soll meinetwegen SMA30 sein)
}
void BEDINGUNG2()
{
if (BD2==0) return; //Also wenn ich "Bedingung2" nicht auswählen möchte ?
if (BD2==1) {Entry soll meinetwegen SMA20 sein)
if (BD2==2) {Entry soll meinetwegen SMA30 sein)
}
traderdoc