Candle breakout
-
Hi,
I want to automate a candle breakout strategy. Basically i want to trade 8 AM candle breakout in both direction. Candle high break for buy and candle low break for sell. Two pending orders as soon as the candle forms. Stops will be candle low for buy and candle high for sell.Tried day filter, hour filter etc.. but not seems to work. Any help would be much appriciated.
-
Can you please share you project to take a look?
-
Here it is..
https://fxdreema.com/shared/y4uv6BgFc
Not sure it makes sense. I have zero knowledge in programming!
Thanks for your help.
-
Do not use the same hour (00:00) on the second time period. You need at least one minute difference per period.
-
@l-andorrà Removed second session. Still no luck. I think i first have to define the candle which is 8.00 am candle london time. How to do that?
-
Also avoid using highest price from candle 1 to 1. Use high of candle 1 for exemple, or, close of candle 1.
-
@yasirdxb said in Candle breakout:
@l-andorrà Removed second session. Still no luck. I think i first have to define the candle which is 8.00 am candle london time. How to do that?
Well, that depends on your broker. Is it a GMT+0 broker? Then you just need to specify 08:00 at the block. Otherwise you will need to adjust it depending on the time gap between your broker and London's session.
-
@l-andorrà Hi, I have made some progress. but when tried to live trade. its not placing any trades. can you please take a look. here is what I done so far https://fxdreema.com/shared/CDxCpDDU
-
Remove the 'Once per bar' block and add a 'No pending order' block below the 'No trade' one.
-
Made suggested changes. still no luck. its working in backtest. but on live account, nothing happens. can you please take a look. https://fxdreema.com/shared/0GbWLOA5c
Thanks in advance.
-
Nothing at all? Are you using the same broker for backtesting and live trading?
-
@l-andorrà Hi, its placing orders as expected in the demo account. but nothing happens when using with live account. my broker is aaafx. Am I missing something?
-
Honestlu I don't see any issue with the logic of the EA. Maybe someone else can see something I cannot?
-
- Make sure trading is enabled during that one second you have set your EA to open trades. Most brokers dont allow trading around the rollover period (thats midnight on UTC+3), I don't know what timezone you are.
- Make sure your broker doesnt have a minimum distance for new orders. Some brokers doesnt allow placing pending orders too close to current price.
-
Hi, Thanks for your replies.. it was a problem with the broker. So finally I got the EA to place the trades. but it only places one trade. I had attached the EA on five different charts. but only one trade was opened. nothing happens on other charts.
Pls have a look.. https://fxdreema.com/shared/oRAQoTWke