Help to compare 61 variables at the end of trade
-
Good evening, friends from the forum.
I am Brazilian and I already apologize for the English. I'm writing through Google Translate.
My EA project here at Fxdreema is intended to look like a simple neural network (Perceptron).
Through indicators and candles, each CONDITION block assigns a value to a unique variable. The value can be 1 or -1.
I need help to find out at the end of the trade which variables were with negative numbers and which variables were positive.
Let's say the sum of the variables was> 0. In this case, I make a purchase.
-
If the trade is a winner: I want to see which variables were positive and increase their value. (Example: If it was 1, I want to change the value to 1.2)
-
I want to see which variables were negative and decrease their values. (Example: if it was 1, I want to change the value to 0.9)
I know what I can do with blocks. But i would have to compare 61 variables with 2 CONDITION blocks each (122 blocks). After that, use 122 more blocks of MODIFY VARIABLES.
My question is whether there is a more elegant solution in the CUSTOM MQL custom block to be implemented.
Obs. I am completely layman in MQL5 code. I don't know anything about programming.
-
-
@bocadeangu I'm not a programmer so I cannot provide an elegant solution to that issue. My suggestion is doing it visually. Try can take a screenshot by using the 'Chart screen shot' block every time the trade hits TP with all requested variables visible with a 'Comment' block. You will need to visualize a lot of photos but at least you will get it.