Convergence/Divergence (wip5.51.ex4) -
1 2 3 4

thread: Convergence/Divergence (wip5.51.ex4)

  1. #11
    Member ina99's Avatar
    98
    Thanks SMJ,
    The existing code is similar, rather than percentage risk, it trades 0.01 lot per $1000.00 equity, with the choice to increase depending on the tolerances of the user...

    Inserted Code extern double Lots =0.05; // extern double LotMultiplier =15.0; // Base Lot = 0.01 per $1000.00 //set lots Margin=MathMin( MathMin(AccountBalance(),AccountEquity()), AccountFreeMargin() ); should (Margin gt; Balance) Impact = Margin; lots=NormalizeDouble( (Balance/100000)*(LotMultiplier), two ); should (lotslt;Lots) lots=Lots; if(lotsgt;10) lots=10;
    This is interesting I have never noticed MM managed this way...

    In my opinion it seems a little arbitrary. I mean the commerce should determine the stop dimensions or there should be an understanding of stop size prior to going into the transaction and the stop should be used it deternining the lots size dependent on the risk amount and the balance, or so the margin, or the equity.

    It could be that you've got a different way of figuring stop loss. But for me this is what I want to understand first and also the lots size comes out of this knowledge...

    Thanks for sharing this. I have been edueded by you as to a different approach.

    BTW, I especially like the use of the mathmin function. . I'd not even thought of this. .

  2. #12
    Member
    33
    [quote=fxid10t;1492525]point, does the account you have applied this to trade lots? Otherwise, set Lots to 1, and LotMultiplier to 1 . I'll work on a way to distinguish between lot accounts, along with lot accounts.

    I tried your suggestion, however it's still not functioning. Sorry for the trouble, I actually am trying to get it functioning. Quick note: whenever I attach it to some tester, every one of the opinions are up in the right hand side of this screen and are cut away so that I can't read the word or see the value that it is displaying. Maybe this has something Corrupted?


    Maybe for now, I am just going to put it on a chart on multiple pairs to see how it does. I can see that you have a input for timeframe, does it matter how poor I proceed with this? I know that as a principle divergence is better on larger timeframes, but just for the sake of having it to operate.

    Thanks to a explination of this function. I have been on the lookout. I was actually going to try and build it around the indior in the link, I mean somehow talk someone else into doing it. It seems that what youe call convergence, I was reffering to as reverse divergence....same difference.

    Thanks, Ebont 74

  3. #13
    I tried your suggestion, however it is still not working. Sorry for the trouble, I really am trying to have it working. . . .who is your broker? I use ibfx...


    Quick note: whenever I attach it into some visual tester, every one the opinions are up in the ideal hand side of this screen and are cut away so that I can't read the entire word or see the value that it is displaying. Perhaps this has something to do with it?? Corrupted? . . .make certain chart is shifted to the left, look at attached screenshot...

    Perhaps for now, I will just place it on a chart on multiple pairs to see how it will. I can see that you have a input for interval, does it matter how low I proceed with this? I understand that as a rule divergence is better on timeframes that are bigger, but only for the sake of getting it to operate. ...a setting of 0 for TradePeriod will use what ever period information the chart is open on.


    Thank you to a explination of this function. I've been looking for an EA that does just as you explained. Build and I actually went to try it around the indior from the connection, I mean talk somebody else. It seems that what youe call convergence, I was reffering to as reverse divergence....same difference. . . .if during visual testing, you pause and apply the indior (RSI(13),near prices) to the chart, trendlines ought to be plotted on both the price window, and indior window.

    Thanks, Ebont 74
    see above added comments...

  4. #14
    This is interesting I have never noticed MM handled this way...

    In my opinion it sounds a little arbitrary. I suggest the trade should determine the stop dimensions or there should be an understanding of stop size before going into the transaction and the stop should be utilized it deternining the lots size based on the risk amount and the balance, or the margin, or the equity.

    It could be that you've got a distinct way of figuring stop loss. However, for me this is what I want to understand first and the lots size comes out of this knowledge...

    Thanks for sharing that. You've edued me a different approach.

    BTW, I especially like using this mathmin function. . I had not even thought about that. .
    It's arbitrary, I wish to prevent the variation in lot dimensions caused by drawdown/shortterm (un)realized losses, and that as the average account balance increases, then traded lots increase. . .and currently traded lots have the opportunity to recover losses, instead of a lotsize trying to recover a loss in the larger lotsize, and in effect, creating a downward spiral.

    I like to average into a situation, and use typical price to get out... perhaps I should use a stoploss, but provided cease searching brokers, the comparative equilibrium of this market, I feel comfortable using no ceases. I create the EA's mostly for my usage, but feel the need to talk about my work for some self pleasing motive. Thanks for your remarks, you have provided.

  5. #15
    Member
    33
    Hi All,

    I have two things that I would like to bring here for dialogue that might possibly improve this EA.

    1. Have the EA measure between fractual points to draw divergence\convergence lines. Fractual points do a good job picking bottoms and tops. But I think because they really do re-paint it ought to be. This indior comes standard with the platform.

    2. Have the EA search for places where the divergence and convergence meet in the candle. I realize there are lots of things to look at but there are places where both will come together on the candle. Of course, one is duration and the other is shorter duration. But they're powerful. I think it would be well worth it, although I get the impression this would be a bit of a struggle to program.

    Thanks,


  6. #16
    modifiion
    Inserted Code //set lots Margin=MathMin( MathMin(AccountBalance(),AccountEquity()), AccountFreeMargin() ); should (Margin gt; Balance) Balance = Margin; lots=NormalizeDouble( (Balance/100000)*LotMultiplier, 2); should (lotslt;Lots) lots=Lots; #91;color=navy#93;should (lotslt;MarketInfo(Symbol(),23) ) lots = MarketInfo(Symbol(),23); #91;/colour #93;#91;colour =black#93;//min lot#91;/colour #93; #91;color=navy#93;should (lotsgt;MarketInfo(Symbol(),25) ) lots = MarketInfo(Symbol(),25);#91;/colour #93; //max lot
    Attached is a screen shot of Market Info values from my broker. Some brokers don't use these values and this may have a negative impact regarding the operation of the specialist.

    Also, this specialist utilizes limit orders. Various brokers use definitions for types of orders. For this expert, a buy limit order is defined as an order that is set below current Ask and is executed when Ask drops into the buy limit price. A limit order is defined as an order that is put above current Bid and is executed when Bid climbs to the limit price. If your broker does not use limit orders or defines them otherwise, this will adversely affect the instruction set execution of this specialist.

    Lastly, default values of external factors for 5.51b are put for EurGbp 60m.

    https://www.cliqforex.com/trading-sy...ncleforex.html

  7. #17
    1 Attachment(s) This file will back plot beyond convergence/divergence. This is intended to avoid internal variable value reduction due to an interuption from the implementation of the expert, eg, re-initialization due to chart interval change, computer reboot, server/pc maintenance, etc.. When backtesting, there is no interuption from the implementation of the expert, somewhat unrealistic.
    https://www.cliqforex.com/general-fo...tes-pairs.html

  8. #18
    Can I know your broker?

    My broker doesnt have mini or micro lot, so I can not use this EX4 to rear test!

    Due

  9. #19
    can I know your broker?

    My broker doesnt have mini or micro lot, therefore I can't use this EX4 to rear test!

    Due
    I use http://www.interbankfx.com. But first, try setting the external Lots to 1, and LotMultiplier to 1 prior to downloading IBFX's demonstration platform.

  10. #20
    1 Attachment(s) Modifiion fixes an order placement bug that occurs after initialization. 51c will place an order no matter how old the last sign is, 51c1 will place the order if the sign is less than 24 hours old.
    https://www.cliqforex.com/trading-sy...d-gbp-jpy.html

  •