indior for trending and ranging
Results 1 to 10 of 10

Thread: indior for trending and ranging

  1. #1
    Hello, new to the forum, im creating an ea and I have pretty good background in programming, for the past couple of months I have been programming mql

    I've tried many egies but I cant seem to get this down pat

    what's the best way specifically of verifying a trending or ranging market. It doesnt seem to work although adx has tried.

    Any help will be greatly appreciated.

    Im attempting to make an ea that has distinct principles based on trending and that range so having this at the core is very important.

    I am using smaller timeframes m5 and m1 to scalp from.

    Thanks Ahead of Time

  2. #2
    Quote Originally Posted by ;
    hello, new to the forum, im creating an ea and I have fairly good background in programming, for the last few months I have been programming mql

    I've tried many egies but I didnt seem to get this down pat

    what's the best way specifically of confirming a trending or ranging market....
    There's NO, yeah get this thing into your mind, NO indior that is perfect. What you can do though is to make use of money management in combination with your favorite indior i.e. reduce your loses along with your MM, if you can do so, your profits will probably run...

  3. #3
    Hello friend, I utilized to wonder the exact same thing. Because in trending it is possible to make pips in, and easier ranging trade in the range. . Simple, but if you could identify what is happening.

    However, you can not Nothing can predict the future... at least you have the ideal mindset though and were thinking about that. I have seen EAs which say that they decide if the market is trending or determined do anything, but none of them have been adequate. . .just because market has been around for an hour you think it's gonna range daily?

    Then from there I hope you find some caution, as I did and the market made more sense for me.

  4. #4
    This is the dilema I've came to, hence why indiors do not function, therefore ea's dont work.

    So today the limit is thinking outside the box but the principle still exists, its trending or ranging. I know there's no way of identifying this, and it wont always work, but I really do need some basis to go off of, ranging or just wondering if you've discovered anything which cuts down the chance of being wrong with the trending.

    Again, I know its not likely to 100% of the time be accurate, but I would be happy with 80%. Of course money management is a huge part of the with manual trading, but we must conquer some type of identifiion to move onto something which works.

    Again I realize many have tried and many have failed in this endevour.

    So today I have tried a different egy that perhaps this can help.

    Its basically identifying the distance from the 1ma when compared with the 200ma.

    If it is so far off in either direction it begins a loop.

    1 thing I have discovered is that the market likes to draw towards the more moving average so im with 200ma as a staple over the m5 chart.

    So Allow Me to explain this further

    int distance1 = (ma1 - ma200)*1000;
    int I = 5;
    chain Signal;
    while(distance1 gt; I)
    I ;
    if(distance1 lt; I)
    Signal = SELL;
    break;


    I = -5;
    while(distance1 lt; I)
    I-- ;
    if(distance1 gt; I)
    Signal = BUY;
    break;



    so in the Event That You look at this coding, im trying to keep counting the distance from the 200ma. If it goes up it adds or subtracts to the factor i.

    when it begins to return, then it sends the signal to buy or sell
    my issue is its not sending the Signal factor back to conduct this....
    If(Signal == BUY)ManageBuy();
    if(Signal == SELL)ManageSell();

    how do I break the while loop to reunite Signal back to the major program?

  5. #5
    You have similar thoughts to. Can you check your customer messages please?

  6. #6
    Quote Originally Posted by ;
    Hmm, you have similar thoughts to that which I went through. Can you check your profile customer messages please?
    Not sure what that is, only joined the forum now, I dont have some messages

    really it claims as a junior penis its own disabled

  7. #7
    I appear to recall someone with much more experience than I creating a statment that markets tendency 80% of the time. Somebodyn't made it on one of those forums. Since hearing that announcement, I have not seen anything which would cause me to refute it (except for Sep 08 to Apr 09).

  8. #8
    Quote Originally Posted by ;
    I seem to recall somebody with a whole lot more expertise than I creating a statment that markets tendency 80 percent of their time. It was not made by somebody on these forums. Since hearing that statement, I have not seen anything which would induce me to refute it (except for Sep 08 to Apr 09).
    You cant just program a ea for fashion based because then you'll get false readings if it begins ranging, too ranging is a possible reversal sign

    on a smaller timeframe you would observe that it ranges more then on a longer timeframe.

    Only my two cents....

    Btw im Discounted m5 timeframe

  9. #9
    Simple solution for this predicament is bollinger bands. You could code a minimum required space (for targeting trends, a maximum for targeting that range PA) between the upper and lower groups for a trade to be considered. To determine the space, I would look historically at the pair(s) of interest (in your planned interval, of course) from the circumstance of your trading egy. . .that way you understand the numbers. I have had success as well as when pairing it with ADX. In my experience ADX by itself doesn't cut it....using BBs allows you to pull the actual PA into consideration by the EA.

  10. #10
    'elo!

    I am using sth like
    MAPrevious
    MACurrent
    PipsForRange

    if ((MAPrevious PipsForRange * Point) gt; MACurrent) SignalSell

    and vice versa for buy.

    MA price ought to be Open, otherwise you get whipsaw. Therefore, when MA is close flat, don't trade - so you need to figure it out just how much PipsForRange ought to be for some pair you trade. If slope is being shown by MA, GO, GO, GO!
    I also discovered it's quite usefull to utilize at least 2 time frames - range is defined on ex. D1 (filter), white transactions are taken on ex 4H (a different filter). Signal is
    if (BarPrevOpen gt; BarPrevClose) SignalSell.

    And I also utilize PipsFromOpen -if price goes above or under the OpenCurrentDay PipsFromOpen - SignalTrade, otherwise it's thought of as Ranging Market.

    Just not shure if Open[0] is for current bar of current chart TF or Open Daily price?

    GotId proceed,

    Enjoy fun,

    Simon

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.