how to buy and sell at specific timing?
-
I am trying to test an EA to buy US closing time and then Sell US opening time on NASDAQ if a certain condition is met.
Tried this to do time filter but doesnt seem to work.
Can someone please advise please?
-
@tenfold Can you please share your current project?
-
Be sure to select the correct time, you have the ability to select local, GMT, and a 3rd I dont remember at the moment.
Remember that your broker time is what you see on your platform.
-
@l-andorrà
not sure how to share. i am using a free version of fxfreema -
theres a link at the top under Projects, click "Create A Shared Copy"
-
-
shared/NvWhosaEd
The idea is to buy CFD at US close and sell at US open next day, if its uptrend and vis verca.
Can you tell me whats wrong on the codes?
-
@tenfold said in how to buy and sell at specific timing?:
shared/NvWhosaEd
What you need is a 'Time filter' block like this:

Remove the candle time limits from your pending orders blocks.
-
So i changed it, and backtested it. It took a trade on the start of my backtest date and closed the position at the end of my backtest period.
How do I change it to close the trade at another time of the next day instead?
-
shared/TbMiRk73e
-
@tenfold Sorry my fault. You need to add another time filter from the closing time to 23:59 and connect a 'close trades' block below it. Thatway all trades will be closed before tomorrow's session.
-
so 2 time frames?
shared/sAXR0y42
is this the way?
-
@tenfold No. I mean like this:

-
Thanks a dozen. Working perfect now.
shared/hIp74fqrd
for your consideration. Backtest workable for 2018 onwards on daily NASDAQ and SP500
-
@tenfold said in how to buy and sell at specific timing?:
shared/hIp74fqrd
Good to know. I'm glad it worked. Thank you

