I am sorry you got the wrong impression, that was not my intention.
I gave you an answer that is a general solution, my approach to computer science, and programming is focused on giving a general answer, that would be suitable to any problem.
and it is for you to make sense of it, according to your mindset, and ideas.
And I love thinking for myself and finding out solutions as my abilities improve.
If you want an easy solution without developing ideas by yourself, it would be hard for me to know what kind of approach you prefer, the easy one, without a high level of accuracy, or the more complex one, which is a custom-defined Neural Network.
Please do forgive my enthusiasm in helping you by the approach I would expect others to help me.
Thank you for your consideration and understanding.
function run() {
set(PARAMETERS);
StartDate = 20190101;
BarPeriod = 60;
Capital = 2000;
LookBack = 150;
vars Open = series(priceOpen());
vars High = series(priceHigh());
vars Low = series(priceLow());
vars Close = series(priceClose());
// Additional input: normalized close
vars NormClose = series(Close[0] / 100);
int NumSignals = 5; // Number of total input signals
vars Signals = series(NumSignals);
// Manually calculate the change for each series
Signals[0] = Open[0] - Open[1]; // Change for Open
Signals[1] = High[0] - High[1]; // Change for High
Signals[2] = Low[0] - Low[1]; // Change for Low
Signals[3] = Close[0] - Close[1]; // Change for Close
Signals[4] = NormClose[0]; // Normalized Close
var vLong, vShort, Threshold = 0.5;
set(LOGFILE | PLOTNOW);
// Advise functions with the signal array
if (adviseLong(NEURAL + BALANCED, 0, Signals, NumSignals) > Threshold)
enterLong();
if (adviseShort(NEURAL + BALANCED, 0, Signals, NumSignals) > Threshold)
enterShort();
plot("Long", vLong, NEW|LINE, BLACK);
plot("Short", vShort, LINE, GREY);
}
I hope this makes you happy... And Happy New Year to our challenging minds.