fxDreema

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

    GAP Trading

    Questions & Answers
    2
    2
    972
    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.
    • F
      Forexsake last edited by Forexsake

      Hi. I am having difficulty with trying to create a bot for GAP trading. I have attached a pic of the current bot and also the results. It seems to just buy and sell randomly. Is there a way to have it open a buy sell when the price gaps up or down a certain amount ? I have indicated on the second picture where it should have bought only. I guess it must be trading even when the gap is a decimal of a pip.
      0_1533929535122_gap.PNG
      0_1533929842072_gap2.PNG

      M 1 Reply Last reply Reply Quote 0
      • M
        moreirajbn @Forexsake last edited by moreirajbn

        @forexsake

        Your logic is not checking whether there is already an open position or not, and will, therefore, trade on every bar that has opened at a different price form the previous bar.

        Since you also don't specify any timeframe, it will trade several times a day. if you want daily gaps, you have to tell it to the algorithm. 🙂

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

        Online Users

        T
        B
        A
        P
        A
        A
        X
        K

        20
        Online

        146.7k
        Users

        22.4k
        Topics

        122.6k
        Posts

        Powered by NodeBB Forums | Contributors