can I Add Save Any Number In Memory EA ?
-
hello
if i say if candle cross simple move to up save price this point this candle in memory Under name A
and if candles will be next cross simple move to up again save price this point this candle again in memory under name Bthis mean price A available if i want use it and too price B available if i want use it.
Can i do that By FXdreema ? And how .... Please Show Example
thank you
-
Hi!
This simple example should give the basic idea:
https://fxdreema.com/shared/EraTbqmde

-
@roar
if i want save multi points price how i can do that ?
your projects about save one memory and create order if candle cross this memory
i dont want that ...i want if candle cross simple move up now - save this point in memory A
and next this if candle again cross simple move up again - save this point in memory B
and next if happen candle again cross simple move up again - save this point in memory Cand all this memory A and B And C available if i want use this points saved it in my EA .
thank you
-
????????
-
As roar posted above, you can store values in these Variables. Variables are exactly that - pointers to certain address in the memory

-
@fxdreema look
by example roar
1 / if candle past 1 cross simple move past 1 up = memoryA
2 / if next candle past 1 cross simple move past 1 up again = memoryB
now are memoryA different memoryB ?? Answer ,,,,,, Nooooooo
will be the same because condition happen the same until if happen in position differenti want if 1 happen save data
if 2 happen save new data happen and data 1 also saved ( different position )you understand me
-
you can do this if the condition is the same, but you want some older data saved

if there are 2 different conditions and you want 2 different values then just make a condition block for each and a modify variable block for each.
-
@spuzy i am sorry how ?
you can give me example for 3 points different save it in the same condition ?
thank you -
@moon I did, is the thing.
that picture shows it, to have 3 different values saved just make 3 variables and do it in a different order than the picture
Have Var_C = Var_B
Var_B = Var_A
Var_A = your value you want to saveso when the condition is true first we will save the old B value into C, then we will save the old A value into B and then we will change A into the new value.
meaning you have 3 values saved from the same condition in order.
so Var_C will be the value from 3 conditions ago. B from 2 conditions ago and A from the last time the condition occurred.
-
@moon said in can I Add Save Any Number In Memory EA ?:
you understand me
I don't understand. I'm not sure if you understand how variables work. Or you understand them, but you don't know how to do something with them. Here I post a video that I like, that explains variables in a good way: