Retain Memory
-
Hi @l-andorrà ,
I already tried with your suggestion about group and it work!! Thank you for your help and advice.
By the way, I already subscribe fxdreema plan for one year, and i tried to build another EA from it.
I am facing difficulty about how to retain memory. The thing that i want to do is:
IF the Stochastic "Main Line" is cross below 10, it will keep memory for that. Until the Stochastic "Main Line" is cross above 20 then it will entry position. I tried many way and refer to the group, but it seem not working and i am stuck at here.
Can you please help to advice me what should i do with this?
Here is the project link : https://fxdreema.com/shared/RzNOZ2Eib
Thank you for your help.!
-
@sobrishariff Ok. Let me understand it correctly. You want to know when the stochastic's main line is crossing down 10. That information is supposed to be hold into a variable and then if the main line crosses up 20, the previous information is used to confirm your buy. Right?
Now two questions:
-
What happens if main line crosses down 10, then crosses up 10, then crosses down 10 again without touching the 20 level?
-
When price crosses 20 up is the crossing down information supposed to be still available or sould it be reinitialized?
-
-
@l-andorrà Yes, this is correct.!
to answer your question:
- it will keep remain the variable until its cross above 20.
- The crossing down information will be reinitialized.
-
-
@sobrishariff You can create a variable and do this:
https://fxdreema.com/shared/alHDUl6Db
This is just the general idea. You will have to adapt it to your specific conditions. though.
