fxDreema

    • Register
    • Login
    • Search
    • Back to the main page
    • Categories
    • Recent
    • Tags
    • Popular
    • Search

    PSAR EA - Candle Close Crossing below or above PSAR indicato

    Questions & Answers
    2
    2
    634
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • P
      paguilherme last edited by

      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 PSAR

      If 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

      1 Reply Last reply Reply Quote 0
      • fxDreema
        fxDreema last edited by

        For MT4, but anyway, it's the same idea... post/9133

        1 Reply Last reply Reply Quote 0
        • 1 / 1
        • First post
          Last post

        Online Users

        A
        Y
        H
        R
        U

        16
        Online

        146.9k
        Users

        22.4k
        Topics

        122.6k
        Posts

        Powered by NodeBB Forums | Contributors