1. 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

Question about how to use an indicator

Discussion in 'Indicators dan Tools' started by jjdenver, 17 Jun 2020.

  1. jjdenver

    jjdenver New Member

    Equity
    Credit
    Ref Point
    Hi,

    I'm a veteran software developer but new to mt4 programming. I'd to know how to use an indicator in my code like the yellow box with black arrow in the picture attached. I'm able to use other indicators (macd, ma, etc) but am unsure how to use this particular indicator. When I hover my mouse over the indicator I see:
    "Agimat_Reversal(60,5,3)
    Time 2020.06.12 18:00
    Value1: 1.1213"

    How can this yellowbox + black arrow be used in an EA or script?

    In case you can't read the names of the indicators they are:
    +++AgimatFX2018pro_PriceLineGrid
    +++AgimatFX2018pro_CS
    +++AgimatFX2018pro_ConA
    +++AgimatFX2018pro_ConB
    +++AgimatFX2018pro_BA
    +++AgimatFX2018pro_angular_momentum
    +++AgimatFX2018pro_Alert

    [​IMG]

    I've tried this small code snippet as a script that I drop on the chart with each of the indicators mentioned above. +++AgimatFX2018pro_ConA gave the best results by printing out a few values but not at shift 12 which is where the yellow box + black arrow shows up (near the recent price high). And none of the values corresponded to values where the yellow box + black arrow appear.

    int shift = 1;
    double value1 = 0;
    for(shift = 0; shift < 40; shift++)
    {
    value1 = iCustom(_Symbol,_Period,"+++AgimatFX2018pro_ConA",60,5,3,0,shift);
    Print("for shift = " + shift + " value1 is " + value1);
    }
    }

    Thanks
     
    Last edited: 17 Jun 2020
  2. Noir_

    Noir_ New Member

    Equity
    Credit
    Ref Point
    please look at the icustom format
    +++AgimatFX2018pro_ConA have have 16 parameter , you need to write all parameter after "+++AgimatFX2018pro_ConA","false","false"....etc );
    if you use default parameter just write "+++AgimatFX2018pro_ConA",0,shift);

    and you need find the buffer first
    for +++AgimatFX2018pro_ConA , yellow box buffer is 4 for buy .. and 5 for sell

    to find shift number use 'break;'
    below code is to find yellow box buy (not tested and not to compiled)

    Code:
    int shift;
    double value1;
    for(shift = 0; shift < 40; shift++)
    {
    if (iCustom(Symbol(),0,"+++AgimatFX2018pro_ConA",4,shift)>0)
    {break ;
      value1 = iLow(Symbol(),0,shift);
      Print("for shift = " +IntegerToString(shift)+"  value1 is : " +DoubleToStr(value1,5));
    }
    }
    
     
  3. jjdenver

    jjdenver New Member

    Equity
    Credit
    Ref Point
    Thank you very much for the response. I'm not sure why 'break;' is necessary but that part seems not too important?

    How do you know that +++AgimatFX2018pro_ConA has 16 parameters? This is one of the things I don't understand about mq4 programming.

    Also how can you know how many buffers an indicator provides? For example how would I know there are 5+ buffers?

    Thank you!
     
  4. Noir_

    Noir_ New Member

    Equity
    Credit
    Ref Point
    if you just want print the shift and value1 break is not necessary, but if you want make an EA i think it useful to stop looping after box already find
    how about on 40 candle had 2 buy yellow box, it will print the last box position shift and value1 , thats why i put break in the code.

    parameters is indicator input , you can find and count in indicator box setting "inputs"

    for buffers,
    if we have .mq4 indicator files, buffer will be easily found
    if don't have it we need to try and error to find it,
    the easy way is just look at the object on chart ..
    for +++AgimatFX2018pro_ConA, we try to find which buffer draw yellow box on chart
    open +++AgimatFX2018pro_ConA setting, choose "Colors" tabs and find the yellow color
     
  5. Devil Banna

    Devil Banna New Member

    Equity
    Credit
    Ref Point
    I also have the same issue. I'm not able to get the value of the yellow box with the arrow. I tried to add all the parameters to the iCustom function but, still it is giving me wrong values.
     
  6. john jones

    john jones Member Credit Hunter

    Equity
    Credit
    Ref Point
    Good evening, may I suggest that you try building this EA with the newer Agimat System 2020, it's much better than the 2018 version. Here you go, Please create a EA or a Scanner for this.
     

    Attached Files:

Share This Page