From f1edb81a7eca398722468d9a5778555e936dcbd3 Mon Sep 17 00:00:00 2001 From: Hadi Khazaee Asl Date: Sat, 15 Jun 2024 09:00:03 +0330 Subject: [PATCH] last ... --- Classes/x-saherelm.x121.setup.xea.mq5 | 36 ++++++++++---------- Documents/NN/1.md | 0 Documents/NN/Documents.md | 4 +++ Experts/x-nn-test.mq5 | 47 ++++++++++++++++++++++++++- 4 files changed, 68 insertions(+), 19 deletions(-) delete mode 100644 Documents/NN/1.md diff --git a/Classes/x-saherelm.x121.setup.xea.mq5 b/Classes/x-saherelm.x121.setup.xea.mq5 index 1fa5d7c8..7eaea5cd 100644 --- a/Classes/x-saherelm.x121.setup.xea.mq5 +++ b/Classes/x-saherelm.x121.setup.xea.mq5 @@ -2216,25 +2216,25 @@ public: } } - // - // Create Score Summary for Commenting on Chart ... - string scoreSummary = - // - "----------" + separator + - "Bullish Score: " + ToString(mBullishScore) + separator + - "Bullish Signs: " + ToString(mBullishSigns) + separator + - "----------" + separator + - "Bearish Score: " + ToString(mBearishScore) + separator + - "Bearish Signs: " + ToString(mBearishSigns) + separator + - "----------" + separator + - "Volume: " + ToString(mVolumeOSC) + separator + - "DrawDown: " + ToString(GetDrawdownPercent()) + "%" + - "" - // - ; + // // + // // Create Score Summary for Commenting on Chart ... + // string scoreSummary = + // // + // "----------" + separator + + // "Bullish Score: " + ToString(mBullishScore) + separator + + // "Bullish Signs: " + ToString(mBullishSigns) + separator + + // "----------" + separator + + // "Bearish Score: " + ToString(mBearishScore) + separator + + // "Bearish Signs: " + ToString(mBearishSigns) + separator + + // "----------" + separator + + // "Volume: " + ToString(mVolumeOSC) + separator + + // "DrawDown: " + ToString(GetDrawdownPercent()) + "%" + + // "" + // // + // ; - // - Comment(scoreSummary); + // // + // Comment(scoreSummary); // result = ArraySize(signals); diff --git a/Documents/NN/1.md b/Documents/NN/1.md deleted file mode 100644 index e69de29b..00000000 diff --git a/Documents/NN/Documents.md b/Documents/NN/Documents.md index eec4046f..a8238542 100644 --- a/Documents/NN/Documents.md +++ b/Documents/NN/Documents.md @@ -67,3 +67,7 @@ it recieved a Net Input (Weighted functions); ## Unti Step a Graph by y axix Output and x axix Net Input and values in y between 0, 1 and x is 0 to TETA or threshold. + +### Sigmoid + +Change Activation Functions Shape; diff --git a/Experts/x-nn-test.mq5 b/Experts/x-nn-test.mq5 index a13555ef..723814e7 100644 --- a/Experts/x-nn-test.mq5 +++ b/Experts/x-nn-test.mq5 @@ -27,11 +27,39 @@ // // Inputs ... +input group "Weights"; +input double w0 = 0.5; +input double w1 = 0.5; +input double w2 = 0.5; +input double w3 = 0.5; +input double w4 = 0.5; +input double w5 = 0.5; +input double w6 = 0.5; +input double w7 = 0.5; +input double w8 = 0.5; +input double w9 = 0.5; // // Variables ... int barsTotal; +// +string mSymbol; +double mVolume; +ENUM_TIMEFRAMES mPeriod; + +// +// This is our Data Provider ... +int rsiHandler = INVALID_HANDLE; +double rsi[]; + +// +double inputs[]; // Storing Inputs +double weights[]; // Storing Weights; + +// +double output; // Output Neuron Value + // // Initialization ... int OnInit() @@ -86,7 +114,7 @@ void OnTick() } // -// +// Custom Functions ... // bool InitialEA() @@ -94,6 +122,23 @@ bool InitialEA() // bool result = false; + // + mSymbol = _Symbol; + mPeriod = _Period; + + // + // Initialize RSI Handler ... + rsiHandler = iRSI( + mSymbol, + mPeriod, + 14, + PRICE_CLOSE // + ); + result = rsiHandler != INVALID_HANDLE; + if (!result) { + return result; + } + // result = true;