I have following question:
Here is a part of my EFS trading system and the rules are:
1) If L1 is true enter a long position
2) If S1 is true close the long position
3) If S1 and S2 is true a short shall be entered
*********EFS system start************************
****************EFS system end********************
Somebody told me that this is logically incorrect. Would be great is you could take a look on this
Best regards
Achim
Here is a part of my EFS trading system and the rules are:
1) If L1 is true enter a long position
2) If S1 is true close the long position
3) If S1 and S2 is true a short shall be entered
*********EFS system start************************
PHP Code:
//if long and S1 = true, exit long and if S2 = true, enter short
if (Strategy.isLong()) {
if (bCondS1) {
exit_long(open());
if (bCondS2) enter_short(open());
}
}
//if flat or short and L1 = true, enter long
else if (bCondL1) {
if (Strategy.isShort()) exit_short(open());
enter_long(open());
}
//if flat and S1,S2 = true, enter short
else if (Strategy.isInTrade() == false) {
if (bCondS1 && bCondS2) {
enter_short(open());
}
}
Somebody told me that this is logically incorrect. Would be great is you could take a look on this
Best regards
Achim
Comment