Page 48 of 54 FirstFirst ... 384647484950 ... LastLast
Results 471 to 480 of 539
  96 96 Attachment(s)    

Thread: vForce Like EA

  1. #471
    Junior Member
    Join Date
    May 2009
    Posts
    17

    Default OrderSend function

    I've been reading some of the forums (FF has some good info as well as forex-tsd; TSF has a few good spots as well). I'm looking for the documentation on the OrderSend function, but so far, have not found it. Funyoo's guide to mql4 programming looks good as well.

    I could also have a problem with the historical data. I've back tested other EAs that shouldn't have this problem, and when I asked about it, one response was that the data could have a "hole" in it.

    If anyone has a good idea how, and more importantly, what to fix to solve this problem, I would appreciate hearing from you.

  2. #472
    Junior Member
    Join Date
    May 2009
    Posts
    17

    Default IMPORTANT! Backtesting issue resolved

    I was able to resolve the backtesting issue, and it didn't not require a source code change. I found this article on the mql4.com forum:

    All Brokers MT4 platforms invalid prices - MQL4 forum

    In it, there is a discussion about exporting the Metaquotes historical data to CSV files, deleting the old HST files, and then importing the CVS back into Metatrader. I tried this and now ALL OrderSend error 4107 problems have disappeared! I am using VForce Like EA v2.0 on an FXDD platform, build 225. All historical data has been downloaded from the Metaquotes server.

    Be sure to export the historical data to CVS files for all timeframes you plan on testing at. If you don't, you will get test generator errors (check the Journal to make sure).

    I still see the occasional OrderSend error 130 issue showing up in the logs:

    2009.06.01 11:00 vForce Like EA v2 EURUSD,H1: OrderSend error 130
    I believe this is a separate issue, but right now, I'm not sure what is causing it.

  3. #473
    Junior Member
    Join Date
    Aug 2009
    Posts
    1

    Default Fixing lotsize problems and money management.

    G'day folks, first post on the forum, but I thought this may help....

    I noticed the 4/5 digit broker problem has been resolved.


    Anyway, my money management dodad, it calculates the lots based on % risk on accounts and gets the lotsize increments from the broker...

    Variables to add.

    extern double MaxRisk = 0.02; // Risk level to use on each trade.
    extern bool Strict_risk = true; // No trading if risk < minimum lot size.


    Subroutine....

    double Get_Lot_Size(double stopsize)

    {
    double lotsize, fulllotcost, riskcost, riskratio;

    int lotsteps;

    riskcost = AccountBalance()* MaxRisk;

    fulllotcost = MarketInfo(Symbol(), MODE_TICKVALUE) * stopsize/Point;

    riskratio = riskcost/fulllotcost;

    if (riskratio < MarketInfo(Symbol(),MODE_MINLOT) && Strict_risk) return(0);

    else if (riskratio < MarketInfo(Symbol(),MODE_MINLOT)) return(MarketInfo(Symbol(),MODE_MINLOT));

    else
    {
    lotsteps = (NormalizeDouble((riskratio- MarketInfo(Symbol(),MODE_MINLOT))/MarketInfo(Symbol(),MODE_LOTSTEP),0));

    lotsize = MarketInfo(Symbol(),MODE_MINLOT) + lotsteps*MarketInfo(Symbol(),MODE_LOTSTEP);

    return(lotsize);

    }
    }


    Now, seeing i have been a nice little contributing pleb, I surely can make little request....

    Can someone consolidate this so we have a version that does not fail on 4 or 5 digit brokers and can handle any broker's lot sizes, and then maybe publish the "Latest version" in the opening post of the thread? Pretty please with sugar on top?

    Then when anyone asks, you can say "The latest version is in the first post of the thread!"

    That would make it much sweeter, as I have no idea of where it is up to after 33 pages and umpteen versions!

  4. #474

    Default 4-5 digit auto switch adds to optimization time

    There are demo/live trading EA attributes that add significantly to optimization time. For example -Auto detection/switch between 4-5 digit broker.
    Solution for that is to have two versions, TEST (stripped) for optimization and back test, another for LIVE trading for forward test with all bells and whistles.

    P.S. I am not trying to condition anyone with my "contributions". Just to provide with some "food for thought"
    Last edited by Metatrader7; 08-11-2009 at 04:56.

  5. #475
    Junior Member
    Join Date
    Aug 2009
    Posts
    5

    Default

    Quote Originally Posted by funyoo View Post
    Hi Mac109 and welcome,

    By my hand, yes it is the last version.

    Otherwise there is vForceLikeEA_V2_04A by maximf.

    And yes vforce like ea v2 eu h1(2).set is the last "official" set.

    I suggest you to do your own optimization, to test the different versions with different settings.
    Note that I will work on a third version when Metatrader5 will be released.
    Hi funyaoo
    Thanks for great job done by you.And icannot find the set file link vforce like ea v2 eu h1(2).set, will you please post the set file.And one more query does the vForce ea v2 take short trade?

    thanks
    sikandar
    Last edited by sgsm; 08-13-2009 at 15:11.

  6. #476
    Junior Member
    Join Date
    Jun 2009
    Location
    JAAPAN
    Posts
    4

    Default 2 Question about VFORCE V201a

    Hi all,and Thenks funyoo to make this exciting EA.

    I already all message in this sled. But I guess don't get answer.
    So I have 2 question.

    1.
    I use vForve V201a.this is up trend is very nice. but down trend is quite not good,because sell order not Generation. Is this Fixed? If so please teach me version of vForce.

    2.
    I want optimize USDJPY.IF use vforce like ea v2 eu h1.set ,it's no order. Please teach check parametor.

    Environment:
    FXDD Forex mini,EURUSD 1H,MT V4 build 225,vFoece V201a(set up value si 1000$),vforce like ea v2 eu h1.set,don't optimize.

    THX ALL
    Last edited by oyaji777; 08-14-2009 at 07:45.

  7. #477
    Junior Member
    Join Date
    Jun 2009
    Location
    JAAPAN
    Posts
    4

    Default vFoece v201a generated SELL position but....

    Hi,all.

    It apologizes for my misunderstanding and poor English.
    The SELL function operated and USDJPY BUY and SELL order generated on vForce v201a.
    (but for USDJPY optimize not done)

    However, another doubt exists.
    The market price decides position by 1.6605 though part and the buy stop price of GPBUSD are 1.6609.

    The profit and loss when position is decided has become -4 from the beginning.
    Am I making a mistake though I think that the as follows market position at buy is not generated?

    Should I optimize GBPUSD?

    My best regards.
    Last edited by oyaji777; 08-14-2009 at 16:23.

  8. #478
    Junior Member
    Join Date
    Aug 2009
    Posts
    5

    Default

    Hi funyoo
    What is the latest performance from vForce like eav2, Still it performing well? as I could not back test, Could you post latest settings for vForce like eav2.

  9. #479
    Junior Member
    Join Date
    Aug 2009
    Location
    Denmark
    Posts
    1

    Red face

    Hello,

    Thank you for providing free EA's. It is greatly appreciated.

    I have installed EA v2 and the belonging .set in the right folders.

    When I run a strategy test, no matter what I do, I end up with a negative outcome.
    (Please look at the attached files.)

    Also I get a lot of error 130, and do not understand the reason why.

    Code:
    2009.08.16 18:27:07	2009.08.06 20:08  vForce Like EA v2 EURUSD,H1: OrderModify error 130

    Please advise.

    Thank you in advance,
    Michael
    Attached Images Attached Images vForce Like EA-strategytester-gif 

  10. #480

    Talking v201 fixed is named v202

    Quote Originally Posted by oyaji777 View Post
    Hi all,and Thenks funyoo to make this exciting EA.

    I already all message in this sled. But I guess don't get answer.
    So I have 2 question.

    1.
    I use vForve V201a.this is up trend is very nice. but down trend is quite not good,because sell order not Generation. Is this Fixed? If so please teach me version of vForce.

    2.
    I want optimize USDJPY.IF use vforce like ea v2 eu h1.set ,it's no order. Please teach check parametor.

    Environment:
    FXDD Forex mini,EURUSD 1H,MT V4 build 225,vFoece V201a(set up value si 1000$),vforce like ea v2 eu h1.set,don't optimize.

    THX ALL
    Hi oyaji,
    Mr Funyoo fixed v201 for the logic error in the sell area. It was named v202.
    Because it had the logic changed, you need to do an optimize to find some parameters for the set file. But it should still create buy & sell trades using the built in defaults, just maybe not the optimum trades.

    As soon as a trade is made, if the profit is -4, then that is the spread. It is the difference between the sell price (Bid) & the buy price (Ask). The lines or candels on your charts are plotted using the Sell price.

    cheers bt2

Similar Threads

  1. vForce Like EA v2
    By funyoo in forum Expert advisors live statements
    Replies: 113
    Last Post: 10-21-2013, 19:59
  2. VForce Like EA v1.1
    By fxrobot in forum Expert advisors live statements
    Replies: 5
    Last Post: 08-29-2009, 15:15
  3. vForce EA Great Trading System
    By iForex in forum Ideas for expert advisors
    Replies: 5
    Last Post: 06-16-2009, 16:00

Tags for this Thread

100, advisor, alpari, alpari uk, analysis, automated trading, automatic, average, backtest, backtesting, bonus, breakeven, broker, brokers, change, closing, coding, color, comparison, copy, correlation, demo, design, divergence, eas, elite, eur, eur/usd, eurjpy, eurusd, expert, expert advisor, experts, forex, free, fxopen, gbpusd, hedging, high, historical, home, how to, indicator, indicators, learn, live, live account, low, magic, magic number, main, managed, manual, manual trading, metatrader, moving average, mq4, mql, mt4, mt5, offer, parabolic sar, power, price action, profit, profitable, programmer, programming, rating, real, research, review, robot, robots, rsi, sales, sells, server, signal, signals, simple, slippage, spread, stoch, stochastic, stop, stoploss, strategy, support, system, test, thank you, time, trader, trading, trading forex, trading system, trading volume, trailing, trend, usd

Posting Permissions

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