Pre-Run EA in Live Market/ Start EA from past to also consider older price levels in Live Trading
-
Hello guys,
My EA stores those price levels in variables as soon as it detects them. Is it somehow possible to pre-run the EA (e.g. on the ON INIT tab) to get all the price levels stored in variables before the EA actually runs? I need those detetcted price levels, which of course got detected while backtesting 15 years of data, BUT they are missing if I would just start the EA in live markets.
I want the EA to start in the past just as I would have started it in the backtester and continue to let the EA run in the present.
Sometimes a price level will be traded months later after its creation due to price moving far away.
That is quite a hot topic and probably very well in demand for most demand & supply traders.
Appreciate your ideas!
@fxDreema/ @l-andorrà: Might be a limitation within FxDreema and rather something for a coder to implement that feature?
Cheers and thanks for the opportunity to use that marvelous software!
-
@umbrellamaker
You can do it with the "pass once" block on tick tab. Give it block id 1.
So your EA will have 2 entries : 1."pass once" and the other filter you choose like 2."once per bar". -
@seb-0
I'm not sure if I got right. Could you elaborate a bit more?Maybe I was unclear with my description of the problem. Don't know it, yet.
-
@umbrellamaker
I guess you need a closed loop to check a certain amount of past candles, which will pass once when you launch the EA. And as much variables as price levels, to load their value.
Do you have a predefined number of price levels ? -
@seb-0
I got this kind of loop, that storages price levels. Quite a big thingy to create.I recognized I need max. 10 variables on the long site and 10 on the short site.
BUT I do not know how to make the EA start like 10 years into the past and check the price until 31.12.2020 to get all the price levels, which might be still valid, you know?
-
@umbrellamaker
In this example, you have 3 variables that will take the value of the 3 last tops preceding their relative MA cross:
https://fxdreema.com/shared/CcPfiN0me
This loop "search" in the past once.