PSAR EA - Candle Close Crossing below or above PSAR indicato
-
Hi all,
I'm trying to set up an EA based on PSAR. The idea is to trigger buy orders when candle close price crosses above PSAR and sell orders when close price crosses below PSAR. I'm struggling to perform the EA correctly but when cross event happens no orders are placed during simulation.
I start with a "Once Per Bar" event then test 2 conditions:
I) Price at Close crossing above PSAR
II) Price at Close Crossing below PSARIf one of conditions are true I verify if "No Position\Order Exists". If there is no position I attach directly to "Buy Now". Otherwise, I first "Close Positions" and then "Buy Now". The opposite is true for "Sell now".
I suppose this should result in a very frequent buy \ sell orders for 1 minute timeframe but when simulating no orders are being placed.
Any help I appreciate.
Thanks,
Guilherme
-
For MT4, but anyway, it's the same idea... post/9133