Forum

Candle Pattern Logic - Base libary

Hi is there a spot here on mql4 where I can access candle pattern logic similar to the why I have identified some candle patterns in my previous code writing efforts: double O=(Open[ 1 ]); double O1=(Open[ 2 ]); double O2=(Open[ 3 ]); double H=(High[ 1 ]); double H1=(High[ 2

Coding Help Please ! Pip range away from median MA's

#property strict #property indicator_chart_window #property indicator_buffers 5 //---Indicator Colours #property indicator_color1 clrGreen //up arrow #property indicator_color2 clrRed //down arrow #property indicator_color3 clrCrimson //SMA10 #property indicator_color4 clrNavy //SMA25 #property

3 sma cross over clitch

//+------------------------------------------------------------------+ #property version "1.00" #property strict #property indicator_chart_window #property indicator_buffers 5 //---Indicator Colours #property indicator_color1 clrGreen //up arrow #property indicator_color2 clrRed //down arrow

Lot Size Error

// Determine what a pip is. pips=Point; //.00001 or .0001. .001 .01. if(Digits==3 || Digits==5) pips*=10; I get an invalid lot size error if I enter say 1.63 lot however if I enter 1.6 lot then I do not get an error message. Please note that I am spread betting on fx is there a fix for my

Code Help, Please Clarify

Hi Can someone please clarify that the coding below is correct? I want to trade between 1.30 am and 9.30 pm and halt trading for news release between 1.00 pm and 3.00 pm Therefore is my coding correct?? will this function correctly?? Any feedback is appreciated............regards Mickey extern int

Pip distance from MA coding problem.

#property strict #property indicator_chart_window #property indicator_buffers 5 //---Indicator Colours #property indicator_color1 clrGreen //UpArrow #property indicator_color2 clrRed //DownArrow #property indicator_color3 clrRed //EMA50 #property indicator_color4 clrBlue //EMA120 //---Indicator

Buffer not showing

Hi can anybody suggest why the envelopes are not showing when I drop this on a chart? I believe I have coded it correctly ?? Thanks

Logic statement compiling error

Hi, Can anyone suggest a fix for this compiling error on the || or statement: if(PriceHighBack>=BolUpper && PriceMedian<BolUpper || PriceHighBack>=BolUpper && PriceMedian<PriceMedianBack) I get this compiling error: check operator precedence for possible error; use parentheses to clarify precedence

Suggestions please.

I am new to mq4 programming, I have a working indicator and working ea, I get good results in backtests however when I try to optimise certain parameters it runs the test and does not provide any results. Suggestions as to why this might be please? Regards Mickey

TrendLine Indicator.

Hi, please help ! can somebody tell me why I can not get an up arrow to draw as per logic. See attached file. Hope you can help me