last ...
This commit is contained in:
@@ -2216,25 +2216,25 @@ public:
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
//
|
// //
|
||||||
// Create Score Summary for Commenting on Chart ...
|
// // Create Score Summary for Commenting on Chart ...
|
||||||
string scoreSummary =
|
// string scoreSummary =
|
||||||
//
|
// //
|
||||||
"----------" + separator +
|
// "----------" + separator +
|
||||||
"Bullish Score: " + ToString(mBullishScore) + separator +
|
// "Bullish Score: " + ToString(mBullishScore) + separator +
|
||||||
"Bullish Signs: " + ToString(mBullishSigns) + separator +
|
// "Bullish Signs: " + ToString(mBullishSigns) + separator +
|
||||||
"----------" + separator +
|
// "----------" + separator +
|
||||||
"Bearish Score: " + ToString(mBearishScore) + separator +
|
// "Bearish Score: " + ToString(mBearishScore) + separator +
|
||||||
"Bearish Signs: " + ToString(mBearishSigns) + separator +
|
// "Bearish Signs: " + ToString(mBearishSigns) + separator +
|
||||||
"----------" + separator +
|
// "----------" + separator +
|
||||||
"Volume: " + ToString(mVolumeOSC) + separator +
|
// "Volume: " + ToString(mVolumeOSC) + separator +
|
||||||
"DrawDown: " + ToString(GetDrawdownPercent()) + "%" +
|
// "DrawDown: " + ToString(GetDrawdownPercent()) + "%" +
|
||||||
""
|
// ""
|
||||||
//
|
// //
|
||||||
;
|
// ;
|
||||||
|
|
||||||
//
|
// //
|
||||||
Comment(scoreSummary);
|
// Comment(scoreSummary);
|
||||||
|
|
||||||
//
|
//
|
||||||
result = ArraySize(signals);
|
result = ArraySize(signals);
|
||||||
|
|||||||
@@ -67,3 +67,7 @@ it recieved a Net Input (Weighted functions);
|
|||||||
## Unti Step
|
## 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.
|
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;
|
||||||
|
|||||||
+46
-1
@@ -27,11 +27,39 @@
|
|||||||
|
|
||||||
//
|
//
|
||||||
// Inputs ...
|
// 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 ...
|
// Variables ...
|
||||||
int barsTotal;
|
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 ...
|
// Initialization ...
|
||||||
int OnInit()
|
int OnInit()
|
||||||
@@ -86,7 +114,7 @@ void OnTick()
|
|||||||
}
|
}
|
||||||
|
|
||||||
//
|
//
|
||||||
//
|
// Custom Functions ...
|
||||||
|
|
||||||
//
|
//
|
||||||
bool InitialEA()
|
bool InitialEA()
|
||||||
@@ -94,6 +122,23 @@ bool InitialEA()
|
|||||||
//
|
//
|
||||||
bool result = false;
|
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;
|
result = true;
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user