Skip to content

Commit

Permalink
Moves Indicator and IndicatorBase into Indicator/
Browse files Browse the repository at this point in the history
  • Loading branch information
kenorb committed Aug 8, 2022
1 parent ec62fc0 commit d0b8d22
Show file tree
Hide file tree
Showing 97 changed files with 137 additions and 136 deletions.
1 change: 1 addition & 0 deletions .github/workflows/test-indicator.yml
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,7 @@ jobs:
matrix:
test:
- IndicatorCandle.test
- Indicator.test
- IndicatorTf.test
- IndicatorTick.test
steps:
Expand Down
1 change: 0 additions & 1 deletion .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,6 @@ jobs:
- DatabaseTest
- DrawIndicatorTest
- EATest
- IndicatorTest
- IndicatorsTest
- MailTest
- MarketTest
Expand Down
2 changes: 1 addition & 1 deletion Account/AccountMt.h
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ class AccountMt;
#include "../Chart.mqh"
#include "../Convert.mqh"
#include "../Data.struct.h"
#include "../Indicator.struct.h"
#include "../Indicator/Indicator.struct.h"
#include "../Order.struct.h"
#include "../Orders.mqh"
#include "../Serializer.mqh"
Expand Down
2 changes: 1 addition & 1 deletion BufferFXT.mqh
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
#include "Account/AccountMt.h"
#include "Chart.mqh"
#include "DictStruct.mqh"
#include "IndicatorBase.h"
#include "Indicator/IndicatorBase.h"
#include "Object.mqh"

// Defines.
Expand Down
File renamed without changes.
File renamed without changes.
28 changes: 14 additions & 14 deletions Indicator.mqh → Indicator/Indicator.h
Original file line number Diff line number Diff line change
Expand Up @@ -25,27 +25,27 @@
#define INDICATOR_MQH

// Includes.
#include "Array.mqh"
#include "BufferStruct.mqh"
#include "DateTime.mqh"
#include "DrawIndicator.mqh"
#include "Flags.h"
#include "../Array.mqh"
#include "../BufferStruct.mqh"
#include "../DateTime.mqh"
#include "../DrawIndicator.mqh"
#include "../Flags.h"
#include "../Math.h"
#include "../Object.mqh"
#include "../Refs.mqh"
#include "../Serializer.mqh"
#include "../SerializerCsv.mqh"
#include "../SerializerJson.mqh"
#include "../Storage/ValueStorage.h"
#include "../Storage/ValueStorage.indicator.h"
#include "../Storage/ValueStorage.native.h"
#include "Indicator.define.h"
#include "Indicator.enum.h"
#include "Indicator.struct.cache.h"
#include "Indicator.struct.h"
#include "Indicator.struct.serialize.h"
#include "Indicator.struct.signal.h"
#include "IndicatorBase.h"
#include "Math.h"
#include "Object.mqh"
#include "Refs.mqh"
#include "Serializer.mqh"
#include "SerializerCsv.mqh"
#include "SerializerJson.mqh"
#include "Storage/ValueStorage.h"
#include "Storage/ValueStorage.indicator.h"
#include "Storage/ValueStorage.native.h"

#ifndef __MQL4__
// Defines global functions (for MQL4 backward compatibility).
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,8 @@
#endif

// Includes.
#include "Refs.mqh"
#include "Storage/ValueStorage.h"
#include "../Refs.mqh"
#include "../Storage/ValueStorage.h"

/**
* Holds buffers used to cache values calculated via OnCalculate methods.
Expand Down
12 changes: 6 additions & 6 deletions Indicator.struct.h → Indicator/Indicator.struct.h
Original file line number Diff line number Diff line change
Expand Up @@ -36,14 +36,14 @@ class Indicator;
struct ChartParams;

// Includes.
#include "Array.mqh"
#include "Chart.struct.tf.h"
#include "Data.struct.h"
#include "DateTime.struct.h"
#include "../Array.mqh"
#include "../Chart.struct.tf.h"
#include "../Data.struct.h"
#include "../DateTime.struct.h"
#include "../SerializerNode.enum.h"
#include "../Storage/ValueStorage.indicator.h"
#include "Indicator.enum.h"
#include "Indicator.struct.cache.h"
#include "SerializerNode.enum.h"
#include "Storage/ValueStorage.indicator.h"

// Type-less value for IndicatorDataEntryValue structure.
union IndicatorDataEntryTypelessValue {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
* Includes Indicator's struct serializers.
*/

#include "Serializer.mqh"
#include "../Serializer.mqh"

// Forward class declaration.
class Serializer;
Expand Down
File renamed without changes.
38 changes: 19 additions & 19 deletions IndicatorBase.h → Indicator/IndicatorBase.h
Original file line number Diff line number Diff line change
Expand Up @@ -34,31 +34,31 @@
class Chart;

// Includes.
#include "Array.mqh"
#include "BufferStruct.mqh"
#include "Chart.mqh"
#include "Chart.struct.tf.h"
#include "ChartBase.h"
#include "ChartMt.h"
#include "DateTime.mqh"
#include "DrawIndicator.mqh"
#include "Flags.h"
#include "../Array.mqh"
#include "../BufferStruct.mqh"
#include "../Chart.mqh"
#include "../Chart.struct.tf.h"
#include "../ChartBase.h"
#include "../ChartMt.h"
#include "../DateTime.mqh"
#include "../DrawIndicator.mqh"
#include "../Flags.h"
#include "../Log.mqh"
#include "../Object.mqh"
#include "../Refs.mqh"
#include "../Serializer.mqh"
#include "../SerializerCsv.mqh"
#include "../SerializerJson.mqh"
#include "../Storage/ValueStorage.h"
#include "../Storage/ValueStorage.indicator.h"
#include "../Storage/ValueStorage.native.h"
#include "../Util.h"
#include "Indicator.define.h"
#include "Indicator.enum.h"
#include "Indicator.struct.cache.h"
#include "Indicator.struct.h"
#include "Indicator.struct.serialize.h"
#include "Indicator.struct.signal.h"
#include "Log.mqh"
#include "Object.mqh"
#include "Refs.mqh"
#include "Serializer.mqh"
#include "SerializerCsv.mqh"
#include "SerializerJson.mqh"
#include "Storage/ValueStorage.h"
#include "Storage/ValueStorage.indicator.h"
#include "Storage/ValueStorage.native.h"
#include "Util.h"

/**
* Class to deal with indicators.
Expand Down
2 changes: 1 addition & 1 deletion Indicator/IndicatorCandle.h
Original file line number Diff line number Diff line change
Expand Up @@ -32,14 +32,14 @@
// Includes.
#include "../Buffer/BufferCandle.h"
#include "../Candle.struct.h"
#include "../Indicator.mqh"
#include "../Storage/ValueStorage.price_median.h"
#include "../Storage/ValueStorage.price_typical.h"
#include "../Storage/ValueStorage.price_weighted.h"
#include "../Storage/ValueStorage.spread.h"
#include "../Storage/ValueStorage.tick_volume.h"
#include "../Storage/ValueStorage.time.h"
#include "../Storage/ValueStorage.volume.h"
#include "Indicator.h"
#include "TickBarCounter.h"

// Indicator modes.
Expand Down
2 changes: 1 addition & 1 deletion Indicator/IndicatorTf.struct.h
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
#endif

// Includes.
#include "../Indicator.struct.h"
#include "Indicator.struct.h"

/* Structure for IndicatorTf class parameters. */
struct IndicatorTfParams : IndicatorParams {
Expand Down
4 changes: 2 additions & 2 deletions Indicator/IndicatorTick.h
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,8 @@

// Includes.
#include "../Buffer/BufferTick.h"
#include "../Indicator.mqh"
#include "../Indicator.struct.h"
#include "Indicator.h"
#include "Indicator.struct.h"

// Indicator modes.
enum ENUM_INDI_TICK_MODE {
Expand Down
2 changes: 1 addition & 1 deletion Indicator/IndicatorTickSource.h
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
#endif

// Includes.
#include "../Indicator.mqh"
#include "Indicator.h"

/**
* Indicator to be used with IndicatorTick as a data source.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
//+------------------------------------------------------------------+
//| EA31337 framework |
//| Copyright 2016-2021, EA31337 Ltd |
//| Copyright 2016-2022, EA31337 Ltd |
//| https://github.com/EA31337 |
//+------------------------------------------------------------------+

Expand All @@ -25,4 +25,4 @@
*/

// Includes.
#include "IndicatorTest.mq5"
#include "Indicator.test.mq5"
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
//+------------------------------------------------------------------+
//| EA31337 framework |
//| Copyright 2016-2021, EA31337 Ltd |
//| Copyright 2016-2022, EA31337 Ltd |
//| https://github.com/EA31337 |
//+------------------------------------------------------------------+

Expand All @@ -25,8 +25,8 @@
*/

// Includes.
#include "../Indicator.mqh"
#include "../Test.mqh"
#include "../Indicator.h"
#include "../../Test.mqh"

/**
* Implements OnInit().
Expand Down
2 changes: 1 addition & 1 deletion Indicator/tests/classes/Indicators.h
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
#endif

// Includes.
#include "../../../IndicatorBase.h"
#include "../../../Indicator/IndicatorBase.h"
#include "../../../Refs.mqh"

/**
Expand Down
2 changes: 1 addition & 1 deletion Indicators/Bitwise/Indi_Candle.mqh
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
// Includes.
#include "../../Bar.struct.h"
#include "../../BufferStruct.mqh"
#include "../../Indicator.mqh"
#include "../../Indicator/Indicator.h"
#include "../../Pattern.struct.h"
#include "../../Serializer.mqh"
#include "../Price/Indi_Price.mqh"
Expand Down
2 changes: 1 addition & 1 deletion Indicators/Bitwise/Indi_Pattern.mqh
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
// Includes.
#include "../../Bar.struct.h"
#include "../../BufferStruct.mqh"
#include "../../Indicator.mqh"
#include "../../Indicator/Indicator.h"
#include "../../Pattern.struct.h"
#include "../../Serializer.mqh"
#include "../Price/Indi_Price.mqh"
Expand Down
2 changes: 1 addition & 1 deletion Indicators/Indi_AC.mqh
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@

// Includes.
#include "../BufferStruct.mqh"
#include "../Indicator.mqh"
#include "../Indicator/Indicator.h"

#ifndef __MQL4__
// Defines global functions (for MQL4 backward compability).
Expand Down
2 changes: 1 addition & 1 deletion Indicators/Indi_AD.mqh
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
*/

// Includes.
#include "../Indicator.mqh"
#include "../Indicator/Indicator.h"

#ifndef __MQL4__
// Defines global functions (for MQL4 backward compability).
Expand Down
2 changes: 1 addition & 1 deletion Indicators/Indi_ADX.mqh
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
*/

// Includes.
#include "../Indicator.mqh"
#include "../Indicator/Indicator.h"
#include "Price/Indi_Price.mqh"

#ifndef __MQL4__
Expand Down
2 changes: 1 addition & 1 deletion Indicators/Indi_ADXW.mqh
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@

// Includes.
#include "../BufferStruct.mqh"
#include "../Indicator.mqh"
#include "../Indicator/Indicator.h"
#include "../Storage/ValueStorage.applied_price.h"
#include "../Storage/ValueStorage.h"
#include "../Storage/ValueStorage.spread.h"
Expand Down
2 changes: 1 addition & 1 deletion Indicators/Indi_AMA.mqh
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@

// Includes.
#include "../BufferStruct.mqh"
#include "../Indicator.mqh"
#include "../Indicator/Indicator.h"
#include "../Indicator/tests/classes/IndicatorTfDummy.h"
#include "../Storage/ValueStorage.h"
#include "Price/Indi_Price.mqh"
Expand Down
2 changes: 1 addition & 1 deletion Indicators/Indi_AO.mqh
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
*/

// Includes.
#include "../Indicator.mqh"
#include "../Indicator/Indicator.h"

#ifndef __MQL4__
// Defines global functions (for MQL4 backward compability).
Expand Down
2 changes: 1 addition & 1 deletion Indicators/Indi_ASI.mqh
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@

// Includes.
#include "../BufferStruct.mqh"
#include "../Indicator.mqh"
#include "../Indicator/Indicator.h"
#include "../Storage/ValueStorage.all.h"

// Structs.
Expand Down
2 changes: 1 addition & 1 deletion Indicators/Indi_ATR.mqh
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
*/

// Includes.
#include "../Indicator.mqh"
#include "../Indicator/Indicator.h"

#ifndef __MQL4__
// Defines global functions (for MQL4 backward compability).
Expand Down
2 changes: 1 addition & 1 deletion Indicators/Indi_Alligator.mqh
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
*/

// Includes.
#include "../Indicator.mqh"
#include "../Indicator/Indicator.h"

#ifndef __MQL4__
// Defines global functions (for MQL4 backward compability).
Expand Down
2 changes: 1 addition & 1 deletion Indicators/Indi_AppliedPrice.mqh
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@

// Includes.
#include "../BufferStruct.mqh"
#include "../Indicator.mqh"
#include "../Indicator/Indicator.h"
#include "OHLC/Indi_OHLC.mqh"

// Structs.
Expand Down
2 changes: 1 addition & 1 deletion Indicators/Indi_BWMFI.mqh
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
*/

// Includes.
#include "../Indicator.mqh"
#include "../Indicator/Indicator.h"

#ifndef __MQL4__
// Defines global functions (for MQL4 backward compability).
Expand Down
2 changes: 1 addition & 1 deletion Indicators/Indi_Bands.mqh
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
*/

// Includes.
#include "../Indicator.mqh"
#include "../Indicator/Indicator.h"
#include "Indi_CCI.mqh"
#include "Indi_Envelopes.mqh"
#include "Indi_MA.mqh"
Expand Down
2 changes: 1 addition & 1 deletion Indicators/Indi_BearsPower.mqh
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
*/

// Includes.
#include "../Indicator.mqh"
#include "../Indicator/Indicator.h"

#ifndef __MQL4__
// Defines global functions (for MQL4 backward compability).
Expand Down
2 changes: 1 addition & 1 deletion Indicators/Indi_BullsPower.mqh
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
*/

// Includes.
#include "../Indicator.mqh"
#include "../Indicator/Indicator.h"

#ifndef __MQL4__
// Defines global functions (for MQL4 backward compability).
Expand Down
Loading

0 comments on commit d0b8d22

Please sign in to comment.