fxDreema

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

    Pending order dilema

    Questions & Answers
    1
    1
    330
    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.
    • G
      G-Dubby999 last edited by

      Hello:

      I am trying to create an EA that does the following:

      1. at 3:00am candle the ea will create two pending orders. One is a buy stop starting 10 pips above the top of the wick of the 3:00am candle. The other is a Sell Stop 5 pips below the bottom wick of the 3:00 am candle.

      2. I want to mark the 3:00am candle somehow and I have horizontal lines on the top and the bottom of the wick.

      3. I was able to put another horizontal line for the buy stop which is 10 pips above the line on the top of the wick of the 3:00am candle

      4. I was not able to put the horizontal line on the bottom 5 pips away from the bottom wick of the 3:00am candle.

      5. The pending orders are the most problem. I want to cancel the one order when the other activates. I have tried making one pending order and just making a 10 pip offeset and activating the OCO option, however it still keeps the other order open which results in rather large loss after it hits the stop loss.

      If I can get the pending block done, I can figure out drawing the lines for the rest, I believe.

      Thanks in advance.

      Greg

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

      Online Users

      H
      Y
      D
      A
      H
      H
      N

      12
      Online

      147.0k
      Users

      22.4k
      Topics

      122.6k
      Posts

      Powered by NodeBB Forums | Contributors