Coding Wick Percentage Indior!
Results 1 to 6 of 6

Thread: Coding Wick Percentage Indior!

  1. #1
    Hello!
    I have an interesting one for you ...
    I need to figure out out how to code an indior that that can calculate the proportion of the top and lower wick of a specified candle. Then can be limited to ONLY display results BELOW a particular number.
    For instance: I specify my preferred percent limit is 10 percent. So that the indior can look thought all the candles and only show me the candles at which the top wick is 10% or less and the bottom wick is 10% or less. IF a candle has wicks at which BOTH lower and upper fulfill that criteria! Then the indior points out it.



    While I would love to have the ability to opt for the percent limit myself (ideally a setting where I could specify it.) I just want the indior to pop up an arrow or something below the candle that qualifies - No particular amounts, etc.. . Just some simple symbol.


    Can anyone help me? I suck at coding and the mods I have attempted to do to codes that are close have ended up very buggy. .


    Really love some guie on this!

    Thanks alot!

  2. #2
    It's fairly simple to calculate the wick size as a percentage of the pub range:

    Inserted Code double range = High#91;I#93; - Low#91;I#93;; double up_wick, low_wick; if ( range gt; 0 ) up_wick = (High#91;I#93; - MathMax(Open#91;I#93;, Close#91;I#93;-RRB-) / range; low_wick = (MathMin(Open#91;I#93;, Close#91;I#93;-RRB- - Low Cost #91;I#93;-RRB- / range; if ( up_wick lt;= MaxWickSize low_wick lt;= MaxWickSize ) // write a non-empty value in the indior buffer, e.g. Low#91;I#93; - 50*Point to have an arrow published 5 pips under the low of the candle
    MaxWickSize should be a double parameter between 1 and 0.

  3. #3
    Barbossa
    First off thanks for taking the time to reply - You appear to have the hang of the material and I am so appreciative of someone whose got a leg up on this giving me a hand with this... Moving to now demone how green I am at coding - I tried to compile the code that you wrote and it generated a bunch of mistakes.
    Now I figure that what you have done is write the segment of code to fix where I went wrong, heres the issue, I do not even know where I am going wrong...
    I am attempting to learn this coding gig but its a bit hard going from no expertise in programming and just using manuals online...

    I will lay out the terms of what I want the indior to perform:
    ANY help you can give me with putting it together will be so gratefully received...

    1) The Indior will show a arrow (or smiley face, etc.. .) When the criteria are satisfied.

    2) The Indior will work out the Proportion of the WICK in comparison to the Total candle (High/Low).
    A) It'll work out The High Wick Percentage, and The Low Wick Percentage INDEPENDENTLY.
    3) The Indior is going to have a numerical value (in percent) that can be set as a private tolerance.
    Ie: I could enter'10 percent' and it will show results only for criteria BELOW 10 percent, (Or 5%, or 25%, etc.. .)
    The figure Ought to Be arbitrary and to the particular consumers taste.

    4) The 3 possible scenarios it should be in a position to filter for are as follows:
    A) IF a BULL Bar #8211; The pre-defined tolerance filter is only applied to TOP of Wick
    B) In case a BEAR Bar #8211; The pre-defined tolerance filter is only applied to BOTTOM of Wick
    C) An option to change to the pre-defined tolerance filter for when BOTH TOP BOTTOM criteria to be fulfilled

    Because the indior works by simply stating whether a candle meets the conditions or not - I don't want it to show the actual numeric value of the candle wicks that do qualify - that is immaterial.

    Anybody out there game for a challenge??

    Thankyou very much for the assistance #8230;

    for people who are interested in any portion of the undertaking, PM me...

    Thanks once more...

  4. #4
    Hey Pickers!

    That is a momentum play. Candles that show such power as to open and close without a huge level of wick show quite robust and consistent market orderflow.
    Should I do this coded - I've 5 theoretical plays that it may be used for. I will back test each situation and see which one is the most profitable.

    Ps: This WILL work - And I'm Trying to give as I get on this one!
    Anyone who helps me put this together I will PM you my personal trading egy after I've back tested it.

    Then I will buy you a beer on a beach in Honolulu when we're both filthy rich...

  5. #5
    I dont have indior experience so can just code in EA form. Dump it in EA directory and reopen your program. The user specify extern variable ought to be self explanatory. 1 thing to notice about taking a look at price action is that different brokers and different time frames may signify price actions differently. Good Luckm have fun and reveal something interesting!
    https://www.forexforum.co.za/attachm...1299475101.mq4

  6. #6
    just curious! Does that going to help with trading?

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.