Skip to content

Commit

Permalink
Adds more tests for indicators
Browse files Browse the repository at this point in the history
  • Loading branch information
kenorb committed Jun 21, 2023
1 parent b22c2a4 commit 2ca9366
Show file tree
Hide file tree
Showing 14 changed files with 502 additions and 0 deletions.
36 changes: 36 additions & 0 deletions Indicators/Bitwise/tests/Indi_Candle.test.cpp
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
//+------------------------------------------------------------------+
//| EA31337 framework |
//| Copyright 2016-2023, EA31337 Ltd |
//| https://ea31337.github.io |
//+------------------------------------------------------------------+

/*
* This file is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <https://www.gnu.org/licenses/>.
*/

/**
* @file
* Test C++ compilation of Indi_Candle indicator class.
*/

// Includes.
#include "../Indi_Candle.mqh"

#include "../../../Platform/Platform.h"

int main(int argc, char **argv) {
// @todo

return 0;
}
36 changes: 36 additions & 0 deletions Indicators/Bitwise/tests/Indi_Pattern.test.cpp
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
//+------------------------------------------------------------------+
//| EA31337 framework |
//| Copyright 2016-2023, EA31337 Ltd |
//| https://ea31337.github.io |
//+------------------------------------------------------------------+

/*
* This file is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <https://www.gnu.org/licenses/>.
*/

/**
* @file
* Test C++ compilation of Indi_Pattern indicator class.
*/

// Includes.
#include "../Indi_Pattern.mqh"

#include "../../../Platform/Platform.h"

int main(int argc, char **argv) {
// @todo

return 0;
}
36 changes: 36 additions & 0 deletions Indicators/Oscillator/tests/Indi_Stochastic.test.cpp
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
//+------------------------------------------------------------------+
//| EA31337 framework |
//| Copyright 2016-2023, EA31337 Ltd |
//| https://ea31337.github.io |
//+------------------------------------------------------------------+

/*
* This file is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <https://www.gnu.org/licenses/>.
*/

/**
* @file
* Test C++ compilation of Indi_Stochastic class.
*/

// Includes.
#include "../Indi_Stochastic.h"

#include "../../../Platform/Platform.h"

int main(int argc, char **argv) {
// @todo

return 0;
}
36 changes: 36 additions & 0 deletions Indicators/Oscillator/tests/Indi_WPR.test.cpp
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
//+------------------------------------------------------------------+
//| EA31337 framework |
//| Copyright 2016-2023, EA31337 Ltd |
//| https://ea31337.github.io |
//+------------------------------------------------------------------+

/*
* This file is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <https://www.gnu.org/licenses/>.
*/

/**
* @file
* Test C++ compilation of Indi_WPR class.
*/

// Includes.
#include "../Indi_WPR.h"

#include "../../../Platform/Platform.h"

int main(int argc, char **argv) {
// @todo

return 0;
}
36 changes: 36 additions & 0 deletions Indicators/Price/tests/Indi_AppliedPrice.test.cpp
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
//+------------------------------------------------------------------+
//| EA31337 framework |
//| Copyright 2016-2023, EA31337 Ltd |
//| https://ea31337.github.io |
//+------------------------------------------------------------------+

/*
* This file is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <https://www.gnu.org/licenses/>.
*/

/**
* @file
* Test C++ compilation of Indi_AppliedPrice class.
*/

// Includes.
#include "../Indi_AppliedPrice.h"

#include "../../../Platform/Platform.h"

int main(int argc, char **argv) {
// @todo

return 0;
}
36 changes: 36 additions & 0 deletions Indicators/Price/tests/Indi_MA.test.cpp
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
//+------------------------------------------------------------------+
//| EA31337 framework |
//| Copyright 2016-2023, EA31337 Ltd |
//| https://ea31337.github.io |
//+------------------------------------------------------------------+

/*
* This file is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <https://www.gnu.org/licenses/>.
*/

/**
* @file
* Test C++ compilation of Indi_MA class.
*/

// Includes.
#include "../Indi_MA.h"

#include "../../../Platform/Platform.h"

int main(int argc, char **argv) {
// @todo

return 0;
}
36 changes: 36 additions & 0 deletions Indicators/PriceMulti/tests/Indi_Alligator.test.cpp
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
//+------------------------------------------------------------------+
//| EA31337 framework |
//| Copyright 2016-2023, EA31337 Ltd |
//| https://ea31337.github.io |
//+------------------------------------------------------------------+

/*
* This file is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <https://www.gnu.org/licenses/>.
*/

/**
* @file
* Test C++ compilation of Indi_Alligator class.
*/

// Includes.
#include "../Indi_Alligator.h"

#include "../../../Platform/Platform.h"

int main(int argc, char **argv) {
// @todo

return 0;
}
36 changes: 36 additions & 0 deletions Indicators/PriceRange/tests/Indi_Bands.test.cpp
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
//+------------------------------------------------------------------+
//| EA31337 framework |
//| Copyright 2016-2023, EA31337 Ltd |
//| https://ea31337.github.io |
//+------------------------------------------------------------------+

/*
* This file is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <https://www.gnu.org/licenses/>.
*/

/**
* @file
* Test C++ compilation of Indi_Bands class.
*/

// Includes.
#include "../Indi_Bands.h"

#include "../../../Platform/Platform.h"

int main(int argc, char **argv) {
// @todo

return 0;
}
36 changes: 36 additions & 0 deletions Indicators/PriceRange/tests/Indi_Envelopes.test.cpp
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
//+------------------------------------------------------------------+
//| EA31337 framework |
//| Copyright 2016-2023, EA31337 Ltd |
//| https://ea31337.github.io |
//+------------------------------------------------------------------+

/*
* This file is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <https://www.gnu.org/licenses/>.
*/

/**
* @file
* Test C++ compilation of Indi_Envelopes class.
*/

// Includes.
#include "../Indi_Envelopes.h"

#include "../../../Platform/Platform.h"

int main(int argc, char **argv) {
// @todo

return 0;
}
35 changes: 35 additions & 0 deletions Indicators/PriceRange/tests/Indi_Pivot.test.cpp
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
//+------------------------------------------------------------------+
//| EA31337 framework |
//| Copyright 2016-2023, EA31337 Ltd |
//| https://ea31337.github.io |
//+------------------------------------------------------------------+

/*
* This file is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <https://www.gnu.org/licenses/>.
*/

/**
* @file
* Test C++ compilation of Indi_Pivot class.
*/

// Includes.
#include "../Indi_Pivot.h"
#include "../../../Platform/Platform.h"

int main(int argc, char **argv) {
// @todo

return 0;
}
Loading

0 comments on commit 2ca9366

Please sign in to comment.