Straddle trading EA
Page 1 of 5011 1 2 3 ... LastLast
Results 1 to 10 of 101

Thread: Straddle trading EA

  1. #1

    Straddle trading EA

    Hi,

    I Want help with this EA. Its purpose is for news straddle trading. The input parameters are:

    1) number of lots you want to trade
    2) number of pips away from the current price
    3) TP
    4) SL
    5) do you need a buy order, sell order or both
    6) time and date you need orders to be placed

    When you allow it to run, it will put buy and/or sell orders in the time you specified, with stop loss and target profits you entered.

    I tested it repeatedly on demo and used it now for the first time on live account for NFP. It did a fantastic job, set orders the way I wanted, 1 minute before the news.

    Now, I don't have enough experience in coding to make this EA to work exactly what I need it to do this I hope you guys can help me.

    A) I really don't know how to produce the EA to check both the date and the time for placing orders. For the time being, it is checking just the moment.

    B) I'd like to have an choice to put in the expiration time and date for those orders, don't know how to do this. I saw there is a parameter for expiraton in that function which is called when the order is set, but I am constantly getting errors when I tried to use it, so I just left it on 0 (zero) for today.


    C) For today, it will place just 1 buy and/or one sell order, maybe it will be a fantastic idea to parametrize that overly so we can select 1 or 2 orders to be put in almost any direction.

    If you think this EA is worth it, please feel free to add and improve it any way you see fit.

    Thank you men,


    https://www.cliqforex.com/attachment...2037187733.mq4

  2. #2
    91222
    Quote Originally Posted by ;
    quote Are you currently utilizing the Brokers Clock? UseBrokerTime=True ? If so your brokers time isn't right. Otherwise, your PC time isn't right. The transactions deleted after 15:30 about 6-7 seconds so in case your clock is 10 minutes incorrect, you would miss the move. Alan
    YesI am. UseBrokerTime=Actual. My broker time is GMT. It was seen by me at Market Watch, and indi BarClock is being used by me ,too. I believe everything is fine, contain my PC time (GMT 7). When MPC Official Votes your EA will be tried by me again in my live afternoon. Thanks Alan.

    Cheers
    Sena

    Quote Originally Posted by ;
    quote The notion of PointsGap would be to open transactions 200 pips off at SecBPO minutes ahead of the news and move them in the correct position (8 pips off ) according to SecBAO seconds before the news. Trades become altered until SecBMO minutes before. If you do not want to use this attribute set PointsGap=0 or SecBAO=SecBMO or SecBAO=0. Any of these will disable it. ModifyGap informs the EA to just transform if price moves more than 1 pip i.e it stops unnecessary tiny modifications so the EA is prepared for larger price changes.... If the transactions aren't moved you may...
    Wonderful!! Truly like this idea/method

  3. #3
    91222Hey guys

    *noob alert*

    Im having a problem with mt4 trader. It doesn't go ahead and implement many of the trades, If it concerns the period of execution. While I check the reports, I find it say'deleted [no money]'

    what would it maybe that is doing so?

    Im currently using a demo account. I saw from the leverage which it's 1:100, I read somewhere this is awful, is it authentic?

    Besides, I am really in love with all the EA, thanks a thousand Alan

  4. #4
    91222another question I have,

    I'm employing the fxcm mt4 trader. Im not too attentive to the differences between traders out there. However when looking at my trade history, I'm seeing profit being pumped away for'commission'.

    Currently could someone please give me their opinion on whether this broker is any good or do you recommend another broker?

    thanksss

  5. #5
    91222
    Quote Originally Posted by ;
    quote Are you using the Brokers Clock? UseBrokerTime=True ? If so, maybe your brokers time isn't right. If not, your PC timing isn't right. The trades deleted about 6-7 seconds so in case your clock is 10 seconds wrong, you would miss the transfer. Alan
    Here's my dwell results after MPC Votes. And the EA cancelled all available orders. There's nobody position. Why mate? I have re-check my pc time along with my broker time and it appears normal. Everything's fine.

    Quote Originally Posted by ;
    quote Are you using the Brokers Clock? UseBrokerTime=True ? If so, maybe your brokers time isn't right. If not, your PC timing isn't right. The trades deleted about 6-7 seconds so in case your clock is 10 seconds wrong, you would miss the transfer. Alan
    It has happened again using CAD news tonight, mate. Just opened and cancelled with eurcad. No available whatsoever with usdcad. Some bugs or what?


  6. #6
    91222
    Quote Originally Posted by ;
    quote Here's my live outcome after MPC Votes. And again, the EA cancelled all available orders. There is nobody position in any way. Why partner? I have re-check my pc time along with my broker time and it appears normal. Everything's fine. quote It has happened again with CAD news tonight, partner. Only opened and cancelled with eurcad. No available with usdcad. Some what or bugs? picture picture
    Primarily, the text documents that have the EA explain how to locate your logfiles. There are 3 logfiles (two MT4 and one AmazingEA ) plus an AmazingEA tick record of all of the prices.

    Type in%APPDATA% to Windows Explorer and look at the MT4 directories below there.

    But the last picture shows me the EA cancelled your GBPJPY and reopened them just ahead of the newstime. I reckon this is due to this Maxspread attribute which deletes the orders if the spread gets too large. You have it set on 6 pips. Set it to 0 to disable it. That is likely what's murdering your orders.

    As I said, the logfiles will inform you....

    Alan

  7. #7
    912221 Structure (s)
    Quote Originally Posted by ;
    quote Primarily, the text files which come with the EA explain how to locate your logfiles. There are 3 logfiles (two MT4 and 1 AmazingEA ) plus an AmazingEA tick list of all the prices. Sort in%APPDATA% to Windows Explorer and Examine the MT4 directories below there. However, the last picture shows me that the EA cancelled your GBPJPY and reopened them prior to the newstime. I reckon this is a result of this Maxspread attribute which deletes the orders if the spread becomes too high. You've got it set on 6 pips. Set it to 0 to disable it. That is likely what is killing...
    You are my master, Alan!!! As you said, the logfiles told me
    MaxSpread Exceeded, MaxSpread: 60 Spread: 63 and Deleting BuyStop and SellStop because STWAN expired, OrdersCondition=11.
    But, what is the mean of parameter OrdersCondition=11?

    But Alan, would you tell me about your settings? The settings most comfortable for you

  8. #8
    91222
    Quote Originally Posted by ;
    quote You're my master, Alan!!! As you mentioned, the logfiles advised me MaxSpread Exceeded, MaxSpread: 60 Spread: 63 and Deleting BuyStop and SellStop since STWAN expired, OrdersCondition=11. But, what is the mean of parameter OrdersCondition=11? But Alan, do you tell me about your settings? The settings most comfortable for you image
    OrdersCondition=11 just means there is a Buy Stop and Sell Stop open. It is a memory for the EA to keep track of what orders are where.

    I wouldn't worry about my settings. Everybody trades. Yours looked fine....

    Good luck...

  9. #9
    91222
    Quote Originally Posted by ;
    quote OrdersCondition=11 just means there's a Buy Stop and Sell Stop open. It's a memory for the EA to keep track of what orders are where. I wouldn't be concerned about my preferences. Everybody transactions. Yours looked fine.... Good luck....
    Well. . .at least, discuss your experience using this EA, include your fav preferences. Regardless of profit or loss

  10. #10

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. Read more.