Coding help - page 773

Alain Verleyen
36549
Alain Verleyen  
shehanmm:
Hi guys,

 I need urgent help from you all for a problem regarding a technical indicator. I need to know how is the arrow appears in fractal indicator. I mean I need an alert when a fractal arrow appears. I use this fractal indicator(attached below) in which you can select the period where you cannot do so with the in-built indicator in mt4. Please help me.

I studied on this indicator code but I'm unable to find how can it be done. Which array value should I use? (FractalsUp[],FractalsDown[])

Please don't double, triple post. We don't need apologies, we need you take care of what you are doing.

There is nothing urgent.

whroeder1
17926
whroeder1  
shehanmmI need urgent help  Which array value should I use? (FractalsUp[],FractalsDown[])
  1. Don't you want up fractals and down fractals?
  2. Help you with what? You haven't stated a problem, you stated a want. Show us your attempt (using CODE button) and state the nature of your problem.
              No free help
              urgent help.
Shahzad Latif
10327
Shahzad Latif  

Hi,

I am coding a EA based on Pipfinate trend laser and the strategy is using higher timeframe value to open trade for example customer placed the EA on M15 and wants to open order if the signal is on H4 chart is same as on current chart. I do have put the higher timeframe in indicator function but receiving alerts "Incorrect Parameters"

Can anyone help please?

Mladen Rakic
109886
Mladen Rakic  
Shahzad Latif:

Hi,

I am coding a EA based on Pipfinate trend laser and the strategy is using higher timeframe value to open trade for example customer placed the EA on M15 and wants to open order if the signal is on H4 chart is same as on current chart. I do have put the higher timeframe in indicator function but receiving alerts "Incorrect Parameters"

Can anyone help please?

Correct the parameters
Shahzad Latif
10327
Shahzad Latif  
Mladen Rakic:
Correct the parameters
but that is custom indicator and If I put 0 in place of time frame which means current time frame then it's working fine but if I put PERIOD_H4 instead of 0 in place of time frame the EA alerts me "incorrect parameters"
whroeder1
17926
whroeder1  
Shahzad Latif: but

But nothing.

Do you really expect an answer? We can't see your broken code. There are no mind readers here and our crystal balls are cracked. What are all your parameters and chart? What is the code (or at least a link to where?)

You can't run a multi-TF indicator (MTF) on a chart TF larger than your H4 setting.

Shahzad Latif
10327
Shahzad Latif  
whroeder1:

But nothing.

Do you really expect an answer? We can't see your broken code. There are no mind readers here and our crystal balls are cracked. What are all your parameters and chart? What is the code (or at least a link to where?)

You can't run a multi-TF indicator (MTF) on a chart TF larger than your H4 setting.

I think I have got the problem and resolved it thanks for help
Vladislav Zubarev
9
Vladislav Zubarev  
I need one fix for RenkoChannel2 EA, i set EA for 14 pairs, but when first order is opened, RenkoChannel2 dont open anymore, till first order is closed. Need to add trade all pairs, like one order per chart (till TP or SL).

Check picture to understand what i mean, check order start time and finish, and now check start time of next order, its same like previous order finish time.

I trade Renko 10 pip bars.

Indicators: vhpchannel_03

EA: RenkoChannel2
Keith Watford
Moderator
14433
Keith Watford  
Vladislav Zubarev:
I need one fix for RenkoChannel2 EA, i set EA for 14 pairs, but when first order is opened, RenkoChannel2 dont open anymore, till first order is closed. Need to add trade all pairs, like one order per chart (till TP or SL).

That's a nice polite way to ask for help.

I doubt that you will get any responses, at least not what you are hoping for.

whroeder1
17926
whroeder1  
Vladislav Zubarev: I need one fix for RenkoChannel2 EA, i set EA for 14 pairs, but when first order is opened, RenkoChannel2 dont open anymore, till first order is closed. Need to add trade all pairs, like one order per chart (till TP or SL).
   r=OrderSend(NULL,type,Lots,NormalizeDouble(price,Digits),Slip,sl,tp,"",Magic,0,clr);
  1. That's not a fix, it's a complete rewrite, and unnecessary.
    Do not trade multiple currencies in one EA.
    • You can use NULL in place of _Symbol only in those calls that the documentation specially says you can. iHigh does, MarketInfo does not. OrderSend does not.
    • Don't use NULL (except for pointers where you explicitly check for it.) Use _Symbol and _Period, that is minimalist as possible and more efficient.
    • Zero is the same as PERIOD_CURRENT which means _Period. Don''t hard code numbers.
    • MT4: No need for a function call with iHigh(NULL,0,s) just use the predefined arrays, i.e. High[].

  2. Do NOT use NormalizeDouble, EVER. For ANY Reason. It's a kludge, don't use it. It's use is usually wrong, as it is in this case.