Candle ID 1 and once per bar
-
Hello
https://fxdreema.com/shared/mBChz5sUb
My EA works exclusively with Candle ID 1. It's a simple EA. CLOSE meets conditions, it should open on next bar.
Entry : if candle id 1 CLOSE crosses below Williams percent R value AND candle id 1 CLOSE is above 200MA, go long
Exit - if position close is below 200MA, exit
in backtesting, it works perfectly on the 1 min OHLC model. however, on live, it'll have mixed results. sometimes it'll work perfectly. in some cases, trades will open and then close immediately, despite the exit conditions not being met. I trade on higher TF so I know its not slippage. the losses are very small, for the most part. except when there's a high volatility, then the losses become severe.
I just wanted to get some extra eyes on this. Im not sure if it has to do something with the once per bar placement as I understand that if its placed above the condition block, it'll only check 1 tick or if it has something to do with candle ID.
Please advise
-
I don't have mt5 but you can check if the closing is caused by the EA by simply drawing some text on the chart when conditions are met.
Alternatively there is an easy fix. All you need to do is add filter "check age" block. Just like.
Obviously adjust waiting time to your timeframe.

-
Thanks Will for the quick response. I also have comments set in the buy block so I can identify each trade and "technically" are being closed by the EA. but I will also try the check age block as well.
EDIT: I seen your response in another thread of broker manipulation and saw that coinexx was listed on there. I suspected this might be the case and I'm done dealing with unregulated monkey ran brokers. switching over to forex.com in the meantime.
-
Light pink only goes under dark pink, it is like 2 blocks to make 1, dark selects the trade to work with, and light adjusts it.
-
@jstap could be, never used that block but did some testing while back