Skip to content

Commit

Permalink
feat: Add int-variant function for a condition
Browse files Browse the repository at this point in the history
  • Loading branch information
sibvic committed Sep 25, 2024
1 parent 7d49b63 commit b1ad916
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion snippets/Streams/Condition/ConditionStreamV2.mqh
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
#include <Streams/Abstract/ABoolStream.mqh>
#include <Conditions/ICondition.mqh>

//ConditionStreamV2 v1.0
//ConditionStreamV2 v1.1

class ConditionStreamV2 : public ABoolStream
{
Expand Down Expand Up @@ -31,5 +31,10 @@ public:
val = _condition.IsPass(period, 0);
return true;
}
bool GetValue(const int period, int &val)
{
val = _condition.IsPass(period, 0);
return true;
}
};
#endif

0 comments on commit b1ad916

Please sign in to comment.