1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.
  2. Welcome back! Thank you for being a part of this Traders Community. Let's discuss and share :)
    Selamat datang kembali! Trimakasih telah menjadi bagian dari Komunitas Trader ini. Mari berdiskusi dan berbagi :)
    Dismiss Notice

Peak indicator and iCustome

Discussion in 'Indicators dan Tools' started by Leon Valdez, 31 May 2019.

Tags:
  1. Leon Valdez

    Leon Valdez Member

    Equity
    Credit
    Ref Point
    Please help,

    I dont know why the iCustome command doesnt work for the Peak indicator. My gues is that because it make a file to write and do some operations and then retreive the information... and Im thinking that when the indicator is called by the iCustome command it doesnt create the file needed for the computations... Anyways thats my guess, i really not sure why.

    However, if the buffers variables are initialized with a value it retrieve the value of initialization.
    And yes, im calling the buffer 1, not the 0 one.

    Please anyone has already experimented this issue?
     

    Attached Files:

  2. garago

    garago Member Credit Hunter

    Equity
    Credit
    Ref Point
    Ciao
    is correct that in the file PeakT1.mq4 there is ...
    Green_Line[1]=1;
    Red_Line[1]=2;

    Ciao
     

    Attached Files:

  3. Leon Valdez

    Leon Valdez Member

    Equity
    Credit
    Ref Point
    yeap, its just an initialization value so the variable doesnt start with an empty value. If the variables are not initialized with a value (just like in the original peak indicator), the retrieve value of iCustome is a big value of 2147483647 that means empty value.

    I just added the values of 1 and 2 to see if the number of 2147483647 changed to 1 and 2 and yes it did.

    You can test it just converting those lines into comments
    //Green_Line[1]=1;
    //Red_Line[1]=2;
     
    Last edited: 31 May 2019
  4. garago

    garago Member Credit Hunter

    Equity
    Credit
    Ref Point
    yes i already did look at the files i posted and the result seems to me to be correct
     
  5. Leon Valdez

    Leon Valdez Member

    Equity
    Credit
    Ref Point
    Yes, seems correct but the iCustome doesnt get the right values from the peak indicator. Did you got an idea why?
     
  6. garago

    garago Member Credit Hunter

    Equity
    Credit
    Ref Point
    try this

    i suppose the problem is this
    in an EA don't insert #property indicator_chart_window

    ciao
     

    Attached Files:

  7. dedy_iskandar

    dedy_iskandar New Member

    Equity
    Credit
    Ref Point
    hi, i also got this problem, i cant call the line in the EA..please share the result..thanks
     
  8. Leon Valdez

    Leon Valdez Member

    Equity
    Credit
    Ref Point
    it
    I want to make an indicator for now, no a EA. Do you know how can i fix it?
     
  9. Leon Valdez

    Leon Valdez Member

    Equity
    Credit
    Ref Point
    Please give ideas or share the post bro, so more people can help
     
  10. garago

    garago Member Credit Hunter

    Equity
    Credit
    Ref Point
    Indicator
     

    Attached Files:

  11. Leon Valdez

    Leon Valdez Member

    Equity
    Credit
    Ref Point
    thanks bro! it work great!
    Im going to make a scanner indicator if you want i can share to you when its done.
     
  12. garago

    garago Member Credit Hunter

    Equity
    Credit
    Ref Point
    ciao Leon
    Share with everyone, it's always welcome
    In this forum many have helped me, it is right that my little help is shared with everyone
    Attention that Peak repaints.
    Ciao
     
  13. pitchief

    pitchief New Member

    Equity
    Credit
    Ref Point
    5/5,
    This is my review for this thread:
    Problem sehr gut gelöst,Danke.
     
    • Like Like x 1
  14. dedy_iskandar

    dedy_iskandar New Member

    Equity
    Credit
    Ref Point
    Hi, the fixed version working well, its can be called in the EA also
     
    • Friendly Friendly x 1
  15. Leon Valdez

    Leon Valdez Member

    Equity
    Credit
    Ref Point
    of course bro, do you have telegram account?
     
  16. Leon Valdez

    Leon Valdez Member

    Equity
    Credit
    Ref Point
    Here is my Scanner bro, I did for EURO, USA Dollar, Pound and other called Misc with AUDs and CHFs. However it runs very slow and doesnt refresh. Somebody know how could it be modify to run smoother and refresh the info?
     

    Attached Files:

  17. Leon Valdez

    Leon Valdez Member

    Equity
    Credit
    Ref Point
    These 2 files are needed for the Scanner
     

    Attached Files:

  18. Leon Valdez

    Leon Valdez Member

    Equity
    Credit
    Ref Point
    Hello bro, I didnt try yet into a EA. I want first to complete and built nice the scanner and then after that start with the EA.
     
  19. garago

    garago Member Credit Hunter

    Equity
    Credit
    Ref Point
    mmmmmhhhh,
    my friend, too much iCustom = too much CPU
    why use many PAIR, for the correlation?
     
  20. Leon Valdez

    Leon Valdez Member

    Equity
    Credit
    Ref Point
    Because look a pair one by one in each of the timeframes takes me more about 40 min, and i can loose a good entry oportunity. And in this way of show all the pairs at the same time i can evalutate in less than 1 minute a good entry oportunity.
     

Share This Page