Forum

Fetch Indicator values from higher timeframe

Any idea to fetch indicator values from higher timeframe to current time frame I have written this code which is not giving correct result. //+------------------------------------------------------------------+ //| CCI_Sampled.mq5 | //|

How to placed fixed 300 pips stop loss for any pair

This is probably a very easy question, I am new to mql5: When I write EA, I am used to using ATR for placing a stop loss on any order. How to place a fixed 300 pips stop loss for any pair on an order

Unable to compare with i-lookback value

Hello, I have written an indicator which compares another current indicator candle value to current - lookback indicator candle: CopyBuffer (Multihandle, 0 , 0 ,rates_total,handledata); int start; if (prev_calculated<lookback) start=lookback; else start=prev_calculated- 1 ; for

Apply output of a custom indicator as input to RSI

I have written a custom indicator , I wish to use this EA as input to RSI instead of price close. Any idea how this can be done

Get profit of last two closed positions

I have the following code to get profit of last two closed positions i can get the profit of last position but not the second last one any ideas on how to get profit from last two positions in mql5 void OnTrade () { static int previous_open_positions = 0 ; int current_open_positions

Product validation taking forever.

I have developed an EA and its validation has been in progress for more than an hour

Fast Fourier Transform

I wish to use the CFastFourierTransform::FFTR1D function present in Mt5 docker Math/Alglib/fasttransforms. However on successfully applying the transform I am getting zero output as the result of fourier transform. Any ideas on how to correctly call the function CFastFourierTransform::FFTR1D

Fetch specific output of custom Indicator in EA

Hello Well Wisher, I have designed a custom Indicator Donchain channel which returns Donchain_High, Donchain_Low and Donchain_Medium. I wish to use iCustom function in an EA to fetch only Donchain_High. Any idea on how to do it. Thanks in advance

Use one custom indicator output in another custom indicator

I have two custom indicators . I wish to use output of one custom indicator in another custom indicator. However I am unable to do so. I wish to achieve this functionality in code it self. What changes I need to make in the code below: 1 st Custom Indicator: SummationAverage