Gamblers Pips EA needs debugging
Page 1 of 733 123 LastLast
Results 1 to 10 of 330

Thread: Gamblers Pips EA needs debugging

  1. #1
    I was a gambler and I utilized a step progression for gambling on roulette(it created lots of cash until the inevitable death spiral due to inadequate funds or table betting limits), and I think I finally figured out how to use it successfully to FX. By thought is for the EA would be to create it buy and sell based on the last candle basically random, red candle that it sells blue it buys, and it uses a slow step progression/regression MM egy to allow it to be profitable. I am not a developer but I understand enough to tinker with an existing program, I used a primitive EA generator then spliced into a couple trade limiters plus a martingale code which I altered, and it kinda works. The one issue is that the step progression/regression is doubled, one trades use a progression and the following trade utilizes another progression and it alternates every other trade(about the EA tester even trades use one progression and odd use another progression), both working the way they need to. I want all trades to work in a progression that is single. It is probably a very simple fix for a real developer. Here's that the EA, I included notes describing what each line should do, any help will be appreciated, thanks. Let us fix this thing and create some severe pips.

    Here is how it works, it creates a commerce beginning with as many lots as you need and increases lot size on a loss and decreases lot size by precisely the exact same amount with a win. So if you started with 1 lot plus increase/decrease by 1 lot that the progression for this series( L,L,L, W,L,W,W,L,W,L,W,W) lots for those trades might seem like this: (1,2,3,2,3,4,3,2,3,2,3,2,1)

    https://www.forexsoutheast.asia/atta...4502671011.mq4

  2. #2
    Not this one, I tested it and it survived from 1/2010 to 10/2014 and it's not the everyday Martingale, I simply used Martingale code as a template to incorporate my step development, it won't passing stunt, look it over. Here is the code with notes:

    Quote Originally Posted by ;
    int Maxorders=1; //limits number of orders open at once, not sure it works right
    extern int MagicNumber=12345;
    extern double StopLoss=50;
    extern double TakeProfit=50;
    int TrailingStop=0;
    int Slippage=1;
    extern bool martingale=true;
    extern double multiplier=.02; //lot increase/decrease factor
    extern double lotdigits=2; //number of decimal places allowed in lot size
    extern double Lots=.02;
    double mlots,ilots,lastprofit,lastlot;
    int BarsCount = 0;// used to limit one trade per bar
    int I,history;
    int ThisBarTrade=0;
    // ------------------------------------------------------------------
    // expert start function
    // ------------------------------------------------------------------
    int start()

    if (Bars gt; BarsCount)
    history=OrdersHistoryTotal();
    if(historygt;0)
    for(I=0;ilt;history;I )
    OrderSelect(I,SELECT_BY_POS,MODE_HISTORY);
    if(OrderSymbol()==Symbol() OrderMagicNumber()==MagicNumber)
    lastprofit=OrderProfit();
    lastlot=OrderLots();



    mlots=0;
    if(martingale lastprofitlt;0)mlots=NormalizeDouble(lastlot multiplier,lotdigits); // lot increase formula
    if(martingale lastprofitgt;0)mlots=NormalizeDouble(lastlot-multiplier,lotdigits);// lot decrease formula
    if (mlotslt;=Lots)mlots=Lots; //check to Find out if lot decreased below starting lots
    double MyPoint=Point;
    if(Digits==3
    int TotalOrdersCount()

    int result=0;
    for(int I=0;ilt;OrdersTotal();I )

    OrderSelect(I,SELECT_BY_POS,MODE_TRADES);
    if (OrderMagicNumber()==MagicNumber) result ;

    BarsCount= Bars;
    return (result);

  3. #3
    Quote Originally Posted by ;
    I used to be a gambler and that I utilized a step progression for betting on roulette(it made lots of money until the inevitable death spiral as a result of insufficient funds or table betting limits), and I think I finally figured out how to apply it successfully to forex. By thought is to the EA is to make it buy and sell based on the previous candle basically arbitrary, red candle it sells blue it buys, and it uses a slow step progression/regression MM egy to allow it to be profitable. I am not a developer but I know enough to tinker with an present program, I used...
    I have already a much more powerful and effective MM system ready to be built in an EA (that basically do the same as you say, following a loss use a more aggressive lotsize, and following a win use a less aggressive one).
    That is only half however of this equation, the other half is to loe a system which would somehow have at least 50% winners (with let us say 1:1 rr).
    Now it seems like it's simple to reach the 50% mark, simply buy or sell randomly, tp and sl same size, the outcome will be 50% right?
    Incorrect, you still may have 5-10-20 consecutive losses which would destroy your account.

    Not Simple!

  4. #4
    Quote Originally Posted by ;
    Not this one, I tested it and it lived from 1/2010 into 10/2014 and it isn't the regular Martingale, I just used Martingale code as a template to incorporate my measure progression, it won't death spiral, check it out. Here is the code with notes: quote
    You will be very disappointed in the end... no matter the martingale type.

    You are here because 2009... you ought to have read hundreds of threads such as yours (even same martingale type)... none was that the holy grail as you'd like to believe.

  5. #5
    Quote Originally Posted by ;
    quote I've already a much more powerful and effective MM system ready to be constructed within an EA (that basically do the same as you state, following a loss use a more competitive lotsize, and following a win use a less competitive one). This is simply half however of this equation, the other half is to find a system that would somehow have at least 50% winners (with let us say 1:1 rr). It seems like it's easy to achieve the 50% mark, just buy or sell randomly, tp and sl same size, the outcome will be 50% correct? Wrong, you still can have 5-10-20 successive losses...
    For some reason this EA is very slow backtesting, and it's not working it should, however looking at the results I am sure it could handle as many losses as the market throws at it when it was working correctly, as for its slow progression, it's for 2 reasons, to decrease the capital necessary to succeed and to protect against a death spiral. I want it to make consistent money not quick cash, and the measure and starting lots could be adjusted. I am attempting to keep it as straightforward as possible.

  6. #6
    Quote Originally Posted by ;
    quote You will be quite disappointed in the end... regardless of the martingale type. You're here because 2009... you ought to have read hundreds of threads like yours (even same martingale type)... none was the holy grail as you'd like to believe.
    I know that it's a long shot but I think it will work, you are a developer, get it working right so that we could do an accurate backtest and quit arguing over concept, that is all I need.

  7. #7
    Quote Originally Posted by ;
    ... and stop arguing over theory, that's all I want.
    Martingale losing is far from theory...

    Please don't get me wrong... I have nothing against you personally. I am here only to warn you and notably most of newbies ready this thread.

  8. #8
    Quote Originally Posted by ;
    quote Martingale shedding is far from concept... Please don't get me wrong... I've nothing against you personally. I am here only to frighten you and notably all newbies prepared this thread.
    I understand Martingale will constantly lose but this isn't actually Martingale, and feel me I'll be the first to spot any issues once I receive the results, but I can't do that unless the EA is working right. Everyone understands EA trading is risky, particularly with systems like mine but what's the harm in trying, nothing ventured nothing gained. I reproduced the results in the faulty backtest and I'm manually correcting the lot dimensions and I will see what it could do but it will take a while and that I only have 400 trades ATM, but it is a beginning until someone helps me buy the EA working right

  9. #9
    Quote Originally Posted by ;
    Here is how it works, it makes a trade starting with as many lots as you need and then increases lot dimensions on a reduction and decreases lot dimensions by precisely the same amount with a triumph. So if you started with 1 lot and increase/decrease by 1 lot that the progression for this show ( L,L,W,L,L,W,W,L,W,L,W,W) lots for those transactions would seem like this: (1,2,3,2,3,4,3,2,3,2,3,2,1) file
    If you want to be profitable you need to bet more when you win and bet less when you lose, otherwise... margin call!

  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.