Geschrieben 3. Oktober 201114 Jr. comment_123358 Ich versuche Formate zu wahren => //+-----------------------------------------------------------------------------------------------+ //| Ernten_Goodtime.mqh | //| The code should be used for Ernten only | //+-----------------------------------------------------------------------------------------------+ //+-----------------------------------------------------------------------------------------------+ //| function : checks if EA is allowed to trade or off-time | //+-----------------------------------------------------------------------------------------------+ // | int GoodTime() // | { // | if((Tradinghour1 <= Hour()) && (Tradinghour2 > Hour()) || // | (Tradinghour3 <= Hour()) && (Tradinghour4 > Hour()) || // | (Tradinghour5 <= Hour()) && (Tradinghour6 > Hour())) // | // | return(1); // | else // | return(0); // | } // | //------------------------------------------------------------------------------------------------+ Das ist ohne RTE KB Melden
Geschrieben 3. Oktober 201114 Jr. Autor comment_123359 und nun mit dem RTE : //+-----------------------------------------------------------------------------------------------+ //| Ernten_Goodtime.mqh | //| The code should be used for Ernten only | //+-----------------------------------------------------------------------------------------------+ //+-----------------------------------------------------------------------------------------------+ //| function : checks if EA is allowed to trade or off-time | //+-----------------------------------------------------------------------------------------------+ // | int GoodTime() // | { // | if((Tradinghour1 <= Hour()) && (Tradinghour2 > Hour()) || // | (Tradinghour3 <= Hour()) && (Tradinghour4 > Hour()) || // | (Tradinghour5 <= Hour()) && (Tradinghour6 > Hour())) // | // | return(1); // | else // | return(0); // | } // | //------------------------------------------------------------------------------------------------+ Und was lernt der KB ? Ohne RTE ist besser als mit RTE . KB Melden
Ich versuche Formate zu wahren =>
//+-----------------------------------------------------------------------------------------------+ //| Ernten_Goodtime.mqh | //| The code should be used for Ernten only | //+-----------------------------------------------------------------------------------------------+ //+-----------------------------------------------------------------------------------------------+ //| function : checks if EA is allowed to trade or off-time | //+-----------------------------------------------------------------------------------------------+ // | int GoodTime() // | { // | if((Tradinghour1 <= Hour()) && (Tradinghour2 > Hour()) || // | (Tradinghour3 <= Hour()) && (Tradinghour4 > Hour()) || // | (Tradinghour5 <= Hour()) && (Tradinghour6 > Hour())) // | // | return(1); // | else // | return(0); // | } // | //------------------------------------------------------------------------------------------------+Das ist ohne RTE
KB