Forum

Plot an arrow on a specific M1 candle

Hi Guys, I'm integrating Metatrader4 platform with external signal data. What I have to to is plot arrow on specific candle time in M1, for example: Suppose you have to plot arrow at this time and price: price 1.1234, time: '2020-03-02 13:15:01'. How can I get the chart candle on where I have to

Identify if the price line is targeting a level from top or bottom

Hi, suppose to be in this scenario: You have to test if the price has break an horizontal price line and you have to detect if the price/trend is coming from top or from bottom... How can I do this ? If I have to do it by watching the graph it is really simple but how can I code it ? What can be the

iADX on H4 to identify the trend

Hi Guys, I'm quite new to Mql4 coding language and my team asked me to use ADX on H4 timeframe in order to identify the trend... How can I do this? Thanks to support! Dario from Italy

Calculate Target Price using Pips value

Hi guys, I have to calculate the final target price (and stop loss ) using the pips. I mean: Suppose to be in EURUSD, and the price is: 1.223 , I have to add 25 pips. I also have to implement this formula for all the possible crosses so I think I have to manage some digits checks... Can you help me

How to let the EA working on different cross

Hi Guys, I have an EA that works properly on EURUSD... Now I want it to work on others 10 different cross... What is the best practice in this case ? Should I have to implement a loop on each cross ? Thanks to support

OrderSend error 138 during BackTesting

Hi Guys, I'm testing my EA and I'm getting always the error 138 each time I run OrderSend function . I edited the EA in order to just call OrderSend on each onTick event: RefreshRates(); int test=OrderSend(_CROSS,OP_BUY,0.01,Ask,5,0,0,"",0,0,clrGreen); return; In the code I only declare

How to check if Bollinger Bands had Crossed

Hi Guys, I'm working on a EA and I need to check if the Bollinger Bands has crossed in the last X Candle of the specified timeframe... How can I do it ? Should I have to implement a loop where "for X times" calculates the bands and check if the value crossed? Thanks to support

Calculate pivots D1 W1 and M1

Hi Guys, Is there any packed formula to calculates the three pivots on D1, W1 and M1 ? Can you provide me the formula plz ? Thanks to support ! Dario