Page 1 of 3 123 LastLast
Results 1 to 10 of 25
 1 Attachment(s)    

Thread: AmazingEA

  1. #1
    Administrator funyoo's Avatar
    Join Date
    Sep 2008
    Posts
    7,003

    Default AmazingEA

    Let's see if this can help:

    1) Pipsaway - how many pips abowe and/or below the current price the orders will be placed

    2) TP - Target Profit, you enter the amount of pips, when your order gets into profit this amount of pips, it will be automatically closed

    3) SL - Stop Loss amount in pips

    4) NDay - News Day

    5) NHour - News Hour

    6) NMin - News Minute
    These three parameters (day, hour and min) are your broker's date and time

    7) CTCBN - Numbers Candles to check Before News For determining High & Lows , when it is 1 it check 2 candles the current candle and the 1 last one; This parameter was used in version 1.7 do automatically determine the amount of pip for a SL (stop loss), it's not used in version 1.8 (hmmmm, i guess it should be removed then )

    8) SecBPO - Seconds Before News Which EA Will Place Pending Orders; well this is not going to happen at the exact second you specified, coz EA code is executed only when a tic signal comes from your broker, but around the news price movements are frequent so you will probably not notice the difference

    9) SecBMO - Seconds Before News Which EA Will Stop Modifying Orders; Now, once your order are placed, the EA will follow the price movement and modify orders accordingly so that they are always exactly "Pipsaway" pips away from the current price. With some volatile news this can be quite often, so if that creates a problem with your broker you can set this to half of the value you put for SecBPO, if you put this to be equal as SecBPO than EA will not modifie the orders at all

    10) STWAN - Seconds To Wait After News to Delete Pending Orders; this is the timer to cancel all the order that did not get triggered

    11) OCO - One Cancel The Other, true or false, will cancel the other pending order if one of them is hit; if this is set to true, when your buy orders get hit the corresponding sell orders will be, at the same moment, cancelled, and vise versa, without waiting for STWAN time

    12) BEPips - Pips In profit which EA will Move SL to BE+1 after that; a nice way to lock in some profit, if you leave it at 0 nothing will happen

    13) TrailingStop - Trailing Stop; enter the amount of pips you want your trailing stop to be and EA will track all profitable orders

    14) mm - Money Management; true or false; if you set it to true, EA will automatically determine the number of lots for your orders, in according to the risk you are willing to take

    15) RiskPercent - The risk you are willing to take on any single order

    16) Lots - Number of Lots for your orders; if you set mm to false, than you have to tell to EA how many lots to use for the orders; so if you put here 1, every order will be placed with 1 lot

    17) TradeLog - EA will use this to create a name for the log file. You will find this file file in the experts folder of your MT4 platform, with detailed explanations what took place while EA was running.

    So, when you attach this baby to your chart and set it the way you want, it will monitor what is happening, place buy and sell orders, modify them, trail stop them, move hard stops to break even ... and do the best it can to help you make some pips. Test it on demo before you go live, to make yourself comfortable with it and to see how it will interact with your broker.
    Source : Straddle EA - Page 3 @ Forex Factory

  2. #2
    Junior Member
    Join Date
    Jan 2009
    Posts
    18

    Default

    Hi Funyoo,
    Am using v1.1.8 of this EA. I keep getting this error:

    in function OpenBuyStop OrderSend Executed , ticket =-1 Time 2009.01.28 19:13:31
    Error Accured : invalid stops BuyStop @ 1.14638000 SL @ 1.14387000 TP @1.14658000 Time 2009.01.28 19:13:31

    So, tried some stuff:
    This EA displays the buy stop price on the screen so I opened an order manually with the data on the screen and had no problems.

    So, added some code to see what the values were for the above transaction and got:

    high 1.14545000 buy stop 1.14638000 stop level 1.14387000 take profit 1.14658000

    So, it is executing the buy stop with the right values, and when manually using those values from the screen the buy stop works. My broker has 5 digits (forex.com).

    Any ideas?

  3. #3
    Administrator funyoo's Avatar
    Join Date
    Sep 2008
    Posts
    7,003

    Default

    Hi Vigilanti,

    You have to multiply by 10 the SL, TP, TS, BE.

  4. #4
    Junior Member
    Join Date
    Jan 2009
    Posts
    18

    Default

    Hi Funyoo,
    Did some more testing and the problem is with the take profit number. When I went into the code and set TP to zero it did OK. I guess this is wonderful if only I did not want any profit.

  5. #5
    Junior Member
    Join Date
    Jan 2009
    Posts
    18

    Default

    OK, I will try that thanks!

  6. #6
    Junior Member
    Join Date
    Jan 2009
    Posts
    18

    Default

    Hi Funyoo,
    I tried the take profit value in the active order screen and it fails as well so it must not be the code.

  7. #7
    Junior Member
    Join Date
    Jan 2009
    Posts
    18

    Default

    Hi Funyoo,
    This is really a great EA and a little complex for me to mess around with it yet; however, it occurs to me that it would be improved if it could read in a file .csv with announcement dates, for example
    26,05,30
    27,08,30.

    In other words, a person could enter the dates of the news releases for the following week and this EA could just read them in. The only problem is that you don't want to have this running every tick so maybe some sleep timer or something like that might be the solution. Or maybe it is not such a good idea programming-wise. What do you think?

  8. #8
    Junior Member
    Join Date
    Jan 2009
    Posts
    18

    Default

    Hi Funyoo,
    Another thought, this would make a great straddle EA if it could be executed with dates, just execute using current date and time. No doubt there might be a straddle EA out there already.

  9. #9
    Administrator funyoo's Avatar
    Join Date
    Sep 2008
    Posts
    7,003

    Default

    Quote Originally Posted by Vigilanti View Post
    Hi Funyoo,
    This is really a great EA and a little complex for me to mess around with it yet; however, it occurs to me that it would be improved if it could read in a file .csv with announcement dates, for example
    26,05,30
    27,08,30.

    In other words, a person could enter the dates of the news releases for the following week and this EA could just read them in. The only problem is that you don't want to have this running every tick so maybe some sleep timer or something like that might be the solution. Or maybe it is not such a good idea programming-wise. What do you think?
    Hi Vigilanti,

    I don't know yet how to import external data. Maybe another coder will help.

  10. #10
    Senior Member
    Join Date
    Jan 2009
    Location
    Australia
    Posts
    631

    Default

    what is the best time frame and pair with this EA

Tags for this Thread

100, automatic, broker, candles, change, date, demo, ecn, experts, forex, forex robots, free, high, how to, leave, liteforex, live, managed, money, mq4, mql, mt4, news, news trading, profit, profitable, programming, robots, signal, source, spread, stop, strategies, study, test, time, timer, trader, trading, trailing, trailingstop, usd, video

Posting Permissions

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