Codes

DeleteAllObject for MetaTrader 4

Simple script to delete all object on the current chart

Relative Strength Levy for MetaTrader 4

Relative Strength Levy can be abbreviated as RSL

Previous Candle Hi-Lo for MetaTrader 4

Previous Candle Hi-Lo is used to check the last candle multi-timeframe position relative to the current price

Simple Regression Channel for MetaTrader 4

As simple Regression Channel code for MetaTrader 4

Forum

OOP Object within Object

I've got question regarding OOP method. say i have pseudo code below to open a Buy Order. I've create 2 separate object Trade and Count. How to actually combine these (object within object) in cTrade class ? I keep the object class separated for various reasons, and didn't plan to actually combine

Trade direction filters.

Moving Average ATR MACD ADX CCI RSI Stochastic Other Standard Indicator(s) Other Customs Indicator(s)

ObjectGetValueByTime

I have these code here to get ObjectGetValueByTime , for OBJ_REGRESSION https://docs.mql4.com/constants/objectconstants/enum_object/obj_regression https://docs.mql4.com/objects/objectgetvaluebytime it has been discuss before, and yet I still can't manage to get double return value, as it always

Flag Counter help.

fellow programmers, n‌eed help on reset the flag for LotSequence counter as below. ‌The LotSequence() function will run a the beginning of new bar, H1 Function DailyProfit() will check Current Daily profit. if Daily profit <0 , counter should run 1 time and lot should be StandardLot*Multiply_1. On

[Help] OBJ_TEXT on chart.

Hello friends, ‌I develop and EA to open order base on multiple strategy. C‌ode should draw a OBJ_TEXT on each new OP (Chart & snippet code as below) On the next Sell Order(same strategy), it should also draw OBJ_TEXT again (Sell Order), as marked in blue circle. so i figure out what's wrong, the

[Coding Advise] - Need help on holding Condition value inside while loop function.

Hi Guys, My coding below basically to check reliability/validity of Hammer/ShootingStar (period H1) on period M1 chart . - swing up/down on the last 30min before it closed. My problem is with this line ----> while(TimeCurrent() >= MinSec(1,0) && TimeCurrent() <= MinSec(5,0)) The condition is true

[Please Help] - Draw a line between 2 specific time at Close price M1 ( Pic attached )

Dear Friends, Need some help on coding this simple indicator to draw a line between 2 specific time at Close price M1 ( as per pic attached ) Here is my preliminary code, I know there is something WRONG with it. Please help me #property indicator_chart_window color Trendline_Colour = DeepPink ;

Help me with Trendline Indicator ( Picture Attached )

Hello all, I’m a total newbie in mq4 programming and this is my first post in this forum. I found a simple rare scalping technique. For manual setup, I draw the trendline by manual. This image should be the trading setups. I would like to ask help from my master programmer friends here to create

[Need Help] - Measure distance between 2 Trendline

Hello all, I'm currently working on an indicator for a system. need some help on how to measure distance between two trendline as per below diagram Thanks for your help. Hairi

[Need Help] - Open Price at Specific Bar

Hello all, I'm currently working on an indicator for a system need some help on how to find open price for a bar at time 08:00:00 of each day ( Mt4 Broker Time ) Thanks for your help. Hairi