Forum

Problem with Object

Hi guys , I have a problem with this code and I can not understand why it does not work . It gives no errors , but only returns the value of TF 5 minutes while the 15 minutes does not appear . Thank you all , Massimo . #property indicator_chart_window

Continuos line

Hi guys , I have a simple question : how do I get this : //——————————————————————————————| fine del programma |————————————————————————————————| instead of this ? //------------------------------| fine del programma |----------------------------------| Thank you all for your cooperation

ENUM_MA_METHOD

Hello guys , I have this problem I can not solve. I wrote this code: enum Tipo_MM { A= MODE_SMA , // Media semplice B= MODE_EMA , // Media esponenziale }; input Tipo_MM Tipo_MediaMobile=A; Then I insert " Tipo_MediaMobile " in this code : ( iMA ( NULL , PERIOD_CURRENT , 3 , 0

Update Label

Hi guys , I need your help . I wrote this code , which calculates the distance between points of a given number of candles . On the chart you will see a label that can be moved and gives the number of points away. I do not quite do update this value . Can you help me? Thanks for everything , Massimo

Enable and disable the Pop-up

Hello everyone. I have a problem with the code , and I need your help. I wrote this code : { Buffer1[i] = Low[i]- 1 * myPoint; if (i == 0 && Time[ 0 ] != time_alert) { myAlert( "indicator" , "Buy" ); time_alert = Time[ 0 ]; } } The part that I have highlighted , brings up the

Pin Bar

Hi guys , I have a problem with the code . I want to find the Pinbar ( 1 ) as in the picture excluding the Pinbar ( 2 ) . I would say that the length of the shadow must be> = 3 times the length of the Candlestick Body . I wrote this code but it does not work . ....... myPoint *= 10 ; if (

Double condition ( "OR" in MQL4)

Hello to all. I need help to find out if the code I wrote is right or not . I wrote this code to mean that the condition is valid if I cross the RSI at level 50 . ..... if ( iRSI ( NULL , PERIOD_CURRENT , 2 , PRICE_CLOSE , i) < 50 && iRSI ( NULL , PERIOD_CURRENT , 2 , PRICE_CLOSE , i+ 1 ) > 50

Distance arrows / candles

Hello everyone. I need help to solve a problem on the distance of the arrows from the candles. I have these two codes: int OnCalculate ( const int rates_total, const int prev_calculated, const datetime & time[], const double & open[]

Delete pre-alert

Hi guys. I have a problem I can not solve. I created this code where I have a pre-alert. Buffer1 and buffer2 are pre-alert, while the Buffer 3 and Buffer 4 are the real alert. I wish I could erase the dots of the pre-alert all the times that of Alert arrow appears. I made several attempts but did

Retard the alert several seconds

Hello everyone. I would like to modify this code so that the alert , instead of appearing at the opening of the candle , detects the conditions after a few seconds . Thanks for everything , Massimo . int start(){ if (BarStart !=Time[ 0 ]) { BarStart = Time[ 0 ]; //Indicator Buffer 1 if