How to send order at the close of the bar? - Page 2
Page 2 of 614 FirstFirst 1234 LastLast
Results 11 to 20 of 35

Thread: How to send order at the close of the bar?

  1. #11
    The code is functioning as it is according to the egy tester along with my broker.

    Is there a smiley face in the top right hand corner of the chart you're trading?

  2. #12
    Of corse I've the smiley. It is sending the order at every tick, at first tick, not in open of the bar.

  3. #13
    I just took one of my existing EAs and establish that instead.

    Just make certain EachTickMode is set to false so that it'll open trades in the start of the second pub.
    https://www.nigeriaforextrading.com/...1944389660.mq4

  4. #14
    How about That?

    Inserted Code //-- proceed trading only for first tiks of new pub if(Volume#91;0#93;gt;1) return; else OrderSend(...)

  5. #15
    Quote Originally Posted by ;
    I just took one of my current EAs and place that instead.

    Simply make sure EachTickMode is set to false so that it'll open transactions at the start of the next bar.
    Tq very much. Employing rightnow.... Working great.... Really alot of thanks

    Edit:
    It working great it opening transactions. But I juz found out, it's simply buy script... Anyone could change it to bcome market script. . TQ very much

  6. #16
    Quote Originally Posted by ;
    Tq very much. Employing rightnow.... Working good.... Really alot of thanks

    Edit:
    It working good it opening transactions. But I juz found out, it is simply buy script... Anyone could change it to bcome sell script. . TQ very much
    I created the sell EA too. The matter is it is not working for me. The transaction is being opened by it at tick on a 1 min chart. What are you doing that is working for you?
    The way it works is when is no additional transaction on such pair/acc, takes a position within 3 pip slipeage and creates a sound, then you'll need to remove it in the chart until you shut the place, or reach on the EA button so that it will not take a different transaction. You can modify the size of the transaction in increments of 1 minilots, 0.1 Lot.
    This is your sell EA too:
    https://www.nigeriaforextrading.com/...0611596440.mq4

  7. #17
    Quote Originally Posted by ;
    How about this?

    Inserted Code //-- go trading just for first tiks of new pub if(Volume#91;0#93;gt;1) return; otherwise OrderSend(...)
    OK, this worked for me personally and it's much simple to execute. Thanks a thousand ydaudw
    Here are the new EA's. As I analyzed so far one trade opens on the tick of the pub. You need to stop it or another trade may be taken by it.
    Test this EA's on a demo acc and use them at your own risk.
    https://www.nigeriaforextrading.com/...2387590974.mq4
    https://www.nigeriaforextrading.com/...4812461629.mq4

  8. #18
    Thanks, I willl try it out by tomoro since now 1am in the morning....

    I did find the problem of slippage in hour ago where the price was moving too faz and the EA is neglect to take the trade... Very sad...

  9. #19
    Quote Originally Posted by ;
    Thanks, I willl try it out by tomoro since today already 1am in the morning....

    I did locate the problem of slippage in hour past whereby the price was going too faz and the EA is neglect to spend the trade... Very sad...
    This EA's have a slippage of 3 pips. If the price moves to fast and from the time the order reaches the broker it moved more than 3 pips will not take the transaction. In case you need more slippage alter the EA in this line:
    Inserted Code OrderSend(Symbol(),OP_BUY,TradeSize,Ask,3,0,0,Buy Order,0,0,Blue); Rather than nr 3 put your nr and hit the Compile button

  10. #20
    Now will test it out. The slipage will be changed by me based on my favor. Will report back if I did saw anything

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
This website uses cookies
We use cookies to store session information to facilitate remembering your login information, to allow you to save website preferences, to personalise content and ads, to provide social media features and to analyse our traffic. We also share information about your use of our site with our social media, advertising and analytics partners.