Results 1 to 10 of 10
 7 Attachment(s)    

Thread: Open Long and Short Order simultaneously

  1. #1

    Default Open Long and Short Order simultaneously

    Hello everybuddy,

    I'm using a strategy which need to open long and short position at the same time, through a mathematical calculation, it works very nice..

    I would like a script that could help open a long order and open a short order simultaneously, anyone have collection alike this?


    thanks


    Happy Pipipipipipipiping~

  2. #2

    Default

    I'm afraid you don't give enough info....
    This is what you're proposing....


    if (1==1)

    {
    OrderSend(Symbol(),OP_SELL,1,Bid,5,0,0,"",255,0,CL R_NONE);

    RefreshRates();
    OrderSend(Symbol(),OP_BUY,1,Ask,5,0,0,"",255,0,CLR _NONE);
    }

  3. #3

    Default

    Quote Originally Posted by BillR View Post
    I'm afraid you don't give enough info....
    This is what you're proposing....


    if (1==1)

    {
    OrderSend(Symbol(),OP_SELL,1,Bid,5,0,0,"",255,0,CL R_NONE);

    RefreshRates();
    OrderSend(Symbol(),OP_BUY,1,Ask,5,0,0,"",255,0,CLR _NONE);
    }

    BillR, thanks....but can i have the coded file, lord is -100/10 in coding knowledge...

    I still testing the trading system - cannot call system but a bit nonsense...

    I just need a script which help me to open and close when i click it....any currency....from the price navigator or from the chart...

    I wish to share this strategy with more reliable testing result...hehe


    thanks anyway


    happy piping

  4. #4

    Default

    Here is an EA just set the lot size and it will place a Buy and Sell....
    I've also attached a script which will close all....I really don't get what you're trying to do...but Good Luck
    Attached Files Attached Files

  5. #5

    Default

    Quote Originally Posted by BillR View Post
    Here is an EA just set the lot size and it will place a Buy and Sell....
    I've also attached a script which will close all....I really don't get what you're trying to do...but Good Luck
    haha...Sir BillR, sorry for my confusing language....I'm poor in English...

    Yet, this is the thing exactly as I request...haha

    Open 1 Long order and 1 Short order on one currency simultaneously..

    Thank you very much..


    Since, Sir BillR was giving an EA....

    May I request for your kind assist to plug in the TP and SL Manager (as attachment) into the given EA
    - wish to test the proposed system with adjustment TP and SL
    - change the default setting as TP:10, SL:0


    Hehe....Thanks you Sir....
    Attached Files Attached Files
    Last edited by fairylord; 11-05-2009 at 01:18.

  6. #6

    Default

    Again sorry to not understand completely...would you like to set the SL and TP before placing the orders?? The program you posted modifies existing orders...

  7. #7

    Default

    Quote Originally Posted by BillR View Post
    Again sorry to not understand completely...would you like to set the SL and TP before placing the orders?? The program you posted modifies existing orders...
    hmm..ok

    I keep it simple...

    I just want to set Take Profit and Stop Loss for the orders opened by the EA.


    sorry to confuse always

  8. #8

    Default

    Here it is....if you want no StopLoss just set it high NOT ZERO
    Attached Files Attached Files

  9. #9

    Default

    Quote Originally Posted by BillR View Post
    Here it is....if you want no StopLoss just set it high NOT ZERO

    Oh, so good...thanks...Sir...

    I will try it on coming Monday..

    A big thanks to you!!
    Last edited by fairylord; 11-08-2009 at 11:57.

  10. #10
    Junior Member
    Join Date
    Feb 2010
    Posts
    11

    Default Waddah Attar Win EA -Trailing STops & Stop Loss

    Hi BillR,

    I nd yr kind help. I would really appreciate if anyone can please help to add a "Trailing Stop" of 25 points & "Stop Loss" of 10 points for each & every open trade position the moment every trade is entered in the ORIGINAL Waddah Attar Win EA, as Im having lots of difficulty in attaching trailing stops manually one by one to my open positions.

    The ORIGINAL Wadah Attar WIN EA is found at : Waddah Attar Win Expert - MQL4 Code Base
    Would appreciate it very very much. Thanks

Similar Threads

  1. Open oppsite order if order don't take profit
    By luisneves in forum MQL programming
    Replies: 0
    Last Post: 12-06-2012, 17:09
  2. EA that changes long / short on MA cross
    By sebastianhh in forum MQL programming
    Replies: 1
    Last Post: 10-27-2010, 22:04
  3. How program EA for to open order when candle open?
    By Fonscky in forum MQL programming
    Replies: 0
    Last Post: 08-19-2010, 22:56
  4. Trailing Open Order
    By thenikey in forum Ideas for expert advisors
    Replies: 2
    Last Post: 09-07-2009, 04:55
  5. Long Only / Short Only /Long and Short
    By BillR in forum MQL programming
    Replies: 4
    Last Post: 04-28-2009, 11:24

Tags for this Thread

100, change, coding, expert, high, mql, profit, request, simple, stop, stoploss, strategy, system, test, time, trading, trading system, trailing

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •